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

Disassembly:
sub esp, 0x60
fldz
xor eax, eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x1c], edx
push 0xa
pop ecx
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
push 0xa
fstp dword [esp + 0x14]
fld dword [esp + 0x78]
lea edi, [esp + 0x4c]
pop ecx
rep stosd dword es:[edi], eax
call fcn.10085860
fld dword [esp + 0x78]
mov edi, eax
mov dword [esp + 0x18], edi
call fcn.10085860
mov esi, dword [esp + 0x68]
push 4
lea ebx, [eax - 2]
pop eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x74], eax
jmp 0x10059169
fstp st(0)
test edi, edi
js 0x100592af
test ebx, ebx
js 0x100592af
mov ecx, ebp
call fcn.10055ade
dec eax
cmp edi, eax
ja 0x100592a7
mov ecx, ebp
call fcn.10055ada
dec eax
cmp ebx, eax
ja 0x100592a7
push ebx
push edi
mov ecx, ebp
call fcn.10055a94
mov ecx, ebp
mov edi, eax
call fcn.10055ad2
fild dword [esp + 0x14]
push ecx
push ecx
add edi, eax
fsubr dword [esp + 0x80]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_fabs
pop ecx
fstp dword [esp]
call fcn.1005966a
lea eax, [esp + 0x48]
mov ecx, ebp
push eax
fstp dword [esp + 0x18]
call fcn.10055ad6
mov edx, eax
mov ecx, edi
call fcn.1005a584
mov esi, dword [esp + 0x68]
cmp esi, 1
jne 0x1005922b
fld dword [esp + 0x14]
fld st(0)
fld qword [esp + 0x48]
fmul st(1)
fadd qword [esp + 0x20]
fstp qword [esp + 0x20]
fld qword [esp + 0x50]
fmul st(1)
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x58]
fmul st(1)
fadd qword [esp + 0x30]
fstp qword [esp + 0x30]
fmul qword [esp + 0x60]
fadd qword [esp + 0x38]
fstp qword [esp + 0x38]
jmp 0x10059295
fild qword [esp + 0x48]
fld dword [esp + 0x14]
fmul st(1), st(0)
fild qword [esp + 0x20]
faddp st(2)
fxch st(1)
call fcn.100859a0
fild qword [esp + 0x50]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
fmul st(1)
fild qword [esp + 0x28]
faddp st(1)
call fcn.100859a0
fild qword [esp + 0x58]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
fmul st(1)
fild qword [esp + 0x30]
faddp st(1)
call fcn.100859a0
fild qword [esp + 0x60]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
fmul st(1)
fild qword [esp + 0x38]
faddp st(1)
call fcn.100859a0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
fadd dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
fst dword [esp + 0x10]
jmp 0x100592b3
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x74]
fld dword [esp + 0x10]
inc ebx
sub eax, 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x74], eax
jne 0x10059167
fld1
mov al, byte [esp + 0x6c]
fdivrp st(1)
mov dword [esp + 0x40], esi
mov byte [esp + 0x44], al
cmp esi, 1
jne 0x10059302
fld qword [esp + 0x20]
fmul st(1)
fstp qword [esp + 0x20]
fld qword [esp + 0x28]
fmul st(1)
fstp qword [esp + 0x28]
fld qword [esp + 0x30]
fmul st(1)
fstp qword [esp + 0x30]
fmul qword [esp + 0x38]
fstp qword [esp + 0x38]
jmp 0x1005934e
fild qword [esp + 0x20]
fmul st(1)
call fcn.100859a0
fild qword [esp + 0x28]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
fmul st(1)
call fcn.100859a0
fild qword [esp + 0x30]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
fmul st(1)
call fcn.100859a0
fild qword [esp + 0x38]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
fmulp st(1)
call fcn.100859a0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
push dword [esp + 0x1c]
mov ecx, ebp
call fcn.10055ad6
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.1005a244
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x60
ret 8