rendered paste body.text:0010ECF0 loc_10ECF0: ; CODE XREF: sub_B9180:loc_B944Cp
.text:0010ECF0 ; sub_110020+1ECp
.text:0010ECF0 push ebp
.text:0010ECF1 mov edx, 1ACh
.text:0010ECF6 mov ebp, esp
.text:0010ECF8 push edi
.text:0010ECF9 push esi
.text:0010ECFA xor esi, esi
.text:0010ECFC push ebx
.text:0010ECFD call sub_47FB3
.text:0010ED02 add ebx, 0CAC32h
.text:0010ED08 sub esp, 0ACh
.text:0010ED0E mov edi, [ebx+284h]
.text:0010ED14 mov eax, dword ptr ds:loc_50F0C[edi]
.text:0010ED1A mov [esp+8], edx
.text:0010ED1E mov [esp+4], esi
.text:0010ED22 mov [esp], eax
.text:0010ED25 call _memset
.text:0010ED2A mov ecx, dword ptr ds:loc_4CB08[edi]
.text:0010ED30 test ecx, ecx
.text:0010ED32 jnz loc_10F590
.text:0010ED38 mov eax, [ebx+174h]
.text:0010ED3E mov eax, [eax+0Ch]
.text:0010ED41 test eax, eax
.text:0010ED43 jz loc_10F0D8
.text:0010ED49 fld dword ptr [ebx-2201Ch]
.text:0010ED4F
.text:0010ED4F loc_10ED4F: ; CODE XREF: .text:0010F0DEj
.text:0010ED4F mov esi, [ebx+3A4h]
.text:0010ED55 lea edx, [ebx-30330h]
.text:0010ED5B fild dword ptr [esi+6AC8h]
.text:0010ED61 fnstcw word ptr [ebp-4Ah]
.text:0010ED64 movzx eax, word ptr [ebp-4Ah]
.text:0010ED68 or ax, 0C00h
.text:0010ED6C mov [ebp-4Ch], ax
.text:0010ED70 fldcw word ptr [ebp-4Ch]
.text:0010ED73 fistp dword ptr [ebp-50h]
.text:0010ED76 fldcw word ptr [ebp-4Ah]
.text:0010ED79 fild dword ptr [esi+6ACCh]
.text:0010ED7F fmul dword ptr [edx]
.text:0010ED81 mov eax, [ebp-50h]
.text:0010ED84 and eax, 0FFFFFFFEh
.text:0010ED87 fmulp st(1), st
.text:0010ED89 mov [edi+49D88h], eax
.text:0010ED8F fldcw word ptr [ebp-4Ch]
.text:0010ED92 fistp dword ptr [ebp-50h]
.text:0010ED95 fldcw word ptr [ebp-4Ah]
.text:0010ED98 mov edx, [esi+6AC8h]
.text:0010ED9E mov ecx, [ebp-50h]
.text:0010EDA1 sub edx, eax
.text:0010EDA3 mov eax, edx
.text:0010EDA5 and ecx, 0FFFFFFFEh
.text:0010EDA8 shr eax, 1Fh
.text:0010EDAB add eax, edx
.text:0010EDAD mov edx, [esi+6ACCh]
.text:0010EDB3 sar eax, 1
.text:0010EDB5 mov [edi+49D80h], eax
.text:0010EDBB mov [edi+49D8Ch], ecx
.text:0010EDC1 sub edx, ecx
.text:0010EDC3 mov eax, edx
.text:0010EDC5 shr eax, 1Fh
.text:0010EDC8 add eax, edx
.text:0010EDCA sar eax, 1
.text:0010EDCC mov [edi+49D84h], eax
.text:0010EDD2
.text:0010EDD2 loc_10EDD2: ; CODE XREF: .text:0010F67Aj
.text:0010EDD2 mov eax, dword ptr ds:loc_4BC6C[edi]
.text:0010EDD8 test eax, eax
.text:0010EDDA jnz loc_10F420
.text:0010EDE0 cmp dword ptr ds:loc_48C24[edi], 5
.text:0010EDE7 jz loc_10F510
.text:0010EDED fld dword ptr [edi+4BB04h]
.text:0010EDF3 fldz
.text:0010EDF5 fcomip st, st(1)
.text:0010EDF7 jnb loc_10F320
.text:0010EDFD mov eax, [edi+48C28h]
.text:0010EE03 test eax, eax
.text:0010EE05 jnz loc_10F320
.text:0010EE0B mov eax, [edi+4BB08h]
.text:0010EE11 fstp dword ptr [edi+4BB0Ch]
.text:0010EE17 mov [edi+4BB10h], eax
.text:0010EE1D
.text:0010EE1D loc_10EE1D: ; CODE XREF: .text:0010F322j
.text:0010EE1D mov eax, [edi+48C28h]
.text:0010EE23 and eax, 80h
.text:0010EE28 sar eax, 7
.text:0010EE2B mov [edi+4BB08h], eax
.text:0010EE31 mov eax, [edi+48C28h]
.text:0010EE37 and eax, 7Fh
.text:0010EE3A push eax
.text:0010EE3B fild dword ptr [esp]
.text:0010EE3E add esp, 4
.text:0010EE41 fmul qword ptr [ebx-2206Ch]
.text:0010EE47 fsin
.text:0010EE49 fabs
.text:0010EE4B fstp dword ptr [edi+4BB04h]
.text:0010EE51 fld dword ptr [edi+48C40h]
.text:0010EE57 fmul st, st
.text:0010EE59 fld dword ptr [edi+48C44h]
.text:0010EE5F fmul st, st
.text:0010EE61 faddp st(1), st
.text:0010EE63 fsqrt
.text:0010EE65 mov eax, dword ptr ds:loc_4CB08[edi]
.text:0010EE6B fstp dword ptr [edi+4BB14h]
.text:0010EE71 test eax, eax
.text:0010EE73 jz loc_10F327
.text:0010EE79 mov edx, dword ptr ds:loc_50F0C[edi]
.text:0010EE7F mov eax, ds:dword_1A4B960[esi]
.text:0010EE85 mov [edx+18h], eax
.text:0010EE88 mov edx, dword ptr ds:loc_50F0C[edi]
.text:0010EE8E mov eax, ds:dword_1A4B964[esi]
.text:0010EE94 mov [edx+1Ch], eax
.text:0010EE97 mov edx, dword ptr ds:loc_50F0C[edi]
.text:0010EE9D mov eax, ds:dword_1A4B968[esi]
.text:0010EEA3 mov [edx+20h], eax
.text:0010EEA6 mov ecx, dword ptr ds:loc_4CB08[edi]
.text:0010EEAC test ecx, ecx
.text:0010EEAE jnz loc_10F6E0
.text:0010EEB4
.text:0010EEB4 loc_10EEB4: ; CODE XREF: .text:0010F6E9j
.text:0010EEB4 mov eax, ds:dword_1A4B96C[esi]
.text:0010EEBA mov [edi+49F2Ch], eax
.text:0010EEC0 mov eax, ds:dword_1A4B970[esi]
.text:0010EEC6 mov dword ptr ds:loc_49F30[edi], eax
.text:0010EECC mov eax, ds:dword_1A4B974[esi]
.text:0010EED2 mov [edi+49F34h], eax