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

Disassembly:
sub esp, 0x78
push esi
mov esi, dword [esp + 0x84]
test esi, esi
push edi
mov edi, ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
je 0x5b4dfd
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0xc], 0x3ecccf6d
mov dword [esp + 8], 0x3f800000
call dword [eax + 0x30]
test eax, eax
je 0x5b4b65
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [eax + 0x340]
fld dword [eax + 4]
mov edx, dword [esi]
fmul dword [0x74b2ac]
mov ecx, esi
fstp dword [esp + 0xc]
call dword [edx + 0x30]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
mov ecx, dword [eax + 0x9c8]
movzx edx, byte [ecx + 0x96c]
push edx
call fcn.004d2b50
cmp byte [eax + 0x5c], 0xa
jne 0x5b4b65
push ebx
call fcn.006fc447
cdq
mov ecx, 3
idiv ecx
mov ebx, edx
call fcn.006fc447
cdq
mov ecx, 3
idiv ecx
add ebx, edx
call fcn.006fc447
cdq
mov ecx, 3
idiv ecx
add ebx, edx
mov dword [esp + 0xc], ebx
fild dword [esp + 0xc]
pop ebx
fstp dword [esp + 8]
fld dword [edi + 0x90]
lea edx, [esp + 0x2c]
fsub dword [esi + 0x90]
push edx
lea eax, [esp + 0x78]
push eax
fstp dword [esp + 0x34]
fld dword [edi + 0x94]
fsub dword [esi + 0x94]
fstp dword [esp + 0x38]
fld dword [edi + 0x98]
fsub dword [esi + 0x98]
fstp dword [esp + 0x3c]
call fcn.004ab180
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x3f800000
call fcn.004ab210
add esp, 0x14
call fcn.006fc447
and eax, 0x80000001
jns 0x5b4be7
dec eax
or eax, 0xfffffffe
inc eax
je 0x5b4c1f
fld dword [esp + 0x14]
fchs
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
fld dword [esp + 0x18]
mov dword [esp + 0x14], ecx
fchs
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
fchs
mov dword [esp + 0x18], edx
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
fld dword [esp + 0x14]
fmul dword [esp + 8]
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
fld dword [esp + 0x18]
mov dword [esp + 0x14], ecx
fmul dword [esp + 8]
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
fmul dword [esp + 8]
mov dword [esp + 0x18], edx
fstp dword [esp + 0x40]
fld dword [esp + 0x38]
mov eax, dword [esp + 0x40]
fmul dword [esp + 0xc]
mov dword [esp + 0x1c], eax
fld dword [esp + 0x3c]
fmul dword [esp + 0xc]
fld dword [esp + 0x40]
fmul dword [esp + 0xc]
fstp dword [esp + 0x64]
fxch st(1)
fadd dword [esi + 0x90]
fstp dword [esp + 0x38]
fadd dword [esi + 0x94]
fstp dword [esp + 0x3c]
fld dword [esp + 0x64]
fadd dword [esi + 0x98]
fstp dword [esp + 0x40]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
faddp st(1)
fmul dword [0x74b2a8]
fstp dword [esp + 0xc]
call fcn.006fc447
cdq
mov ecx, 0x3e8
idiv ecx
mov ecx, dword [edi + 0x98]
mov eax, dword [edi + 0x94]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 8], edx
fild dword [esp + 8]
mov edx, dword [edi + 0x90]
mov dword [esp + 0x20], edx
fmul dword [0x73d708]
fmul dword [esp + 0xc]
fmul dword [0x73e31c]
fld dword [esp + 0xc]
fmul dword [0x74b2a4]
fsubr dword [0x73f414]
faddp st(1)
fadd dword [esp + 0x40]
fld dword [esp + 0x28]
fadd dword [0x73f414]
fstp dword [esp + 0x28]
fld dword [esp + 0x38]
fsub dword [esp + 0x20]
fstp dword [esp + 0x5c]
fld dword [esp + 0x3c]
fsub dword [esp + 0x24]
fstp dword [esp + 0x60]
fsub dword [esp + 0x28]
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x6c]
fstp dword [esp + 0x68]
push eax
call fcn.004ab180
fld dword [esp + 0x70]
fmul dword [0x73d6fc]
mov esi, dword [esi + 4]
fld dword [esp + 0x74]
mov eax, dword [edi + 4]
fmul dword [0x73d6fc]
add esp, 8
fld dword [esp + 0x70]
push 1
fmul dword [0x73d6fc]
push 1
push esi
push eax
fstp dword [esp + 0x74]
fxch st(1)
lea ecx, [esp + 0x20]
fadd dword [esp + 0x30]
push ecx
lea edx, [esp + 0x64]
push edx
fstp dword [esp + 0x5c]
lea eax, [esp + 0x5c]
push eax
fadd dword [esp + 0x40]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
fstp dword [esp + 0x68]
fld dword [esp + 0x84]
fadd dword [esp + 0x48]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
fstp dword [esp + 0x6c]
mov dword [esp + 0x30], 0x7f000000
call fcn.004cb120
mov ecx, eax
call fcn.0050c330
test eax, eax
je 0x5b4dfd
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
jmp 0x5b4e09
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x84]
mov edi, eax
mov dword [edi], esi
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
pop edi
pop esi
add esp, 0x78
ret 8