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

Disassembly:
sub esp, 0x80
lea eax, [esp + 0x28]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x4c]
mov ecx, dword [ecx + 8]
call fcn.00431830
mov eax, dword [esi + 0xa5c]
test eax, eax
jne 0x50600d
mov eax, dword [esi + 0xa68]
test eax, eax
je 0x50601f
lea edx, [esp + 0x38]
push 0
push edx
push 1
mov ecx, esi
call fcn.00505e90
jmp 0x506049
fld dword [esp + 0x2c]
fadd dword [esi + 0x584]
fstp dword [esp + 0x38]
fld dword [esp + 0x30]
fadd dword [esi + 0x588]
fstp dword [esp + 0x3c]
fld dword [esp + 0x34]
fadd dword [esi + 0x58c]
fstp dword [esp + 0x40]
xor eax, eax
push ecx
mov ax, word [esi + 0x92c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fchs
fstp dword [esp + 8]
fld dword [esp + 0x3c]
fsub dword [esp + 0x30]
fstp dword [esp + 0x18]
fld dword [esp + 0x40]
fsub dword [esp + 0x34]
fstp dword [esp + 0x1c]
fld dword [esp + 0x44]
fsub dword [esp + 0x38]
fstp dword [esp + 0x20]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fstp dword [esp]
call fcn.00404020
fcom dword [0x6d035c]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x5060dd
fdivr dword [0x6d0348]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x1c]
jmp 0x5060df
fstp st(0)
fld dword [esp + 0x14]
fstp dword [esp + 0x20]
fld dword [esp + 0x1c]
fst dword [esp + 0x28]
fmul dword [esp + 0x28]
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
push ecx
mov dword [esp + 0x28], 0
faddp st(1)
fstp dword [esp]
call fcn.00404020
fcom dword [0x6d035c]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x506142
fdivr dword [0x6d0348]
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul st(1)
fstp dword [esp + 0x28]
fstp st(0)
fld dword [esp + 0x18]
fmul dword [esp + 0x24]
fld dword [esp + 0x28]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x14]
faddp st(1)
fst dword [esp + 0x10]
fcomp dword [0x6d0348]
fnstsw ax
test ah, 5
jp 0x5061a5
fld dword [esp + 0x10]
call fcn.006b1770
fmul dword [0x6d3150]
fld dword [esp + 0x3c]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 5
jp 0x506199
fadd dword [esp + 4]
fstp dword [esp + 4]
jmp 0x5061a5
fld dword [esp + 4]
fsub st(1)
fstp dword [esp + 4]
fstp st(0)
lea ecx, [esp + 0x20]
call fcn.004bab60
fsubr dword [0x6d43a8]
mov ecx, dword [0x72d944]
push 0xb
mov ecx, dword [ecx + 0x88]
fmul dword [0x6d3150]
fstp dword [esp + 0xc]
call fcn.0050f6b0
test al, al
je 0x5061f5
mov al, byte [esi + 0x940]
cmp al, 1
mov byte [esp + 0xc], al
jne 0x5061fc
mov edx, dword [esp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
jmp 0x506238
mov byte [esp + 0xc], 1
jmp 0x5061e3
xor eax, eax
mov ecx, dword [esp + 0xc]
mov ax, word [esi + 0x932]
and ecx, 0xff
mov dword [esp + 0x10], eax
dec ecx
fild dword [esp + 0x10]
fld dword [0x6d1310]
mov dword [esp + 0x10], ecx
fmul st(1)
fsubr dword [esp + 8]
fstp dword [esp + 8]
fild dword [esp + 0x10]
fdivr st(1)
fstp dword [esp + 0x10]
fstp st(0)
mov eax, dword [esp + 0xc]
and eax, 0xff
jbe 0x50632d
push ebx
mov ebx, dword [esp + 8]
push edi
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0xa78]
mov edi, dword [edx + 4]
test edi, edi
je 0x50631c
push ebx
push 0x72c648
lea ecx, [esp + 0x54]
mov dword [esp + 0x7c], 0x3f800000
mov dword [esp + 0x68], 0x3f800000
mov dword [esp + 0x54], 0x3f800000
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x60], 0x20003
call fcn.004b95d0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push eax
push 0x72c608
call fcn.004b95d0
mov eax, dword [esi + 0x8b0]
mov edx, dword [edi]
push 0
push esi
push eax
lea ecx, [esp + 0x78]
lea eax, [esp + 0x40]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x68]
fld dword [esp + 0x18]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x506251
pop edi
pop ebx
pop esi
add esp, 0x80
ret