Function at 0x49c2e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8c
push esi
mov esi, dword [esp + 0x94]
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x49c302
test byte [eax + 0xc], 1
je 0x49c639
mov eax, dword [esp + 0x98]
test eax, eax
je 0x49c639
push ebx
push ebp
mov ebp, dword [eax + 0x24]
test ebp, ebp
push edi
mov dword [esp + 0x38], ebp
je 0x49c636
mov eax, dword [ebp + 0x134]
test eax, eax
je 0x49c636
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x49c636
movzx eax, word [eax + 2]
mov ecx, dword [0x68010c]
push eax
call fcn.00547360
mov ecx, dword [esp + 0xa8]
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov eax, dword [ebx + 0x14]
test ah, 1
je 0x49c480
push 6
push 3
call fcn.004bd600
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x34], edi
jle 0x49c480
mov ebp, edi
mov dword [esp + 0x10], 0xc2b40000
imul ebp, ebp, 0x3e8
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov ecx, dword [0x6800b4]
push 0
push 0x16
lea edx, [esp + 0x24]
push edx
call fcn.004f1bd0
mov edx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esi + 0xb0]
or eax, 0x4000000
mov dword [esi + 0xb0], eax
mov ecx, eax
lea eax, [esi + 0x64]
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], edx
mov eax, dword [ebx + 0x10]
mov dword [esi + 0xa8], eax
shr eax, 0x18
or ecx, 0x2000
test eax, eax
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
mov dword [esi + 0xb0], ecx
jge 0x49c41c
fadd dword [0x5da2fc]
fmul dword [0x5da304]
push ebp
mov ecx, esi
fstp dword [esi + 0x98]
call fcn.004f0c30
mov ecx, esi
call fcn.00403ea0
fild dword [esp + 0x34]
fmul dword [0x5da2e4]
fmul dword [0x5da6e8]
call fcn.0058c3f0
push eax
mov ecx, esi
call fcn.004f0c30
mov eax, dword [esi + 0xa0]
push eax
mov ecx, esi
call fcn.004f0c30
dec edi
sub ebp, 0x3e8
test edi, edi
mov dword [esp + 0x34], edi
jg 0x49c3b2
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0xa0]
test dword [ebx + 0x14], 0x420
je 0x49c636
lea ecx, [esi + 0xa0]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x3c], edx
fld dword [esp + 0x3c]
mov edx, dword [ecx + 8]
fchs
fstp dword [esp + 0x10]
mov dword [esp + 0x40], eax
fld dword [esp + 0x40]
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x10]
fchs
mov dword [esp + 0x44], edx
fstp dword [esp + 0x14]
fld dword [esp + 0x44]
mov edx, dword [esp + 0x14]
fchs
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], eax
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x94]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x98]
push edx
push eax
call fcn.004d28b0
mov eax, dword [ebx + 0x14]
test ah, 4
je 0x49c539
fld dword [esp + 0x28]
push ebx
fchs
lea ecx, [esp + 0x14]
fstp dword [esp + 0x14]
push ecx
fld dword [esp + 0x34]
lea edx, [esp + 0x24]
fchs
push edx
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
lea ecx, [ebx + 0x24]
fchs
fstp dword [esp + 0x24]
call fcn.00547440
test byte [ebx + 0x14], 0x20
je 0x49c636
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x49c636
mov ecx, dword [ebp + 0xc0]
movzx eax, word [eax + 2]
push ecx
mov ecx, dword [0x68010c]
push eax
call fcn.00547160
mov edx, eax
cmp dword [edx], 0
je 0x49c636
fld dword [edx + 4]
xor eax, eax
fld dword [esp + 0x28]
mov ecx, 0x13
fmul st(1)
lea edi, [esp + 0x50]
fld dword [esp + 0x2c]
rep stosd dword es:[edi], eax
fmul st(2)
fld dword [esp + 0x30]
fmul st(3)
fstp dword [esp + 0x18]
mov dword [esp + 0x64], 0
fld dword [esp + 0x1c]
mov dword [esp + 0x98], 1
fsub st(2)
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
fld dword [esp + 0x20]
mov dword [esp + 0x58], eax
fsub st(1)
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], eax
fstp dword [esp + 0x20]
fstp st(0)
fstp st(0)
fld dword [esp + 0x24]
fsub dword [esp + 0x18]
fstp dword [esp + 0x24]
mov ecx, dword [edx]
mov edx, dword [esi + 0x94]
mov eax, dword [ebx + 4]
fld st(0)
mov dword [esp + 0x50], ecx
fadd st(1)
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x30]
fstp dword [esp + 0x78]
push ecx
mov ecx, dword [0x68008c]
fstp dword [esp + 0x78]
mov dword [esp + 0x74], edx
mov dword [esp + 0x80], eax
call fcn.004eaab0
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x8c
ret