Advertisement
Guest User

Untitled

a guest
Oct 10th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.84 KB | None | 0 0
  1. .text:00542490 ; int __cdecl CCoronas__RegisterCorona(int, char, char, char, char, int, float, float, int, char, char, char, char, float, char, float)
  2. .text:00542490 CCoronas__RegisterCorona proc near ; CODE XREF: CEntity__m30+48Dp
  3. .text:00542490 ; sub_541590+450p
  4. .text:00542490 ; sub_541590+C15p
  5. .text:00542490 ; CCoronas__DoSunAndMoon_void_+F4p ...
  6. .text:00542490
  7. .text:00542490 var_18 = dword ptr -18h
  8. .text:00542490 var_14 = dword ptr -14h
  9. .text:00542490 arg_0 = dword ptr 4
  10. .text:00542490 arg_4 = byte ptr 8
  11. .text:00542490 arg_8 = byte ptr 0Ch
  12. .text:00542490 arg_C = byte ptr 10h
  13. .text:00542490 arg_10 = byte ptr 14h
  14. .text:00542490 arg_14 = dword ptr 18h
  15. .text:00542490 arg_18 = dword ptr 1Ch
  16. .text:00542490 arg_1C = dword ptr 20h
  17. .text:00542490 arg_20 = dword ptr 24h
  18. .text:00542490 arg_24 = byte ptr 28h
  19. .text:00542490 arg_28 = byte ptr 2Ch
  20. .text:00542490 arg_2C = byte ptr 30h
  21. .text:00542490 arg_30 = byte ptr 34h
  22. .text:00542490 arg_34 = dword ptr 38h
  23. .text:00542490 arg_38 = byte ptr 3Ch
  24. .text:00542490 arg_3C = dword ptr 40h
  25. .text:00542490
  26. .text:00542490 000 push ebx
  27. .text:00542491 004 push esi
  28. .text:00542492 008 push ebp
  29. .text:00542493 00C mov ebx, offset _camera.__parent.matrix.__parent.pos
  30. .text:00542498 00C sub esp, 10h
  31. .text:0054249B 01C mov ebp, [esp+1Ch+arg_14]
  32. .text:0054249F 01C fldz
  33. .text:005424A1 01C fldz
  34. .text:005424A3 01C fldz
  35. .text:005424A5 01C fld [esp+1Ch+arg_1C]
  36. .text:005424A9 01C fldz
  37. .text:005424AB 01C fld dword ptr [ebp+4]
  38. .text:005424AE 01C fstp st(4)
  39. .text:005424B0 01C fld dword ptr [ebx+4]
  40. .text:005424B3 01C fsub st, st(4)
  41. .text:005424B5 01C fstp st(5)
  42. .text:005424B7 01C mov esi, [esp+1Ch+arg_0]
  43. .text:005424BB 01C fld st(4)
  44. .text:005424BD 01C fmul st, st
  45. .text:005424BF 01C fld dword ptr [ebp+0]
  46. .text:005424C2 01C fstp st(4)
  47. .text:005424C4 01C fld dword ptr [ebx]
  48. .text:005424C6 01C fsub st, st(4)
  49. .text:005424C8 01C fstp st(6)
  50. .text:005424CA 01C fld st(5)
  51. .text:005424CC 01C fmul st, st
  52. .text:005424CE 01C faddp st(1), st
  53. .text:005424D0 01C fld st(2)
  54. .text:005424D2 01C fmul st, st
  55. .text:005424D4 01C fcompp
  56. .text:005424D6 01C fnstsw ax
  57. .text:005424D8 01C and ah, 5
  58. .text:005424DB 01C cmp ah, 1
  59. .text:005424DE 01C jnz short loc_5424F0
  60. .text:005424E0 01C fcompp
  61. .text:005424E2 01C fcompp
  62. .text:005424E4 01C add esp, 10h
  63. .text:005424E7 00C fstp st
  64. .text:005424E9 00C pop ebp
  65. .text:005424EA 008 pop esi
  66. .text:005424EB 004 pop ebx
  67. .text:005424EC 000 retn
  68. .text:005424EC ; ---------------------------------------------------------------------------
  69. .text:005424ED 000 align 10h
  70. .text:005424F0
  71. .text:005424F0 loc_5424F0: ; CODE XREF: CCoronas__RegisterCorona+4Ej
  72. .text:005424F0 01C cmp [esp+1Ch+arg_38], 0
  73. .text:005424F5 01C jz loc_5425AD
  74. .text:005424FB 01C fld dword ptr [ebx+8]
  75. .text:005424FE 01C fsub dword ptr [ebp+8]
  76. .text:00542501 01C fstp st(5)
  77. .text:00542503 01C fld dword ptr [ebx+4]
  78. .text:00542506 01C fsub st, st(4)
  79. .text:00542508 01C fstp st(1)
  80. .text:0054250A 01C fld dword ptr [ebx]
  81. .text:0054250C 01C fsub st, st(3)
  82. .text:0054250E 01C fstp st(4)
  83. .text:00542510 01C fld st
  84. .text:00542512 01C fstp st(3)
  85. .text:00542514 01C fld st(2)
  86. .text:00542516 01C fmul st, st
  87. .text:00542518 01C fld st(4)
  88. .text:0054251A 01C fmul st, st
  89. .text:0054251C 01C faddp st(1), st
  90. .text:0054251E 01C fld st(5)
  91. .text:00542520 01C fstp st(6)
  92. .text:00542522 01C fld st(5)
  93. .text:00542524 01C fmul st, st
  94. .text:00542526 01C faddp st(1), st
  95. .text:00542528 01C fstp st(5)
  96. .text:0054252A 01C fld st(4)
  97. .text:0054252C 01C fsqrt
  98. .text:0054252E 01C fstp [esp+1Ch+var_14]
  99. .text:00542532 01C fld [esp+1Ch+var_14]
  100. .text:00542536 01C fstp st(5)
  101. .text:00542538 01C fld st(4)
  102. .text:0054253A 01C fcomp flt_6958B0
  103. .text:00542540 01C fnstsw ax
  104. .text:00542542 01C and ah, 5
  105. .text:00542545 01C cmp ah, 1
  106. .text:00542548 01C jnz short loc_542557
  107. .text:0054254A 01C fcompp
  108. .text:0054254C 01C fcompp
  109. .text:0054254E 01C add esp, 10h
  110. .text:00542551 00C fstp st
  111. .text:00542553 00C pop ebp
  112. .text:00542554 008 pop esi
  113. .text:00542555 004 pop ebx
  114. .text:00542556 000 retn
  115. .text:00542557 ; ---------------------------------------------------------------------------
  116. .text:00542557
  117. .text:00542557 loc_542557: ; CODE XREF: CCoronas__RegisterCorona+B8j
  118. .text:00542557 01C fld st(4)
  119. .text:00542559 01C fcomp flt_6958B4
  120. .text:0054255F 01C fnstsw ax
  121. .text:00542561 01C and ah, 5
  122. .text:00542564 01C cmp ah, 1
  123. .text:00542567 01C jnz short loc_5425AD
  124. .text:00542569 01C fld st(4)
  125. .text:0054256B 01C fsub flt_6958B0
  126. .text:00542571 01C mov al, [esp+1Ch+arg_10]
  127. .text:00542575 01C and eax, 0FFh
  128. .text:0054257A 01C fmul flt_6958B8
  129. .text:00542580 01C mov [esp+1Ch+var_14], eax
  130. .text:00542584 01C fimul [esp+1Ch+var_14]
  131. .text:00542588 01C fnstcw word ptr [esp+1Ch+var_18]
  132. .text:0054258C 01C mov eax, [esp+1Ch+var_18]
  133. .text:00542590 01C or byte ptr [esp+1Ch+var_18+1], 0Ch
  134. .text:00542595 01C fldcw word ptr [esp+1Ch+var_18]
  135. .text:00542599 01C mov [esp+1Ch+var_18], eax
  136. .text:0054259D 01C fistp [esp+1Ch+var_14]
  137. .text:005425A1 01C fldcw word ptr [esp+1Ch+var_18]
  138. .text:005425A5 01C mov al, byte ptr [esp+1Ch+var_14]
  139. .text:005425A9 01C mov [esp+1Ch+arg_10], al
  140. .text:005425AD
  141. .text:005425AD loc_5425AD: ; CODE XREF: CCoronas__RegisterCorona+65j
  142. .text:005425AD ; CCoronas__RegisterCorona+D7j
  143. .text:005425AD 01C xor edx, edx
  144. .text:005425AF 01C xor ecx, ecx
  145. .text:005425B1 01C jmp short loc_5425B7
  146. .text:005425B3 ; ---------------------------------------------------------------------------
  147. .text:005425B3
  148. .text:005425B3 loc_5425B3: ; CODE XREF: CCoronas__RegisterCorona+133j
  149. .text:005425B3 01C add ecx, 68h
  150. .text:005425B6 01C inc edx
  151. .text:005425B7
  152. .text:005425B7 loc_5425B7: ; CODE XREF: CCoronas__RegisterCorona+121j
  153. .text:005425B7 01C cmp dx, 38h
  154. .text:005425BB 01C jnb short loc_5425C5
  155. .text:005425BD 01C cmp esi, ds:dword_815134[ecx]
  156. .text:005425C3 01C jnz short loc_5425B3
  157. .text:005425C5
  158. .text:005425C5 loc_5425C5: ; CODE XREF: CCoronas__RegisterCorona+12Bj
  159. .text:005425C5 01C cmp dx, 38h
  160. .text:005425C9 01C jnz loc_542680
  161. .text:005425CF 01C cmp [esp+1Ch+arg_10], 0
  162. .text:005425D4 01C jnz short loc_5425E3
  163. .text:005425D6 01C fcompp
  164. .text:005425D8 01C fcompp
  165. .text:005425DA 01C add esp, 10h
  166. .text:005425DD 00C fstp st
  167. .text:005425DF 00C pop ebp
  168. .text:005425E0 008 pop esi
  169. .text:005425E1 004 pop ebx
  170. .text:005425E2 000 retn
  171. .text:005425E3 ; ---------------------------------------------------------------------------
  172. .text:005425E3
  173. .text:005425E3 loc_5425E3: ; CODE XREF: CCoronas__RegisterCorona+144j
  174. .text:005425E3 01C xor edx, edx
  175. .text:005425E5 01C xor eax, eax
  176. .text:005425E7 01C jmp short loc_5425F4
  177. .text:005425E7 ; ---------------------------------------------------------------------------
  178. .text:005425E9 01C align 10h
  179. .text:005425F0
  180. .text:005425F0 loc_5425F0: ; CODE XREF: CCoronas__RegisterCorona+171j
  181. .text:005425F0 01C add eax, 68h
  182. .text:005425F3 01C inc edx
  183. .text:005425F4
  184. .text:005425F4 loc_5425F4: ; CODE XREF: CCoronas__RegisterCorona+157j
  185. .text:005425F4 01C cmp dx, 38h
  186. .text:005425F8 01C jnb short loc_542603
  187. .text:005425FA 01C cmp ds:dword_815134[eax], 0
  188. .text:00542601 01C jnz short loc_5425F0
  189. .text:00542603
  190. .text:00542603 loc_542603: ; CODE XREF: CCoronas__RegisterCorona+168j
  191. .text:00542603 01C cmp dx, 38h
  192. .text:00542607 01C jnz short loc_542616
  193. .text:00542609 01C fcompp
  194. .text:0054260B 01C fcompp
  195. .text:0054260D 01C add esp, 10h
  196. .text:00542610 00C fstp st
  197. .text:00542612 00C pop ebp
  198. .text:00542613 008 pop esi
  199. .text:00542614 004 pop ebx
  200. .text:00542615 000 retn
  201. .text:00542616 ; ---------------------------------------------------------------------------
  202. .text:00542616
  203. .text:00542616 loc_542616: ; CODE XREF: CCoronas__RegisterCorona+177j
  204. .text:00542616 01C movzx ebx, dx
  205. .text:00542619 01C mov ecx, offset dword_815128
  206. .text:0054261E 01C imul ebx, 68h
  207. .text:00542621 01C add ecx, ebx
  208. .text:00542623 01C mov ds:byte_815158[ebx], 0
  209. .text:0054262A 01C add ecx, 34h
  210. .text:0054262D 01C mov al, [ecx]
  211. .text:0054262F 01C and al, 0FDh
  212. .text:00542631 01C or al, 2
  213. .text:00542633 01C mov [ecx], al
  214. .text:00542635 01C mov al, [ecx]
  215. .text:00542637 01C and al, 0FBh
  216. .text:00542639 01C or al, 4
  217. .text:0054263B 01C mov [ecx], al
  218. .text:0054263D 01C mov al, [ecx]
  219. .text:0054263F 01C and al, 0BFh
  220. .text:00542641 01C mov [ecx], al
  221. .text:00542643 01C mov ds:dword_815138[ebx], 0
  222. .text:0054264D 01C mov al, [ecx]
  223. .text:0054264F 01C and al, 0EFh
  224. .text:00542651 01C mov [ecx], al
  225. .text:00542653 01C mov ds:byte_815188[ebx], 0
  226. .text:0054265A 01C mov ds:byte_815189[ebx], 0
  227. .text:00542661 01C mov ds:byte_81518A[ebx], 0
  228. .text:00542668 01C mov ds:byte_81518B[ebx], 0
  229. .text:0054266F 01C mov ds:byte_81518C[ebx], 0
  230. .text:00542676 01C mov ds:byte_81518D[ebx], 0
  231. .text:0054267D 01C jmp short loc_5426B0
  232. .text:0054267D ; ---------------------------------------------------------------------------
  233. .text:0054267F 01C align 10h
  234. .text:00542680
  235. .text:00542680 loc_542680: ; CODE XREF: CCoronas__RegisterCorona+139j
  236. .text:00542680 01C movzx eax, dx
  237. .text:00542683 01C imul eax, 68h
  238. .text:00542686 01C cmp ds:byte_815158[eax], 0
  239. .text:0054268D 01C jnz short loc_5426B0
  240. .text:0054268F 01C cmp [esp+1Ch+arg_10], 0
  241. .text:00542694 01C jnz short loc_5426B0
  242. .text:00542696 01C fcompp
  243. .text:00542698 01C fcompp
  244. .text:0054269A 01C add esp, 10h
  245. .text:0054269D 00C mov ds:dword_815134[eax], 0
  246. .text:005426A7 00C fstp st
  247. .text:005426A9 00C pop ebp
  248. .text:005426AA 008 pop esi
  249. .text:005426AB 004 pop ebx
  250. .text:005426AC 000 retn
  251. .text:005426AC ; ---------------------------------------------------------------------------
  252. .text:005426AD 000 align 10h
  253. .text:005426B0
  254. .text:005426B0 loc_5426B0: ; CODE XREF: CCoronas__RegisterCorona+1EDj
  255. .text:005426B0 ; CCoronas__RegisterCorona+1FDj
  256. .text:005426B0 ; CCoronas__RegisterCorona+204j
  257. .text:005426B0 01C movzx ecx, dx
  258. .text:005426B3 01C mov al, [esp+1Ch+arg_4]
  259. .text:005426B7 01C mov dl, [esp+1Ch+arg_2C]
  260. .text:005426BB 01C and dl, 1
  261. .text:005426BE 01C imul ecx, 68h
  262. .text:005426C1 01C mov ds:dword_815134[ecx], esi
  263. .text:005426C7 01C mov ds:byte_815154[ecx], al
  264. .text:005426CD 01C mov al, [esp+1Ch+arg_8]
  265. .text:005426D1 01C mov ds:byte_815155[ecx], al
  266. .text:005426D7 01C mov al, [esp+1Ch+arg_C]
  267. .text:005426DB 01C mov ds:byte_815156[ecx], al
  268. .text:005426E1 01C mov al, [esp+1Ch+arg_10]
  269. .text:005426E5 01C mov ds:byte_815157[ecx], al
  270. .text:005426EB 01C mov eax, [esp+1Ch+arg_20]
  271. .text:005426EF 01C fld dword ptr [ebp+0]
  272. .text:005426F2 01C fstp ds:dword_815128[ecx]
  273. .text:005426F8 01C fld dword ptr [ebp+4]
  274. .text:005426FB 01C fstp ds:flt_81512C[ecx]
  275. .text:00542701 01C fld dword ptr [ebp+8]
  276. .text:00542704 01C fstp ds:flt_815130[ecx]
  277. .text:0054270A 01C fld [esp+1Ch+arg_18]
  278. .text:0054270E 01C fstp ds:flt_815140[ecx]
  279. .text:00542714 01C fld [esp+1Ch+arg_34]
  280. .text:00542718 01C fstp ds:flt_815144[ecx]
  281. .text:0054271E 01C fld st(1)
  282. .text:00542720 01C mov ds:byte_815159[ecx], 1
  283. .text:00542727 01C fstp ds:flt_815148[ecx]
  284. .text:0054272D 01C mov ds:dword_81513C[ecx], eax
  285. .text:00542733 01C mov al, [esp+1Ch+arg_24]
  286. .text:00542737 01C mov ds:byte_81515A[ecx], al
  287. .text:0054273D 01C mov al, [esp+1Ch+arg_28]
  288. .text:00542741 01C mov ds:byte_81515B[ecx], al
  289. .text:00542747 01C mov eax, offset dword_815128
  290. .text:0054274C 01C add eax, ecx
  291. .text:0054274E 01C add eax, 34h
  292. .text:00542751 01C mov bl, [eax]
  293. .text:00542753 01C and bl, 0FEh
  294. .text:00542756 01C or bl, dl
  295. .text:00542758 01C mov [eax], bl
  296. .text:0054275A 01C mov dl, [esp+1Ch+arg_30]
  297. .text:0054275E 01C and dl, 1
  298. .text:00542761 01C mov bl, [eax]
  299. .text:00542763 01C shl dl, 3
  300. .text:00542766 01C and bl, 0F7h
  301. .text:00542769 01C or bl, dl
  302. .text:0054276B 01C mov [eax], bl
  303. .text:0054276D 01C mov dl, [esp+1Ch+arg_38]
  304. .text:00542771 01C and dl, 1
  305. .text:00542774 01C mov bl, [eax]
  306. .text:00542776 01C shl dl, 5
  307. .text:00542779 01C and bl, 0DFh
  308. .text:0054277C 01C or bl, dl
  309. .text:0054277E 01C mov [eax], bl
  310. .text:00542780 01C fld [esp+1Ch+arg_3C]
  311. .text:00542784 01C fstp ds:flt_81514C[ecx]
  312. .text:0054278A 01C fcompp
  313. .text:0054278C 01C fcompp
  314. .text:0054278E 01C fstp st
  315. .text:00542790 01C add esp, 10h
  316. .text:00542793 00C pop ebp
  317. .text:00542794 008 pop esi
  318. .text:00542795 004 pop ebx
  319. .text:00542796 000 retn
  320. .text:00542796 CCoronas__RegisterCorona endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement