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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x6621f4]
push ebx
push ebp
push esi
mov ebp, dword [eax + 0x78]
push edi
push 0
push 0
mov esi, ecx
push 2
push 0x17
mov ecx, ebp
call fcn.0046ded0
mov ecx, dword [0x6621f4]
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 0x90]
mov ecx, dword [esi + 0x40]
mov eax, dword [edx + 0x24]
mov byte [ecx + 0x5b], al
mov eax, 0x7f7fc99e
mov dword [esi + 0x304], eax
mov dword [esi + 0x308], eax
mov dword [esi + 0x30c], eax
mov dword [esi + 0x310], eax
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.0046e280
mov ebx, eax
test ebx, ebx
je 0x5027d6
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.0040f7f0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x5027c0
mov dword [esp + 0x18], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, ebx
call fcn.004c1680
mov edi, dword [esp + 0x20]
movsx eax, byte [edi + 6]
movsx ecx, word [edi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x14]
movsx edx, word [edi + 2]
fmul dword [0x625a40]
movsx eax, word [edi + 4]
fstp dword [esp + 0x14]
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
push ecx
fmul dword [0x6222e4]
fstp dword [esp + 0x34]
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fmul dword [0x6222e4]
fstp dword [esp + 0x38]
fild dword [esp + 0x14]
fmul dword [0x6222e4]
fstp dword [esp + 0x3c]
fld dword [esp + 0x34]
fsub dword [esi + 0x2f0]
fld dword [esp + 0x38]
fsub dword [esi + 0x2f4]
fld dword [esp + 0x3c]
fsub dword [esi + 0x2f8]
fld st(2)
fmul st(3)
fld st(1)
fmul st(2)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.005917c0
mov al, byte [edi + 7]
add esp, 4
fst dword [esp + 0x10]
and al, 3
jne 0x502690
fcomp dword [esi + 0x304]
fnstsw ax
test ah, 5
jp 0x5027b1
mov eax, dword [esi + 0x40]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
sub esp, 0xc
mov dword [eax + 0x8c], ecx
mov ecx, dword [esp + 0x40]
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, esi
mov dword [eax + 8], edx
call fcn.00488d20
mov ecx, eax
call fcn.005012c0
mov eax, dword [esp + 0x10]
mov dword [esi + 0x304], eax
jmp 0x5027b1
cmp al, 1
jne 0x5026ec
fcomp dword [esi + 0x308]
fnstsw ax
test ah, 5
jp 0x5027b1
mov eax, dword [esi + 0x40]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
sub esp, 0xc
mov dword [eax + 0x90], ecx
mov ecx, dword [esp + 0x40]
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, esi
mov dword [eax + 8], edx
call fcn.00488d20
mov ecx, eax
call fcn.005012e0
mov eax, dword [esp + 0x10]
mov dword [esi + 0x308], eax
jmp 0x5027b1
cmp al, 2
jne 0x502756
fcomp dword [esi + 0x30c]
fnstsw ax
test ah, 5
jp 0x5027b1
mov eax, dword [esi + 0x40]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov dword [eax + 0x94], ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x44], ecx
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x44], eax
call fcn.004cc500
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.00488d20
mov ecx, eax
add ecx, 0x38
call fcn.0041cb50
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x30c], ecx
jmp 0x5027b1
cmp al, 3
jne 0x5027af
fcomp dword [esi + 0x310]
fnstsw ax
test ah, 5
jp 0x5027b1
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x48], edx
lea edx, [esp + 0x48]
mov dword [esp + 0x50], ecx
push edx
lea ecx, [esp + 0x64]
mov dword [esp + 0x50], eax
call fcn.004cc500
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.00488d20
mov ecx, eax
add ecx, 0x44
call fcn.0041cb50
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x310], ecx
jmp 0x5027b1
fstp st(0)
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x502577
lea edx, [esp + 0x1c]
mov ecx, ebp
push edx
call fcn.0046e280
mov ebx, eax
test ebx, ebx
jne 0x50255c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret