Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: C++  |  size: 20.30 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. .text:01DA2BC0 ; int __cdecl sub_1DA2BC0(int, int, char Args, int, float, float, int, int)
  2. .text:01DA2BC0 sub_1DA2BC0     proc near               ; CODE XREF: sub_1D17D20+C0p
  3. .text:01DA2BC0                                         ; sub_1D17DF0+CDp ...
  4. .text:01DA2BC0
  5. .text:01DA2BC0 var_48          = qword ptr -48h
  6. .text:01DA2BC0 Args            = byte ptr -40h
  7. .text:01DA2BC0 var_1           = byte ptr -1
  8. .text:01DA2BC0 arg_0           = dword ptr  4
  9. .text:01DA2BC0 arg_4           = dword ptr  8
  10. .text:01DA2BC0 Source          = byte ptr  0Ch
  11. .text:01DA2BC0 arg_C           = dword ptr  10h
  12. .text:01DA2BC0 arg_10          = dword ptr  14h
  13. .text:01DA2BC0 arg_14          = dword ptr  18h
  14. .text:01DA2BC0 arg_18          = dword ptr  1Ch
  15. .text:01DA2BC0 arg_1C          = dword ptr  20h
  16. .text:01DA2BC0
  17. .text:01DA2BC0                 sub     esp, 48h
  18. .text:01DA2BC3                 mov     eax, dword_243F75C
  19. .text:01DA2BC8                 push    ebx
  20. .text:01DA2BC9                 push    ebp
  21. .text:01DA2BCA                 push    esi
  22. .text:01DA2BCB                 test    eax, eax
  23. .text:01DA2BCD                 push    edi
  24. .text:01DA2BCE                 mov     dword ptr [esp+58h+var_48], 0
  25. .text:01DA2BD6                 jz      loc_1DA2F22
  26. .text:01DA2BDC                 mov     edi, dword ptr [esp+58h+Source]
  27. .text:01DA2BE0                 test    edi, edi
  28. .text:01DA2BE2                 jz      loc_1DA2F22
  29. .text:01DA2BE8                 fld     flt_1E839B4
  30. .text:01DA2BEE                 fcomp   ds:flt_1E491B0
  31. .text:01DA2BF4                 fnstsw  ax
  32. .text:01DA2BF6                 test    ah, 40h
  33. .text:01DA2BF9                 jz      loc_1DA2F22
  34. .text:01DA2BFF                 cmp     byte ptr [edi], 2Ah
  35. .text:01DA2C02                 jnz     short loc_1DA2C0F
  36. .text:01DA2C04                 mov     ebx, 5
  37. .text:01DA2C09                 mov     [esp+58h+arg_4], ebx
  38. .text:01DA2C0D                 jmp     short loc_1DA2C18
  39. .text:01DA2C0F ; ---------------------------------------------------------------------------
  40. .text:01DA2C0F
  41. .text:01DA2C0F loc_1DA2C0F:                            ; CODE XREF: sub_1DA2BC0+42j
  42. .text:01DA2C0F                 mov     ebx, [esp+58h+arg_4]
  43. .text:01DA2C13                 cmp     ebx, 5
  44. .text:01DA2C16                 jnz     short loc_1DA2C3A
  45. .text:01DA2C18
  46. .text:01DA2C18 loc_1DA2C18:                            ; CODE XREF: sub_1DA2BC0+4Dj
  47. .text:01DA2C18                 mov     esi, [esp+58h+arg_1C]
  48. .text:01DA2C1C                 cmp     esi, 64h
  49. .text:01DA2C1F                 jz      short loc_1DA2C3E
  50. .text:01DA2C21                 push    edi             ; Args
  51. .text:01DA2C22                 push    offset aWarningPitchSh ; "Warning: pitch shift ignored on stream "...
  52. .text:01DA2C27                 call    sub_1D39D10
  53. .text:01DA2C2C                 mov     esi, 64h
  54. .text:01DA2C31                 add     esp, 8
  55. .text:01DA2C34                 mov     [esp+58h+arg_1C], esi
  56. .text:01DA2C38                 jmp     short loc_1DA2C3E
  57. .text:01DA2C3A ; ---------------------------------------------------------------------------
  58. .text:01DA2C3A
  59. .text:01DA2C3A loc_1DA2C3A:                            ; CODE XREF: sub_1DA2BC0+56j
  60. .text:01DA2C3A                 mov     esi, [esp+58h+arg_1C]
  61. .text:01DA2C3E
  62. .text:01DA2C3E loc_1DA2C3E:                            ; CODE XREF: sub_1DA2BC0+5Fj
  63. .text:01DA2C3E                                         ; sub_1DA2BC0+78j
  64. .text:01DA2C3E                 fld     [esp+58h+arg_10]
  65. .text:01DA2C42                 fmul    ds:flt_1E4921C
  66. .text:01DA2C48                 call    __ftol
  67. .text:01DA2C4D                 mov     ecx, eax
  68. .text:01DA2C4F                 cmp     ecx, 0FFh
  69. .text:01DA2C55                 mov     [esp+58h+arg_10], ecx
  70. .text:01DA2C59                 jle     short loc_1DA2C75
  71. .text:01DA2C5B                 push    edi             ; Args
  72. .text:01DA2C5C                 push    offset aS_startdynamic ; "S_StartDynamicSound: %s volume > 255"
  73. .text:01DA2C61                 call    sub_1D39D10
  74. .text:01DA2C66                 mov     [esp+60h+arg_10], 0FFh
  75. .text:01DA2C6E                 add     esp, 8
  76. .text:01DA2C71                 mov     ecx, [esp+58h+arg_10]
  77. .text:01DA2C75
  78. .text:01DA2C75 loc_1DA2C75:                            ; CODE XREF: sub_1DA2BC0+99j
  79. .text:01DA2C75                 mov     eax, [esp+58h+arg_18]
  80. .text:01DA2C79                 mov     ebp, [esp+58h+arg_0]
  81. .text:01DA2C7D                 mov     edi, eax
  82. .text:01DA2C7F                 and     edi, 20h
  83. .text:01DA2C82                 jnz     short loc_1DA2C88
  84. .text:01DA2C84                 test    al, 0C0h
  85. .text:01DA2C86                 jz      short loc_1DA2CAA
  86. .text:01DA2C88
  87. .text:01DA2C88 loc_1DA2C88:                            ; CODE XREF: sub_1DA2BC0+C2j
  88. .text:01DA2C88                 push    eax
  89. .text:01DA2C89                 mov     eax, dword ptr [esp+5Ch+Source]
  90. .text:01DA2C8D                 push    esi
  91. .text:01DA2C8E                 push    ecx
  92. .text:01DA2C8F                 push    eax
  93. .text:01DA2C90                 push    ebx
  94. .text:01DA2C91                 push    ebp
  95. .text:01DA2C92                 call    sub_1DA2AC0
  96. .text:01DA2C97                 add     esp, 18h
  97. .text:01DA2C9A                 test    eax, eax
  98. .text:01DA2C9C                 jnz     loc_1DA2F22
  99. .text:01DA2CA2                 test    edi, edi
  100. .text:01DA2CA4                 jnz     loc_1DA2F22
  101. .text:01DA2CAA
  102. .text:01DA2CAA loc_1DA2CAA:                            ; CODE XREF: sub_1DA2BC0+C6j
  103. .text:01DA2CAA                 test    esi, esi
  104. .text:01DA2CAC                 jnz     short loc_1DA2CC3
  105. .text:01DA2CAE                 push    offset aWarningS_start ; "Warning: S_StartDynamicSound Ignored, c"...
  106. .text:01DA2CB3                 call    sub_1D39D10
  107. .text:01DA2CB8                 add     esp, 4
  108. .text:01DA2CBB                 pop     edi
  109. .text:01DA2CBC                 pop     esi
  110. .text:01DA2CBD                 pop     ebp
  111. .text:01DA2CBE                 pop     ebx
  112. .text:01DA2CBF                 add     esp, 48h
  113. .text:01DA2CC2                 retn
  114. .text:01DA2CC3 ; ---------------------------------------------------------------------------
  115. .text:01DA2CC3
  116. .text:01DA2CC3 loc_1DA2CC3:                            ; CODE XREF: sub_1DA2BC0+ECj
  117. .text:01DA2CC3                 fld     dword_1E79844
  118. .text:01DA2CC9                 fadd    ds:flt_1E4971C
  119. .text:01DA2CCF                 fild    [esp+58h+arg_1C]
  120. .text:01DA2CD3                 fstp    [esp+58h+arg_1C]
  121. .text:01DA2CD7                 fmul    [esp+58h+arg_1C]
  122. .text:01DA2CDB                 fmul    ds:flt_1E49700
  123. .text:01DA2CE1                 call    __ftol
  124. .text:01DA2CE6                 mov     ecx, dword ptr [esp+58h+Source]
  125. .text:01DA2CEA                 mov     [esp+58h+arg_1C], eax
  126. .text:01DA2CEE                 push    ecx
  127. .text:01DA2CEF                 push    0
  128. .text:01DA2CF1                 push    ebx
  129. .text:01DA2CF2                 push    ebp
  130. .text:01DA2CF3                 call    sub_1DA25F0
  131. .text:01DA2CF8                 mov     esi, eax
  132. .text:01DA2CFA                 mov     eax, dword_26E451C
  133. .text:01DA2CFF                 add     esp, 10h
  134. .text:01DA2D02                 test    eax, eax
  135. .text:01DA2D04                 jz      loc_1DA2D8E
  136. .text:01DA2D0A                 mov     edx, esi
  137. .text:01DA2D0C                 mov     eax, 38E38E39h
  138. .text:01DA2D11                 sub     edx, offset dword_26FBD40
  139. .text:01DA2D17                 mul     edx
  140. .text:01DA2D19                 mov     edi, edx
  141. .text:01DA2D1B                 shr     edi, 4
  142. .text:01DA2D1E                 call    sub_1D5ECE0
  143. .text:01DA2D23                 add     eax, 4
  144. .text:01DA2D26                 cmp     edi, eax
  145. .text:01DA2D28                 jge     short loc_1DA2D8E
  146. .text:01DA2D2A                 push    1
  147. .text:01DA2D2C                 push    edi
  148. .text:01DA2D2D                 call    sub_1D5EA70
  149. .text:01DA2D32                 add     esp, 8
  150. .text:01DA2D35                 test    eax, eax
  151. .text:01DA2D37                 jz      short loc_1DA2D66
  152. .text:01DA2D39                 lea     ecx, [ebp+ebp*2+0]
  153. .text:01DA2D3D                 mov     ebx, dword_1EAFBFC
  154. .text:01DA2D43                 xor     edx, edx
  155. .text:01DA2D45                 lea     ecx, [ecx+ecx*4]
  156. .text:01DA2D48                 lea     ecx, [ecx+ecx*4]
  157. .text:01DA2D4B                 lea     ecx, [ecx+ecx*4]
  158. .text:01DA2D4E                 cmp     [ebx+ecx*8+308h], edx
  159. .text:01DA2D55                 setz    dl
  160. .text:01DA2D58                 push    edx
  161. .text:01DA2D59                 push    eax
  162. .text:01DA2D5A                 call    sub_1DE2220
  163. .text:01DA2D5F                 mov     ebx, [esp+60h+arg_4]
  164. .text:01DA2D63                 add     esp, 8
  165. .text:01DA2D66
  166. .text:01DA2D66 loc_1DA2D66:                            ; CODE XREF: sub_1DA2BC0+177j
  167. .text:01DA2D66                 push    edi
  168. .text:01DA2D67                 call    sub_1D5EB20
  169. .text:01DA2D6C                 add     esp, 4
  170. .text:01DA2D6F                 cmp     eax, 6          ; switch 7 cases
  171. .text:01DA2D72                 ja      short loc_1DA2D83 ; jumptable 01DA2D74 default case
  172. .text:01DA2D74                 jmp     ds:off_1DA2F2C[eax*4] ; switch jump
  173. .text:01DA2D7B
  174. .text:01DA2D7B loc_1DA2D7B:                            ; DATA XREF: .text:off_1DA2F2Co
  175. .text:01DA2D7B                 push    6               ; jumptable 01DA2D74 cases 2,6
  176. .text:01DA2D7D                 jmp     short loc_1DA2D85
  177. .text:01DA2D7F ; ---------------------------------------------------------------------------
  178. .text:01DA2D7F
  179. .text:01DA2D7F loc_1DA2D7F:                            ; CODE XREF: sub_1DA2BC0+1B4j
  180. .text:01DA2D7F                                         ; DATA XREF: .text:off_1DA2F2Co
  181. .text:01DA2D7F                 push    7               ; jumptable 01DA2D74 case 3
  182. .text:01DA2D81                 jmp     short loc_1DA2D85
  183. .text:01DA2D83 ; ---------------------------------------------------------------------------
  184. .text:01DA2D83
  185. .text:01DA2D83 loc_1DA2D83:                            ; CODE XREF: sub_1DA2BC0+1B2j
  186. .text:01DA2D83                                         ; sub_1DA2BC0+1B4j
  187. .text:01DA2D83                                         ; DATA XREF: ...
  188. .text:01DA2D83                 push    5               ; jumptable 01DA2D74 default case
  189. .text:01DA2D85
  190. .text:01DA2D85 loc_1DA2D85:                            ; CODE XREF: sub_1DA2BC0+1BDj
  191. .text:01DA2D85                                         ; sub_1DA2BC0+1C1j
  192. .text:01DA2D85                 push    edi
  193. .text:01DA2D86                 call    sub_1D5EB50
  194. .text:01DA2D8B                 add     esp, 8
  195. .text:01DA2D8E
  196. .text:01DA2D8E loc_1DA2D8E:                            ; CODE XREF: sub_1DA2BC0+144j
  197. .text:01DA2D8E                                         ; sub_1DA2BC0+168j
  198. .text:01DA2D8E                 test    esi, esi
  199. .text:01DA2D90                 jz      loc_1DA2F22
  200. .text:01DA2D96                 mov     edi, dword ptr [esp+58h+Source]
  201. .text:01DA2D9A                 mov     al, [edi]
  202. .text:01DA2D9C                 cmp     al, 21h
  203. .text:01DA2D9E                 jz      short loc_1DA2DA4
  204. .text:01DA2DA0                 cmp     al, 23h
  205. .text:01DA2DA2                 jnz     short loc_1DA2DAC
  206. .text:01DA2DA4
  207. .text:01DA2DA4 loc_1DA2DA4:                            ; CODE XREF: sub_1DA2BC0+1DEj
  208. .text:01DA2DA4                 mov     dword ptr [esp+58h+var_48], 1
  209. .text:01DA2DAC
  210. .text:01DA2DAC loc_1DA2DAC:                            ; CODE XREF: sub_1DA2BC0+1E2j
  211. .text:01DA2DAC                 push    48h
  212. .text:01DA2DAE                 push    0
  213. .text:01DA2DB0                 push    esi
  214. .text:01DA2DB1                 call    sub_1D365F0
  215. .text:01DA2DB6                 fld     [esp+64h+arg_14]
  216. .text:01DA2DBA                 fdiv    flt_1E838C4
  217. .text:01DA2DC0                 mov     eax, [esp+64h+arg_C]
  218. .text:01DA2DC4                 push    esi
  219. .text:01DA2DC5                 mov     [esi+18h], ebp
  220. .text:01DA2DC8                 mov     [esi+1Ch], ebx
  221. .text:01DA2DCB                 mov     ecx, [eax]
  222. .text:01DA2DCD                 mov     edx, [eax+4]
  223. .text:01DA2DD0                 mov     eax, [eax+8]
  224. .text:01DA2DD3                 mov     [esi+20h], ecx
  225. .text:01DA2DD6                 mov     ecx, [esp+68h+arg_10]
  226. .text:01DA2DDA                 mov     [esi+24h], edx
  227. .text:01DA2DDD                 mov     edx, [esp+68h+arg_1C]
  228. .text:01DA2DE4                 mov     [esi+28h], eax
  229. .text:01DA2DE7                 mov     [esi+30h], ecx
  230. .text:01DA2DEA                 mov     [esi+3Ch], edx
  231. .text:01DA2DED                 mov     dword ptr [esi+34h], 0FFFFFFFFh
  232. .text:01DA2DF4                 fstp    dword ptr [esi+2Ch]
  233. .text:01DA2DF7                 call    sub_1DA27B0
  234. .text:01DA2DFC                 mov     eax, [esi+4]
  235. .text:01DA2DFF                 add     esp, 10h
  236. .text:01DA2E02                 test    eax, eax
  237. .text:01DA2E04                 jnz     short loc_1DA2E20
  238. .text:01DA2E06                 mov     eax, [esi+8]
  239. .text:01DA2E09                 test    eax, eax
  240. .text:01DA2E0B                 jnz     short loc_1DA2E20
  241. .text:01DA2E0D                 cmp     ebx, 5
  242. .text:01DA2E10                 jz      short loc_1DA2E20
  243. .text:01DA2E12                 mov     dword ptr [esi], 0
  244. .text:01DA2E18                 pop     edi
  245. .text:01DA2E19                 pop     esi
  246. .text:01DA2E1A                 pop     ebp
  247. .text:01DA2E1B                 pop     ebx
  248. .text:01DA2E1C                 add     esp, 48h
  249. .text:01DA2E1F                 retn
  250. .text:01DA2E20 ; ---------------------------------------------------------------------------
  251. .text:01DA2E20
  252. .text:01DA2E20 loc_1DA2E20:                            ; CODE XREF: sub_1DA2BC0+244j
  253. .text:01DA2E20                                         ; sub_1DA2BC0+24Bj ...
  254. .text:01DA2E20                 mov     eax, dword ptr [esp+58h+var_48]
  255. .text:01DA2E24                 test    eax, eax
  256. .text:01DA2E26                 jz      short loc_1DA2E4D
  257. .text:01DA2E28                 inc     edi
  258. .text:01DA2E29                 push    3Fh
  259. .text:01DA2E2B                 lea     eax, [esp+5Ch+Args]
  260. .text:01DA2E2F                 push    edi
  261. .text:01DA2E30                 push    eax
  262. .text:01DA2E31                 call    sub_1D36720
  263. .text:01DA2E36                 lea     ecx, [esp+64h+Args]
  264. .text:01DA2E3A                 mov     [esp+64h+var_1], 0
  265. .text:01DA2E3F                 push    ecx             ; Args
  266. .text:01DA2E40                 push    esi             ; int
  267. .text:01DA2E41                 call    sub_1DA8690
  268. .text:01DA2E46                 add     esp, 14h
  269. .text:01DA2E49                 mov     edi, eax
  270. .text:01DA2E4B                 jmp     short loc_1DA2E5F
  271. .text:01DA2E4D ; ---------------------------------------------------------------------------
  272. .text:01DA2E4D
  273. .text:01DA2E4D loc_1DA2E4D:                            ; CODE XREF: sub_1DA2BC0+266j
  274. .text:01DA2E4D                 push    esi             ; int
  275. .text:01DA2E4E                 push    edi             ; Source
  276. .text:01DA2E4F                 call    sub_1DA4770
  277. .text:01DA2E54                 mov     edx, dword ptr [esp+60h+Source]
  278. .text:01DA2E58                 add     esp, 8
  279. .text:01DA2E5B                 mov     edi, eax
  280. .text:01DA2E5D                 mov     [esi], edx
  281. .text:01DA2E5F
  282. .text:01DA2E5F loc_1DA2E5F:                            ; CODE XREF: sub_1DA2BC0+28Bj
  283. .text:01DA2E5F                 test    edi, edi
  284. .text:01DA2E61                 jnz     short loc_1DA2E6D
  285. .text:01DA2E63                 mov     [esi], edi
  286. .text:01DA2E65                 pop     edi
  287. .text:01DA2E66                 pop     esi
  288. .text:01DA2E67                 pop     ebp
  289. .text:01DA2E68                 pop     ebx
  290. .text:01DA2E69                 add     esp, 48h
  291. .text:01DA2E6C                 retn
  292. .text:01DA2E6D ; ---------------------------------------------------------------------------
  293. .text:01DA2E6D
  294. .text:01DA2E6D loc_1DA2E6D:                            ; CODE XREF: sub_1DA2BC0+2A1j
  295. .text:01DA2E6D                 mov     eax, [edi]
  296. .text:01DA2E6F                 mov     ecx, dword_26FA880
  297. .text:01DA2E75                 add     eax, ecx
  298. .text:01DA2E77                 mov     dword ptr [esi+10h], 0
  299. .text:01DA2E7E                 mov     [esi+0Ch], eax
  300. .text:01DA2E81                 mov     eax, dword ptr [esp+58h+var_48]
  301. .text:01DA2E85                 test    eax, eax
  302. .text:01DA2E87                 jnz     short loc_1DA2E9C
  303. .text:01DA2E89                 mov     eax, [esp+58h+arg_1C]
  304. .text:01DA2E8D                 cmp     eax, 64h
  305. .text:01DA2E90                 jz      short loc_1DA2E9C
  306. .text:01DA2E92                 push    eax
  307. .text:01DA2E93                 push    esi
  308. .text:01DA2E94                 call    sub_1DA8600
  309. .text:01DA2E99                 add     esp, 8
  310. .text:01DA2E9C
  311. .text:01DA2E9C loc_1DA2E9C:                            ; CODE XREF: sub_1DA2BC0+2C7j
  312. .text:01DA2E9C                                         ; sub_1DA2BC0+2D0j
  313. .text:01DA2E9C                 push    edi
  314. .text:01DA2E9D                 push    esi
  315. .text:01DA2E9E                 call    sub_1DA8F70
  316. .text:01DA2EA3                 push    ebx
  317. .text:01DA2EA4                 push    ebp
  318. .text:01DA2EA5                 call    sub_1DA7F90
  319. .text:01DA2EAA                 add     esp, 10h
  320. .text:01DA2EAD                 mov     eax, offset unk_26FBE60
  321. .text:01DA2EB2                 mov     ecx, 4
  322. .text:01DA2EB7
  323. .text:01DA2EB7 loc_1DA2EB7:                            ; CODE XREF: sub_1DA2BC0+313j
  324. .text:01DA2EB7                 cmp     eax, esi
  325. .text:01DA2EB9                 jz      short loc_1DA2ECC
  326. .text:01DA2EBB                 mov     edx, dword ptr [esp+58h+Source]
  327. .text:01DA2EBF                 mov     edi, [eax]
  328. .text:01DA2EC1                 cmp     edi, edx
  329. .text:01DA2EC3                 jnz     short loc_1DA2ECC
  330. .text:01DA2EC5                 mov     edx, [eax+10h]
  331. .text:01DA2EC8                 test    edx, edx
  332. .text:01DA2ECA                 jz      short loc_1DA2EDD
  333. .text:01DA2ECC
  334. .text:01DA2ECC loc_1DA2ECC:                            ; CODE XREF: sub_1DA2BC0+2F9j
  335. .text:01DA2ECC                                         ; sub_1DA2BC0+303j
  336. .text:01DA2ECC                 inc     ecx
  337. .text:01DA2ECD                 add     eax, 48h
  338. .text:01DA2ED0                 cmp     ecx, 0Ch
  339. .text:01DA2ED3                 jl      short loc_1DA2EB7
  340. .text:01DA2ED5                 pop     edi
  341. .text:01DA2ED6                 pop     esi
  342. .text:01DA2ED7                 pop     ebp
  343. .text:01DA2ED8                 pop     ebx
  344. .text:01DA2ED9                 add     esp, 48h
  345. .text:01DA2EDC                 retn
  346. .text:01DA2EDD ; ---------------------------------------------------------------------------
  347. .text:01DA2EDD
  348. .text:01DA2EDD loc_1DA2EDD:                            ; CODE XREF: sub_1DA2BC0+30Aj
  349. .text:01DA2EDD                 mov     eax, dword_243F758
  350. .text:01DA2EE2                 mov     ecx, [eax+20h]
  351. .text:01DA2EE5                 mov     [esp+58h+arg_1C], ecx
  352. .text:01DA2EE9                 fild    [esp+58h+arg_1C]
  353. .text:01DA2EED                 fstp    [esp+58h+var_48]
  354. .text:01DA2EF1                 fld     [esp+58h+var_48]
  355. .text:01DA2EF5                 fmul    ds:dbl_1E49910
  356. .text:01DA2EFB                 call    __ftol
  357. .text:01DA2F00                 push    eax
  358. .text:01DA2F01                 push    0
  359. .text:01DA2F03                 call    sub_1D84D70
  360. .text:01DA2F08                 mov     ecx, [esi+0Ch]
  361. .text:01DA2F0B                 add     esp, 8
  362. .text:01DA2F0E                 cmp     eax, ecx
  363. .text:01DA2F10                 jl      short loc_1DA2F15
  364. .text:01DA2F12                 lea     eax, [ecx-1]
  365. .text:01DA2F15
  366. .text:01DA2F15 loc_1DA2F15:                            ; CODE XREF: sub_1DA2BC0+350j
  367. .text:01DA2F15                 mov     edi, [esi+10h]
  368. .text:01DA2F18                 add     edi, eax
  369. .text:01DA2F1A                 sub     ecx, eax
  370. .text:01DA2F1C                 mov     [esi+10h], edi
  371. .text:01DA2F1F                 mov     [esi+0Ch], ecx
  372. .text:01DA2F22
  373. .text:01DA2F22 loc_1DA2F22:                            ; CODE XREF: sub_1DA2BC0+16j
  374. .text:01DA2F22                                         ; sub_1DA2BC0+22j ...
  375. .text:01DA2F22                 pop     edi
  376. .text:01DA2F23                 pop     esi
  377. .text:01DA2F24                 pop     ebp
  378. .text:01DA2F25                 pop     ebx
  379. .text:01DA2F26                 add     esp, 48h
  380. .text:01DA2F29                 retn
  381. .text:01DA2F29 sub_1DA2BC0     endp