BonziBuddy Leaked Source Code by NixButterPlay
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

729 lines
23 KiB

  1. VERSION 1.0 CLASS
  2. BEGIN
  3. MultiUse = -1 'True
  4. Persistable = 0 'NotPersistable
  5. DataBindingBehavior = 0 'vbNone
  6. DataSourceBehavior = 0 'vbNone
  7. MTSTransactionMode = 0 'NotAnMTSObject
  8. END
  9. Attribute VB_Name = "clsStoryReader"
  10. Attribute VB_GlobalNameSpace = True
  11. Attribute VB_Creatable = True
  12. Attribute VB_PredeclaredId = False
  13. Attribute VB_Exposed = True
  14. Public Property Let StoryReaderIsPlaying(blnNewStoryReaderIsPlaying) '5F82F0
  15. loc_005F82F0: push ebp
  16. loc_005F82F1: mov ebp, esp
  17. loc_005F82F3: sub esp, 00000018h
  18. loc_005F82F6: push 00412856h ; __vbaExceptHandler
  19. loc_005F82FB: mov eax, fs:[00000000h]
  20. loc_005F8301: push eax
  21. loc_005F8302: mov fs:[00000000h], esp
  22. loc_005F8309: mov eax, 00000020h
  23. loc_005F830E: call 00412850h ; __vbaChkstk
  24. loc_005F8313: push ebx
  25. loc_005F8314: push esi
  26. loc_005F8315: push edi
  27. loc_005F8316: mov var_18, esp
  28. loc_005F8319: mov var_14, 00403AF0h
  29. loc_005F8320: mov var_10, 00000000h
  30. loc_005F8327: mov var_C, 00000000h
  31. loc_005F832E: mov eax, Me
  32. loc_005F8331: mov ecx, [eax]
  33. loc_005F8333: mov edx, Me
  34. loc_005F8336: push edx
  35. loc_005F8337: call [ecx+00000004h]
  36. loc_005F833A: mov var_4, 00000001h
  37. loc_005F8341: mov var_4, 00000002h
  38. loc_005F8348: push FFFFFFFFh
  39. loc_005F834A: call [00401124h] ; __vbaOnError
  40. loc_005F8350: mov var_4, 00000003h
  41. loc_005F8357: mov eax, Me
  42. loc_005F835A: mov ecx, blnNewStoryReaderIsPlaying
  43. loc_005F835D: mov dx, [ecx]
  44. loc_005F8360: mov [eax+0000003Ch], dx
  45. loc_005F8364: mov var_4, 00000004h
  46. loc_005F836B: mov eax, Me
  47. loc_005F836E: movsx ecx, [eax+0000003Ch]
  48. loc_005F8372: test ecx, ecx
  49. loc_005F8374: jz 005F83C2h
  50. loc_005F8376: mov var_4, 00000005h
  51. loc_005F837D: push 00000000h
  52. loc_005F837F: mov edx, [0073A08Ch]
  53. loc_005F8385: mov eax, [edx]
  54. loc_005F8387: mov ecx, [0073A08Ch]
  55. loc_005F838D: push ecx
  56. loc_005F838E: call [eax+00000058h]
  57. loc_005F8391: fnclex
  58. loc_005F8393: mov var_24, eax
  59. loc_005F8396: cmp var_24, 00000000h
  60. loc_005F839A: jge 005F83B9h
  61. loc_005F839C: push 00000058h
  62. loc_005F839E: push 004419ACh
  63. loc_005F83A3: mov edx, [0073A08Ch]
  64. loc_005F83A9: push edx
  65. loc_005F83AA: mov eax, var_24
  66. loc_005F83AD: push eax
  67. loc_005F83AE: call [004010CCh] ; __vbaHresultCheckObj
  68. loc_005F83B4: mov var_3C, eax
  69. loc_005F83B7: jmp 005F83C0h
  70. loc_005F83B9: mov var_3C, 00000000h
  71. loc_005F83C0: jmp 005F840Bh
  72. loc_005F83C2: mov var_4, 00000007h
  73. loc_005F83C9: push FFFFFFFFh
  74. loc_005F83CB: mov ecx, [0073A08Ch]
  75. loc_005F83D1: mov edx, [ecx]
  76. loc_005F83D3: mov eax, [0073A08Ch]
  77. loc_005F83D8: push eax
  78. loc_005F83D9: call [edx+00000058h]
  79. loc_005F83DC: fnclex
  80. loc_005F83DE: mov var_24, eax
  81. loc_005F83E1: cmp var_24, 00000000h
  82. loc_005F83E5: jge 005F8404h
  83. loc_005F83E7: push 00000058h
  84. loc_005F83E9: push 004419ACh
  85. loc_005F83EE: mov ecx, [0073A08Ch]
  86. loc_005F83F4: push ecx
  87. loc_005F83F5: mov edx, var_24
  88. loc_005F83F8: push edx
  89. loc_005F83F9: call [004010CCh] ; __vbaHresultCheckObj
  90. loc_005F83FF: mov var_40, eax
  91. loc_005F8402: jmp 005F840Bh
  92. loc_005F8404: mov var_40, 00000000h
  93. loc_005F840B: mov eax, Me
  94. loc_005F840E: mov ecx, [eax]
  95. loc_005F8410: mov edx, Me
  96. loc_005F8413: push edx
  97. loc_005F8414: call [ecx+00000008h]
  98. loc_005F8417: mov eax, var_10
  99. loc_005F841A: mov ecx, var_20
  100. loc_005F841D: mov fs:[00000000h], ecx
  101. loc_005F8424: pop edi
  102. loc_005F8425: pop esi
  103. loc_005F8426: pop ebx
  104. loc_005F8427: mov esp, ebp
  105. loc_005F8429: pop ebp
  106. loc_005F842A: retn 0008h
  107. End Sub
  108. Public Property Get StoryReaderIsPlaying(arg_C) '5F8430
  109. loc_005F8430: push ebp
  110. loc_005F8431: mov ebp, esp
  111. loc_005F8433: sub esp, 0000000Ch
  112. loc_005F8436: push 00412856h ; __vbaExceptHandler
  113. loc_005F843B: mov eax, fs:[00000000h]
  114. loc_005F8441: push eax
  115. loc_005F8442: mov fs:[00000000h], esp
  116. loc_005F8449: sub esp, 0000000Ch
  117. loc_005F844C: push ebx
  118. loc_005F844D: push esi
  119. loc_005F844E: push edi
  120. loc_005F844F: mov var_C, esp
  121. loc_005F8452: mov var_8, 00403B38h
  122. loc_005F8459: xor edi, edi
  123. loc_005F845B: mov var_4, edi
  124. loc_005F845E: mov esi, Me
  125. loc_005F8461: push esi
  126. loc_005F8462: mov eax, [esi]
  127. loc_005F8464: call [eax+00000004h]
  128. loc_005F8467: mov cx, [esi+0000003Ch]
  129. loc_005F846B: mov var_18, edi
  130. loc_005F846E: mov var_18, ecx
  131. loc_005F8471: mov eax, Me
  132. loc_005F8474: push eax
  133. loc_005F8475: mov edx, [eax]
  134. loc_005F8477: call [edx+00000008h]
  135. loc_005F847A: mov eax, arg_C
  136. loc_005F847D: mov cx, var_18
  137. loc_005F8481: mov [eax], cx
  138. loc_005F8484: mov eax, var_4
  139. loc_005F8487: mov ecx, var_14
  140. loc_005F848A: pop edi
  141. loc_005F848B: pop esi
  142. loc_005F848C: mov fs:[00000000h], ecx
  143. loc_005F8493: pop ebx
  144. loc_005F8494: mov esp, ebp
  145. loc_005F8496: pop ebp
  146. loc_005F8497: retn 0008h
  147. End Sub
  148. Public Sub StartUpCharacter() '5F84A0
  149. loc_005F84A0: push ebp
  150. loc_005F84A1: mov ebp, esp
  151. loc_005F84A3: sub esp, 0000000Ch
  152. loc_005F84A6: push 00412856h ; __vbaExceptHandler
  153. loc_005F84AB: mov eax, fs:[00000000h]
  154. loc_005F84B1: push eax
  155. loc_005F84B2: mov fs:[00000000h], esp
  156. loc_005F84B9: sub esp, 00000030h
  157. loc_005F84BC: push ebx
  158. loc_005F84BD: push esi
  159. loc_005F84BE: push edi
  160. loc_005F84BF: mov var_C, esp
  161. loc_005F84C2: mov var_8, 00403B40h
  162. loc_005F84C9: mov var_4, 00000000h
  163. loc_005F84D0: mov eax, Me
  164. loc_005F84D3: push eax
  165. loc_005F84D4: mov ecx, [eax]
  166. loc_005F84D6: call [ecx+00000004h]
  167. loc_005F84D9: mov eax, [0073A254h]
  168. loc_005F84DE: test eax, eax
  169. loc_005F84E0: jnz 005F84F2h
  170. loc_005F84E2: push 0073A254h
  171. loc_005F84E7: push 00431838h
  172. loc_005F84EC: call [004012FCh] ; __vbaNew2
  173. loc_005F84F2: sub esp, 00000010h
  174. loc_005F84F5: mov ecx, 0000000Ah
  175. loc_005F84FA: mov ebx, esp
  176. loc_005F84FC: mov var_24, ecx
  177. loc_005F84FF: mov eax, 80020004h
  178. loc_005F8504: sub esp, 00000010h
  179. loc_005F8507: mov [ebx], ecx
  180. loc_005F8509: mov ecx, var_30
  181. loc_005F850C: mov edx, eax
  182. loc_005F850E: mov esi, [0073A254h]
  183. loc_005F8514: mov [ebx+00000004h], ecx
  184. loc_005F8517: mov ecx, esp
  185. loc_005F8519: mov edi, [esi]
  186. loc_005F851B: push esi
  187. loc_005F851C: mov [ebx+00000008h], eax
  188. loc_005F851F: mov eax, var_28
  189. loc_005F8522: mov [ebx+0000000Ch], eax
  190. loc_005F8525: mov eax, var_24
  191. loc_005F8528: mov [ecx], eax
  192. loc_005F852A: mov eax, var_20
  193. loc_005F852D: mov [ecx+00000004h], eax
  194. loc_005F8530: mov [ecx+00000008h], edx
  195. loc_005F8533: mov edx, var_18
  196. loc_005F8536: mov [ecx+0000000Ch], edx
  197. loc_005F8539: call [edi+000002B0h]
  198. loc_005F853F: test eax, eax
  199. loc_005F8541: fnclex
  200. loc_005F8543: jge 005F8557h
  201. loc_005F8545: push 000002B0h
  202. loc_005F854A: push 00440B20h
  203. loc_005F854F: push esi
  204. loc_005F8550: push eax
  205. loc_005F8551: call [004010CCh] ; __vbaHresultCheckObj
  206. loc_005F8557: mov eax, Me
  207. loc_005F855A: push eax
  208. loc_005F855B: mov ecx, [eax]
  209. loc_005F855D: call [ecx+00000008h]
  210. loc_005F8560: mov eax, var_4
  211. loc_005F8563: mov ecx, var_14
  212. loc_005F8566: pop edi
  213. loc_005F8567: pop esi
  214. loc_005F8568: mov fs:[00000000h], ecx
  215. loc_005F856F: pop ebx
  216. loc_005F8570: mov esp, ebp
  217. loc_005F8572: pop ebp
  218. loc_005F8573: retn 0004h
  219. End Sub
  220. Public Sub ShutDownCharacter() '5F8580
  221. loc_005F8580: push ebp
  222. loc_005F8581: mov ebp, esp
  223. loc_005F8583: sub esp, 0000000Ch
  224. loc_005F8586: push 00412856h ; __vbaExceptHandler
  225. loc_005F858B: mov eax, fs:[00000000h]
  226. loc_005F8591: push eax
  227. loc_005F8592: mov fs:[00000000h], esp
  228. loc_005F8599: sub esp, 00000014h
  229. loc_005F859C: push ebx
  230. loc_005F859D: push esi
  231. loc_005F859E: push edi
  232. loc_005F859F: mov var_C, esp
  233. loc_005F85A2: mov var_8, 00403B48h
  234. loc_005F85A9: xor edi, edi
  235. loc_005F85AB: mov var_4, edi
  236. loc_005F85AE: mov eax, Me
  237. loc_005F85B1: push eax
  238. loc_005F85B2: mov ecx, [eax]
  239. loc_005F85B4: call [ecx+00000004h]
  240. loc_005F85B7: mov eax, [0073C818h]
  241. loc_005F85BC: mov var_18, edi
  242. loc_005F85BF: cmp eax, edi
  243. loc_005F85C1: jnz 005F85D3h
  244. loc_005F85C3: push 0073C818h
  245. loc_005F85C8: push 00441F00h
  246. loc_005F85CD: call [004012FCh] ; __vbaNew2
  247. loc_005F85D3: mov eax, [0073A254h]
  248. loc_005F85D8: mov esi, [0073C818h]
  249. loc_005F85DE: cmp eax, edi
  250. loc_005F85E0: jnz 005F85F2h
  251. loc_005F85E2: push 0073A254h
  252. loc_005F85E7: push 00431838h
  253. loc_005F85EC: call [004012FCh] ; __vbaNew2
  254. loc_005F85F2: mov edx, [0073A254h]
  255. loc_005F85F8: mov ebx, [esi]
  256. loc_005F85FA: lea eax, var_18
  257. loc_005F85FD: push edx
  258. loc_005F85FE: push eax
  259. loc_005F85FF: call [00401130h] ; __vbaObjSetAddref
  260. loc_005F8605: push eax
  261. loc_005F8606: push esi
  262. loc_005F8607: call [ebx+00000010h]
  263. loc_005F860A: cmp eax, edi
  264. loc_005F860C: fnclex
  265. loc_005F860E: jge 005F861Fh
  266. loc_005F8610: push 00000010h
  267. loc_005F8612: push 00441EF0h
  268. loc_005F8617: push esi
  269. loc_005F8618: push eax
  270. loc_005F8619: call [004010CCh] ; __vbaHresultCheckObj
  271. loc_005F861F: lea ecx, var_18
  272. loc_005F8622: call [0040142Ch] ; __vbaFreeObj
  273. loc_005F8628: push 005F863Ah
  274. loc_005F862D: jmp 005F8639h
  275. loc_005F862F: lea ecx, var_18
  276. loc_005F8632: call [0040142Ch] ; __vbaFreeObj
  277. loc_005F8638: ret
  278. loc_005F8639: ret
  279. loc_005F863A: mov eax, Me
  280. loc_005F863D: push eax
  281. loc_005F863E: mov ecx, [eax]
  282. loc_005F8640: call [ecx+00000008h]
  283. loc_005F8643: mov eax, var_4
  284. loc_005F8646: mov ecx, var_14
  285. loc_005F8649: pop edi
  286. loc_005F864A: pop esi
  287. loc_005F864B: mov fs:[00000000h], ecx
  288. loc_005F8652: pop ebx
  289. loc_005F8653: mov esp, ebp
  290. loc_005F8655: pop ebp
  291. loc_005F8656: retn 0004h
  292. End Sub
  293. Public Sub FireStoryReaderStop() '5F8660
  294. loc_005F8660: push ebp
  295. loc_005F8661: mov ebp, esp
  296. loc_005F8663: sub esp, 0000000Ch
  297. loc_005F8666: push 00412856h ; __vbaExceptHandler
  298. loc_005F866B: mov eax, fs:[00000000h]
  299. loc_005F8671: push eax
  300. loc_005F8672: mov fs:[00000000h], esp
  301. loc_005F8679: sub esp, 00000008h
  302. loc_005F867C: push ebx
  303. loc_005F867D: push esi
  304. loc_005F867E: push edi
  305. loc_005F867F: mov var_C, esp
  306. loc_005F8682: mov var_8, 00403B58h
  307. loc_005F8689: mov var_4, 00000000h
  308. loc_005F8690: mov esi, Me
  309. loc_005F8693: push esi
  310. loc_005F8694: mov eax, [esi]
  311. loc_005F8696: call [eax+00000004h]
  312. loc_005F8699: push 00000000h
  313. loc_005F869B: push 00000001h
  314. loc_005F869D: push esi
  315. loc_005F869E: call [00401064h] ; __vbaRaiseEvent
  316. loc_005F86A4: add esp, 0000000Ch
  317. loc_005F86A7: mov eax, Me
  318. loc_005F86AA: push eax
  319. loc_005F86AB: mov ecx, [eax]
  320. loc_005F86AD: call [ecx+00000008h]
  321. loc_005F86B0: mov eax, var_4
  322. loc_005F86B3: mov ecx, var_14
  323. loc_005F86B6: pop edi
  324. loc_005F86B7: pop esi
  325. loc_005F86B8: mov fs:[00000000h], ecx
  326. loc_005F86BF: pop ebx
  327. loc_005F86C0: mov esp, ebp
  328. loc_005F86C2: pop ebp
  329. loc_005F86C3: retn 0004h
  330. End Sub
  331. Public Sub FireStoryReaderNewBook(strNewPath) '5F86D0
  332. loc_005F86D0: push ebp
  333. loc_005F86D1: mov ebp, esp
  334. loc_005F86D3: sub esp, 0000000Ch
  335. loc_005F86D6: push 00412856h ; __vbaExceptHandler
  336. loc_005F86DB: mov eax, fs:[00000000h]
  337. loc_005F86E1: push eax
  338. loc_005F86E2: mov fs:[00000000h], esp
  339. loc_005F86E9: sub esp, 0000002Ch
  340. loc_005F86EC: push ebx
  341. loc_005F86ED: push esi
  342. loc_005F86EE: push edi
  343. loc_005F86EF: mov var_C, esp
  344. loc_005F86F2: mov var_8, 00403B60h
  345. loc_005F86F9: xor edi, edi
  346. loc_005F86FB: mov var_4, edi
  347. loc_005F86FE: mov esi, Me
  348. loc_005F8701: push esi
  349. loc_005F8702: mov eax, [esi]
  350. loc_005F8704: call [eax+00000004h]
  351. loc_005F8707: mov edx, strNewPath
  352. loc_005F870A: lea ecx, var_18
  353. loc_005F870D: mov var_18, edi
  354. loc_005F8710: call [00401310h] ; __vbaStrCopy
  355. loc_005F8716: sub esp, 00000010h
  356. loc_005F8719: mov eax, var_18
  357. loc_005F871C: mov edx, esp
  358. loc_005F871E: mov ecx, 00000008h
  359. loc_005F8723: push 00000001h
  360. loc_005F8725: push 00000003h
  361. loc_005F8727: mov [edx], ecx
  362. loc_005F8729: mov ecx, var_24
  363. loc_005F872C: push esi
  364. loc_005F872D: mov [edx+00000004h], ecx
  365. loc_005F8730: mov [edx+00000008h], eax
  366. loc_005F8733: mov eax, var_1C
  367. loc_005F8736: mov [edx+0000000Ch], eax
  368. loc_005F8739: call [00401064h] ; __vbaRaiseEvent
  369. loc_005F873F: add esp, 0000001Ch
  370. loc_005F8742: push 005F8751h
  371. loc_005F8747: lea ecx, var_18
  372. loc_005F874A: call [00401430h] ; __vbaFreeStr
  373. loc_005F8750: ret
  374. loc_005F8751: mov eax, Me
  375. loc_005F8754: push eax
  376. loc_005F8755: mov ecx, [eax]
  377. loc_005F8757: call [ecx+00000008h]
  378. loc_005F875A: mov eax, var_4
  379. loc_005F875D: mov ecx, var_14
  380. loc_005F8760: pop edi
  381. loc_005F8761: pop esi
  382. loc_005F8762: mov fs:[00000000h], ecx
  383. loc_005F8769: pop ebx
  384. loc_005F876A: mov esp, ebp
  385. loc_005F876C: pop ebp
  386. loc_005F876D: retn 0008h
  387. End Sub
  388. Public Sub FireStoryReaderShutDown() '5F8770
  389. loc_005F8770: push ebp
  390. loc_005F8771: mov ebp, esp
  391. loc_005F8773: sub esp, 0000000Ch
  392. loc_005F8776: push 00412856h ; __vbaExceptHandler
  393. loc_005F877B: mov eax, fs:[00000000h]
  394. loc_005F8781: push eax
  395. loc_005F8782: mov fs:[00000000h], esp
  396. loc_005F8789: sub esp, 00000018h
  397. loc_005F878C: push ebx
  398. loc_005F878D: push esi
  399. loc_005F878E: push edi
  400. loc_005F878F: mov var_C, esp
  401. loc_005F8792: mov var_8, 00403B70h
  402. loc_005F8799: xor ebx, ebx
  403. loc_005F879B: mov var_4, ebx
  404. loc_005F879E: mov esi, Me
  405. loc_005F87A1: push esi
  406. loc_005F87A2: mov eax, [esi]
  407. loc_005F87A4: call [eax+00000004h]
  408. loc_005F87A7: push ebx
  409. loc_005F87A8: push 00000002h
  410. loc_005F87AA: push esi
  411. loc_005F87AB: mov var_18, ebx
  412. loc_005F87AE: mov var_1C, ebx
  413. loc_005F87B1: call [00401064h] ; __vbaRaiseEvent
  414. loc_005F87B7: mov eax, [0073A254h]
  415. loc_005F87BC: add esp, 0000000Ch
  416. loc_005F87BF: cmp eax, ebx
  417. loc_005F87C1: jnz 005F87D3h
  418. loc_005F87C3: push 0073A254h
  419. loc_005F87C8: push 00431838h
  420. loc_005F87CD: call [004012FCh] ; __vbaNew2
  421. loc_005F87D3: mov edi, [00401310h] ; __vbaStrCopy
  422. loc_005F87D9: mov esi, [0073A254h]
  423. loc_005F87DF: mov edx, 004478A8h ; "FireStoryReaderShutDown"
  424. loc_005F87E4: lea ecx, var_1C
  425. loc_005F87E7: call edi
  426. loc_005F87E9: mov edx, 0044786Ch ; "Shutting down StoryReader."
  427. loc_005F87EE: lea ecx, var_18
  428. loc_005F87F1: call edi
  429. loc_005F87F3: mov ecx, [esi]
  430. loc_005F87F5: lea edx, var_1C
  431. loc_005F87F8: lea eax, var_18
  432. loc_005F87FB: push edx
  433. loc_005F87FC: push eax
  434. loc_005F87FD: push esi
  435. loc_005F87FE: call [ecx+00000748h]
  436. loc_005F8804: cmp eax, ebx
  437. loc_005F8806: fnclex
  438. loc_005F8808: jge 005F881Ch
  439. loc_005F880A: push 00000748h
  440. loc_005F880F: push 004408D0h
  441. loc_005F8814: push esi
  442. loc_005F8815: push eax
  443. loc_005F8816: call [004010CCh] ; __vbaHresultCheckObj
  444. loc_005F881C: lea ecx, var_1C
  445. loc_005F881F: lea edx, var_18
  446. loc_005F8822: push ecx
  447. loc_005F8823: push edx
  448. loc_005F8824: push 00000002h
  449. loc_005F8826: call [00401324h] ; __vbaFreeStrList
  450. loc_005F882C: add esp, 0000000Ch
  451. loc_005F882F: push 005F884Bh
  452. loc_005F8834: jmp 005F884Ah
  453. loc_005F8836: lea eax, var_1C
  454. loc_005F8839: lea ecx, var_18
  455. loc_005F883C: push eax
  456. loc_005F883D: push ecx
  457. loc_005F883E: push 00000002h
  458. loc_005F8840: call [00401324h] ; __vbaFreeStrList
  459. loc_005F8846: add esp, 0000000Ch
  460. loc_005F8849: ret
  461. loc_005F884A: ret
  462. loc_005F884B: mov eax, Me
  463. loc_005F884E: push eax
  464. loc_005F884F: mov edx, [eax]
  465. loc_005F8851: call [edx+00000008h]
  466. loc_005F8854: mov eax, var_4
  467. loc_005F8857: mov ecx, var_14
  468. loc_005F885A: pop edi
  469. loc_005F885B: pop esi
  470. loc_005F885C: mov fs:[00000000h], ecx
  471. loc_005F8863: pop ebx
  472. loc_005F8864: mov esp, ebp
  473. loc_005F8866: pop ebp
  474. loc_005F8867: retn 0004h
  475. End Sub
  476. Public Sub StoryReaderStartup(objStoryReaderInstance) '5F8870
  477. loc_005F8870: push ebp
  478. loc_005F8871: mov ebp, esp
  479. loc_005F8873: sub esp, 0000000Ch
  480. loc_005F8876: push 00412856h ; __vbaExceptHandler
  481. loc_005F887B: mov eax, fs:[00000000h]
  482. loc_005F8881: push eax
  483. loc_005F8882: mov fs:[00000000h], esp
  484. loc_005F8889: sub esp, 00000008h
  485. loc_005F888C: push ebx
  486. loc_005F888D: push esi
  487. loc_005F888E: push edi
  488. loc_005F888F: mov var_C, esp
  489. loc_005F8892: mov var_8, 00403B80h
  490. loc_005F8899: mov var_4, 00000000h
  491. loc_005F88A0: mov eax, Me
  492. loc_005F88A3: push eax
  493. loc_005F88A4: mov ecx, [eax]
  494. loc_005F88A6: call [ecx+00000004h]
  495. loc_005F88A9: mov edx, objStoryReaderInstance
  496. loc_005F88AC: mov eax, [edx]
  497. loc_005F88AE: push eax
  498. loc_005F88AF: push 0073A214h
  499. loc_005F88B4: call [00401130h] ; __vbaObjSetAddref
  500. loc_005F88BA: mov eax, Me
  501. loc_005F88BD: push eax
  502. loc_005F88BE: mov ecx, [eax]
  503. loc_005F88C0: call [ecx+00000008h]
  504. loc_005F88C3: mov eax, var_4
  505. loc_005F88C6: mov ecx, var_14
  506. loc_005F88C9: pop edi
  507. loc_005F88CA: pop esi
  508. loc_005F88CB: mov fs:[00000000h], ecx
  509. loc_005F88D2: pop ebx
  510. loc_005F88D3: mov esp, ebp
  511. loc_005F88D5: pop ebp
  512. loc_005F88D6: retn 0008h
  513. End Sub
  514. Public Sub StoryReaderShutDown() '5F88E0
  515. loc_005F88E0: push ebp
  516. loc_005F88E1: mov ebp, esp
  517. loc_005F88E3: sub esp, 0000000Ch
  518. loc_005F88E6: push 00412856h ; __vbaExceptHandler
  519. loc_005F88EB: mov eax, fs:[00000000h]
  520. loc_005F88F1: push eax
  521. loc_005F88F2: mov fs:[00000000h], esp
  522. loc_005F88F9: sub esp, 00000008h
  523. loc_005F88FC: push ebx
  524. loc_005F88FD: push esi
  525. loc_005F88FE: push edi
  526. loc_005F88FF: mov var_C, esp
  527. loc_005F8902: mov var_8, 00403B88h
  528. loc_005F8909: mov var_4, 00000000h
  529. loc_005F8910: mov eax, Me
  530. loc_005F8913: push eax
  531. loc_005F8914: mov ecx, [eax]
  532. loc_005F8916: call [ecx+00000004h]
  533. loc_005F8919: push 0044777Ch
  534. loc_005F891E: push 00000000h
  535. loc_005F8920: call [004013C4h] ; __vbaCastObj
  536. loc_005F8926: push eax
  537. loc_005F8927: push 0073A214h
  538. loc_005F892C: call [00401128h] ; __vbaObjSet
  539. loc_005F8932: mov eax, Me
  540. loc_005F8935: push eax
  541. loc_005F8936: mov edx, [eax]
  542. loc_005F8938: call [edx+00000008h]
  543. loc_005F893B: mov eax, var_4
  544. loc_005F893E: mov ecx, var_14
  545. loc_005F8941: pop edi
  546. loc_005F8942: pop esi
  547. loc_005F8943: mov fs:[00000000h], ecx
  548. loc_005F894A: pop ebx
  549. loc_005F894B: mov esp, ebp
  550. loc_005F894D: pop ebp
  551. loc_005F894E: retn 0004h
  552. End Sub
  553. Public Sub StoryReaderStopPlayback(strCaller) '5F8960
  554. loc_005F8960: push ebp
  555. loc_005F8961: mov ebp, esp
  556. loc_005F8963: sub esp, 0000000Ch
  557. loc_005F8966: push 00412856h ; __vbaExceptHandler
  558. loc_005F896B: mov eax, fs:[00000000h]
  559. loc_005F8971: push eax
  560. loc_005F8972: mov fs:[00000000h], esp
  561. loc_005F8979: sub esp, 0000001Ch
  562. loc_005F897C: push ebx
  563. loc_005F897D: push esi
  564. loc_005F897E: push edi
  565. loc_005F897F: mov var_C, esp
  566. loc_005F8982: mov var_8, 00403B90h
  567. loc_005F8989: xor ebx, ebx
  568. loc_005F898B: mov var_4, ebx
  569. loc_005F898E: mov esi, Me
  570. loc_005F8991: push esi
  571. loc_005F8992: mov eax, [esi]
  572. loc_005F8994: call [eax+00000004h]
  573. loc_005F8997: mov edi, strCaller
  574. loc_005F899A: mov var_18, ebx
  575. loc_005F899D: mov var_1C, ebx
  576. loc_005F89A0: mov var_20, ebx
  577. loc_005F89A3: mov ecx, [edi]
  578. loc_005F89A5: push ecx
  579. loc_005F89A6: call [00401044h] ; __vbaLenBstr
  580. loc_005F89AC: test eax, eax
  581. loc_005F89AE: jz 005F89B4h
  582. loc_005F89B0: mov edx, [edi]
  583. loc_005F89B2: jmp 005F89B9h
  584. loc_005F89B4: mov edx, 004478DCh ; "StoryReaderStopPlayback"
  585. loc_005F89B9: lea ecx, var_18
  586. loc_005F89BC: call [00401310h] ; __vbaStrCopy
  587. loc_005F89C2: mov edx, [esi]
  588. loc_005F89C4: lea eax, var_20
  589. loc_005F89C7: push eax
  590. loc_005F89C8: push esi
  591. loc_005F89C9: call [edx+00000020h]
  592. loc_005F89CC: cmp eax, ebx
  593. loc_005F89CE: jge 005F89E3h
  594. loc_005F89D0: mov edi, [004010CCh] ; __vbaHresultCheckObj
  595. loc_005F89D6: push 00000020h
  596. loc_005F89D8: push 0044777Ch
  597. loc_005F89DD: push esi
  598. loc_005F89DE: push eax
  599. loc_005F89DF: call edi
  600. loc_005F89E1: jmp 005F89E9h
  601. loc_005F89E3: mov edi, [004010CCh] ; __vbaHresultCheckObj
  602. loc_005F89E9: cmp var_20, bx
  603. loc_005F89ED: jz 005F8B17h
  604. loc_005F89F3: cmp [0073A254h], ebx
  605. loc_005F89F9: jnz 005F8A0Bh
  606. loc_005F89FB: push 0073A254h
  607. loc_005F8A00: push 00431838h
  608. loc_005F8A05: call [004012FCh] ; __vbaNew2
  609. loc_005F8A0B: mov esi, [0073A254h]
  610. loc_005F8A11: mov edx, 00447910h ; "Stopping Playback"
  611. loc_005F8A16: lea ecx, var_1C
  612. loc_005F8A19: call [00401310h] ; __vbaStrCopy
  613. loc_005F8A1F: mov ecx, [esi]
  614. loc_005F8A21: lea edx, var_18
  615. loc_005F8A24: lea eax, var_1C
  616. loc_005F8A27: push edx
  617. loc_005F8A28: push eax
  618. loc_005F8A29: push esi
  619. loc_005F8A2A: call [ecx+00000748h]
  620. loc_005F8A30: cmp eax, ebx
  621. loc_005F8A32: fnclex
  622. loc_005F8A34: jge 005F8A44h
  623. loc_005F8A36: push 00000748h
  624. loc_005F8A3B: push 004408D0h
  625. loc_005F8A40: push esi
  626. loc_005F8A41: push eax
  627. loc_005F8A42: call edi
  628. loc_005F8A44: lea ecx, var_1C
  629. loc_005F8A47: call [00401430h] ; __vbaFreeStr
  630. loc_005F8A4D: mov eax, [0073A214h]
  631. loc_005F8A52: push eax
  632. loc_005F8A53: mov ecx, [eax]
  633. loc_005F8A55: call [ecx+0000002Ch]
  634. loc_005F8A58: cmp eax, ebx
  635. loc_005F8A5A: fnclex
  636. loc_005F8A5C: jge 005F8A6Fh
  637. loc_005F8A5E: mov edx, [0073A214h]
  638. loc_005F8A64: push 0000002Ch
  639. loc_005F8A66: push 0044777Ch
  640. loc_005F8A6B: push edx
  641. loc_005F8A6C: push eax
  642. loc_005F8A6D: call edi
  643. loc_005F8A6F: mov esi, [00401238h] ; __vbaObjIs
  644. loc_005F8A75: mov ebx, [0040113Ch] ; rtcDoEvents
  645. loc_005F8A7B: mov eax, [0073A214h]
  646. loc_005F8A80: lea edx, var_20
  647. loc_005F8A83: push edx
  648. loc_005F8A84: push eax
  649. loc_005F8A85: mov ecx, [eax]
  650. loc_005F8A87: call [ecx+00000020h]
  651. loc_005F8A8A: test eax, eax
  652. loc_005F8A8C: fnclex
  653. loc_005F8A8E: jge 005F8AA1h
  654. loc_005F8A90: mov ecx, [0073A214h]
  655. loc_005F8A96: push 00000020h
  656. loc_005F8A98: push 0044777Ch
  657. loc_005F8A9D: push ecx
  658. loc_005F8A9E: push eax
  659. loc_005F8A9F: call edi
  660. loc_005F8AA1: cmp var_20, 0000h
  661. loc_005F8AA6: jz 005F8ABCh
  662. loc_005F8AA8: mov edx, [0073A214h]
  663. loc_005F8AAE: push 00000000h
  664. loc_005F8AB0: push edx
  665. loc_005F8AB1: call __vbaObjIs
  666. loc_005F8AB3: test ax, ax
  667. loc_005F8AB6: jnz 005F8ABCh
  668. loc_005F8AB8: call ebx
  669. loc_005F8ABA: jmp 005F8A7Bh
  670. loc_005F8ABC: mov eax, [0073A254h]
  671. loc_005F8AC1: test eax, eax
  672. loc_005F8AC3: jnz 005F8AD5h
  673. loc_005F8AC5: push 0073A254h
  674. loc_005F8ACA: push 00431838h
  675. loc_005F8ACF: call [004012FCh] ; __vbaNew2
  676. loc_005F8AD5: mov esi, [0073A254h]
  677. loc_005F8ADB: mov edx, 00447938h ; "Stopped Playback"
  678. loc_005F8AE0: lea ecx, var_1C
  679. loc_005F8AE3: call [00401310h] ; __vbaStrCopy
  680. loc_005F8AE9: mov eax, [esi]
  681. loc_005F8AEB: lea ecx, var_18
  682. loc_005F8AEE: lea edx, var_1C
  683. loc_005F8AF1: push ecx
  684. loc_005F8AF2: push edx
  685. loc_005F8AF3: push esi
  686. loc_005F8AF4: call [eax+00000748h]
  687. loc_005F8AFA: test eax, eax
  688. loc_005F8AFC: fnclex
  689. loc_005F8AFE: jge 005F8B0Eh
  690. loc_005F8B00: push 00000748h
  691. loc_005F8B05: push 004408D0h
  692. loc_005F8B0A: push esi
  693. loc_005F8B0B: push eax
  694. loc_005F8B0C: call edi
  695. loc_005F8B0E: lea ecx, var_1C
  696. loc_005F8B11: call [00401430h] ; __vbaFreeStr
  697. loc_005F8B17: push 005F8B32h
  698. loc_005F8B1C: jmp 005F8B28h
  699. loc_005F8B1E: lea ecx, var_1C
  700. loc_005F8B21: call [00401430h] ; __vbaFreeStr
  701. loc_005F8B27: ret
  702. loc_005F8B28: lea ecx, var_18
  703. loc_005F8B2B: call [00401430h] ; __vbaFreeStr
  704. loc_005F8B31: ret
  705. loc_005F8B32: mov eax, Me
  706. loc_005F8B35: push eax
  707. loc_005F8B36: mov ecx, [eax]
  708. loc_005F8B38: call [ecx+00000008h]
  709. loc_005F8B3B: mov eax, var_4
  710. loc_005F8B3E: mov ecx, var_14
  711. loc_005F8B41: pop edi
  712. loc_005F8B42: pop esi
  713. loc_005F8B43: mov fs:[00000000h], ecx
  714. loc_005F8B4A: pop ebx
  715. loc_005F8B4B: mov esp, ebp
  716. loc_005F8B4D: pop ebp
  717. loc_005F8B4E: retn 0008h
  718. End Sub