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

Disassembly:
sub esp, 0x74
fldz
xor eax, eax
fld dword [esp + 0x78]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x30], edx
push 0xa
pop ecx
lea edi, [esp + 0x34]
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
push 0xa
pop ecx
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
call fcn.10085860
xor esi, esi
mov ebp, eax
inc esi
mov dword [esp + 0x28], ebp
sub esi, ebp
mov dword [esp + 0x2c], esi
cmp esi, ebp
jg 0x1005881f
fstp dword [esp + 0x10]
fld dword [esp + 0x90]
mov ebx, esi
fld dword [esp + 0x8c]
mov dword [esp + 0x20], ebx
jmp 0x10058615
fstp st(2)
fxch st(1)
fxch st(1)
call fcn.10085860
lea edi, [ebx + eax]
mov dword [esp + 0x1c], edi
call fcn.10085860
fld dword [esp + 0x10]
sub ebp, esi
inc ebp
lea ebx, [esi + eax]
mov dword [esp + 0x18], ebx
jmp 0x1005863a
fstp st(0)
test ebx, ebx
js 0x100587da
test edi, edi
js 0x100587da
mov esi, dword [esp + 0x14]
fstp st(0)
mov ecx, esi
call fcn.10055ade
dec eax
cmp ebx, eax
ja 0x100587d6
mov ecx, esi
call fcn.10055ada
dec eax
cmp edi, eax
ja 0x100587d6
push edi
push ebx
mov ecx, esi
call fcn.10055a94
mov ecx, esi
mov edi, eax
call fcn.10055ad2
fild dword [esp + 0x18]
push ecx
push ecx
add edi, eax
fsubr dword [esp + 0x94]
fst dword [esp + 0x2c]
fild dword [esp + 0x24]
fsubr dword [esp + 0x98]
fst dword [esp + 0x20]
fld st(0)
fmulp st(1)
fld st(1)
fmulp st(2)
faddp st(1)
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
fstp st(0)
fld dword [esp + 0x20]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_fabs
fstp dword [esp + 4]
fld dword [esp + 0x90]
fstp dword [esp]
call fcn.100588d1
fstp dword [esp + 0x18]
fld dword [esp + 0x24]
push ecx
push ecx
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_fabs
fstp dword [esp + 4]
fld dword [esp + 0x90]
fstp dword [esp]
call fcn.100588d1
fmul dword [esp + 0x18]
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
fstp dword [esp + 0x1c]
call fcn.10055ad6
mov edx, eax
mov ecx, edi
call fcn.1005a584
cmp dword [esp + 0x7c], 1
jne 0x1005875e
fld dword [esp + 0x18]
fld st(0)
fld qword [esp + 0x5c]
fmul st(1)
fadd qword [esp + 0x34]
fstp qword [esp + 0x34]
fld qword [esp + 0x64]
fmul st(1)
fadd qword [esp + 0x3c]
fstp qword [esp + 0x3c]
fld qword [esp + 0x6c]
fmul st(1)
fadd qword [esp + 0x44]
fstp qword [esp + 0x44]
fmul qword [esp + 0x74]
fadd qword [esp + 0x4c]
fstp qword [esp + 0x4c]
jmp 0x100587c8
fild qword [esp + 0x5c]
fld dword [esp + 0x18]
fmul st(1), st(0)
fild qword [esp + 0x34]
faddp st(2)
fxch st(1)
call fcn.100859a0
fild qword [esp + 0x64]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
fmul st(1)
fild qword [esp + 0x3c]
faddp st(1)
call fcn.100859a0
fild qword [esp + 0x6c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
fmul st(1)
fild qword [esp + 0x44]
faddp st(1)
call fcn.100859a0
fild qword [esp + 0x74]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
fmul st(1)
fild qword [esp + 0x4c]
faddp st(1)
call fcn.100859a0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
fadd dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
fst dword [esp + 0x10]
jmp 0x100587da
fld dword [esp + 0x10]
inc ebx
fld st(0)
mov dword [esp + 0x18], ebx
sub ebp, 1
jne 0x10058638
mov ebx, dword [esp + 0x20]
fstp st(1)
mov ebp, dword [esp + 0x28]
inc ebx
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], ebx
fst dword [esp + 0x10]
fld dword [esp + 0x90]
fld dword [esp + 0x8c]
cmp ebx, ebp
jle 0x10058611
mov ebx, dword [esp + 0x14]
fstp st(1)
fstp st(0)
mov ecx, dword [esp + 0x7c]
fld1
mov al, byte [esp + 0x80]
fdivrp st(1)
mov dword [esp + 0x54], ecx
mov byte [esp + 0x58], al
cmp ecx, 1
jne 0x10058863
fld qword [esp + 0x34]
fmul st(1)
fstp qword [esp + 0x34]
fld qword [esp + 0x3c]
fmul st(1)
fstp qword [esp + 0x3c]
fld qword [esp + 0x44]
fmul st(1)
fstp qword [esp + 0x44]
fmul qword [esp + 0x4c]
fstp qword [esp + 0x4c]
jmp 0x100588af
fild qword [esp + 0x34]
fmul st(1)
call fcn.100859a0
fild qword [esp + 0x3c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
fmul st(1)
call fcn.100859a0
fild qword [esp + 0x44]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
fmul st(1)
call fcn.100859a0
fild qword [esp + 0x4c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
fmulp st(1)
call fcn.100859a0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
push dword [esp + 0x30]
mov ecx, ebx
call fcn.10055ad6
mov edx, eax
lea ecx, [esp + 0x38]
call fcn.1005a244
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x74
ret 0xc