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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
movzx eax, word [edi + 0x20]
mov esi, dword [edi + 0x2c]
push 0x3f800000
mov ebx, ecx
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0xcc]
push edx
push esi
mov ecx, ebx
mov dword [esp + 0x94], 0x3f800000
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0x3f800000
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0x3f800000
mov dword [esp + 0xc0], 0
mov dword [esp + 0xd0], 0x3f800000
mov dword [esp + 0xc4], 0x43a00000
mov dword [esp + 0xc8], 0x43700000
mov dword [esp + 0xcc], 0
call fcn.005848b0
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x84]
push ecx
mov edx, eax
push edx
call fcn.0045ecf0
mov eax, dword [edi + 0x24]
push 0
push 1
push eax
call fcn.00503400
add esp, 0x18
push 0
push 1
push 0
mov ecx, edi
mov dword [esp + 0x50], eax
call fcn.005b35a0
push eax
call fcn.00503400
mov ecx, dword [ebp + 0xc]
add esp, 0xc
test ecx, ecx
mov dword [esp + 0x50], eax
jne 0x59a1a5
mov ecx, dword [esp + 0x44]
push ecx
push edi
mov ecx, ebx
call fcn.00591ab0
mov dword [ebp + 0xc], eax
jmp 0x59a1ae
mov edx, dword [ebp + 0x10]
push edx
call fcn.00591a00
mov eax, dword [esp + 0x44]
movsx edi, word [eax + 0x44]
test edi, edi
movsx ebx, word [eax + 0x46]
mov dword [esp + 0x18], edi
fild dword [esp + 0x18]
jge 0x59a1cc
fadd dword [0x891214]
test ebx, ebx
mov dword [esp + 0x18], ebx
fild dword [esp + 0x18]
jge 0x59a1de
fadd dword [0x891214]
test edi, edi
fstp dword [esp + 0x10]
je 0x59a200
lea eax, [edi - 1]
shr eax, 1
test eax, eax
mov ecx, 2
je 0x59a1fc
shr eax, 1
shl ecx, 1
test eax, eax
jne 0x59a1f4
mov edx, ecx
jmp 0x59a202
xor edx, edx
test ebx, ebx
je 0x59a21e
lea eax, [ebx - 1]
shr eax, 1
test eax, eax
mov ecx, 2
je 0x59a220
shr eax, 1
shl ecx, 1
test eax, eax
jne 0x59a214
jmp 0x59a220
xor ecx, ecx
test edx, edx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
jge 0x59a232
fadd dword [0x891214]
test ecx, ecx
fdivp st(1)
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
jge 0x59a246
fadd dword [0x891214]
mov eax, dword [esp + 0x60]
fdivr dword [esp + 0x10]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x6c]
shl eax, 8
sar ecx, 1
or ecx, eax
mov eax, dword [esp + 0x64]
cdq
sub eax, edx
sar eax, 1
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x68]
cdq
sub eax, edx
shl ecx, 8
sar eax, 1
or ecx, eax
test edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
fld st(1)
fmul dword [esi + 0x44]
fstp dword [esp + 0x18]
fxch st(1)
fmul dword [esi + 0x4c]
fstp dword [esp + 0x58]
fld st(0)
fmul dword [esi + 0x48]
fstp dword [esp + 0x4c]
fmul dword [esi + 0x50]
fstp dword [esp + 0x48]
fild dword [esp + 0x1c]
jge 0x59a2be
fadd dword [0x891214]
test ebx, ebx
fst dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
fild dword [esp + 0x1c]
jge 0x59a2d4
fadd dword [0x891214]
test edi, edi
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
je 0x59a2fe
lea eax, [edi - 1]
shr eax, 1
test eax, eax
mov ecx, 2
je 0x59a2fa
shr eax, 1
shl ecx, 1
test eax, eax
jne 0x59a2f2
mov edx, ecx
jmp 0x59a300
xor edx, edx
test ebx, ebx
je 0x59a31e
lea eax, [ebx - 1]
shr eax, 1
test eax, eax
mov ecx, 2
je 0x59a31a
shr eax, 1
shl ecx, 1
test eax, eax
jne 0x59a312
mov eax, ecx
jmp 0x59a320
xor eax, eax
test edx, edx
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
jge 0x59a332
fadd dword [0x891214]
test eax, eax
fdivp st(1)
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jge 0x59a346
fadd dword [0x891214]
fdivr dword [esp + 0x40]
sub esp, 0xc
fld st(1)
fmul dword [esi + 0x54]
fstp dword [esp + 0x4c]
fxch st(1)
fmul dword [esi + 0x6c]
fstp dword [esp + 0x68]
fld st(0)
fmul dword [esi + 0x58]
fstp dword [esp + 0x60]
fmul dword [esi + 0x70]
fstp dword [esp + 0x28]
fld dword [esp + 0x20]
fmul dword [esp + 0x4c]
fst dword [esp + 0x2c]
fld dword [esp + 0x1c]
fmul dword [esp + 0x60]
fst dword [esp + 0x30]
fld dword [esp + 0x20]
fmul dword [esp + 0x68]
fst dword [esp + 0x34]
fxch st(1)
fstp dword [esp + 0x38]
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
fmul dword [esp + 0x28]
fst dword [esp + 0x40]
fxch st(1)
fstp dword [esp + 0x44]
fstp dword [esp + 0x48]
fld dword [esp + 0x1c]
fmul dword [esi + 0x88]
fld dword [esp + 0x1c]
fmul dword [0x8933d4]
fsubp st(1)
fstp dword [esp + 8]
fld dword [esp + 0x20]
fmul dword [esi + 0x84]
fld dword [esp + 0x20]
fmul dword [0x8933d4]
fsubp st(1)
fstp dword [esp + 4]
fld dword [esi + 0x8c]
lea esi, [esp + 0x2c]
fmul dword [0x89551c]
fstp dword [esp]
call fcn.0056fae0
fld dword [0x89096c]
mov ebx, dword [ebp + 0xc]
fdiv dword [esp + 0x20]
add esp, 0xc
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [0x89096c]
fdiv dword [esp + 0x10]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x24]
fld st(1)
fmul dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x2c]
fld st(1)
fmul dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0x34]
fxch st(1)
fmul dword [esp + 0x38]
fstp dword [esp + 0x38]
fmul dword [esp + 0x3c]
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x3c]
lea edi, [ebx + 0x30]
mov ecx, 0x10
lea esi, [esp + 0xc4]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
push esi
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
push 0x3f800000
push 0x3f000000
push 0x3f000000
push 0xbf000000
push 0xbf000000
mov ecx, ebx
call fcn.00582870
mov ecx, ebx
mov dword [ebx + 0x14], esi
call fcn.00582c70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc