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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
test ecx, ecx
jle 0x58ec3e
mov eax, dword [ebp + 8]
fld dword [eax + 0x14]
mov edx, dword [eax]
fsub dword [eax + 8]
mov dword [esp + 0x40], edx
fld dword [eax + 0x10]
mov edx, dword [eax + 4]
fsub dword [eax + 4]
mov dword [esp + 0x44], edx
fld dword [eax + 0xc]
mov edx, dword [eax + 8]
fsub dword [eax]
lea eax, [ecx + ecx*2]
xor esi, esi
test eax, eax
fld st(0)
mov byte [esp + 0x13], 0
fmul st(1)
mov dword [esp + 0x48], edx
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fld st(0)
fsqrt
fstp qword [esp + 0x28]
fsqrt
fld dword [0x6a92f8]
fdiv st(1)
fstp dword [esp + 0x14]
fstp st(0)
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x34]
fstp st(0)
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x38]
fstp st(0)
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x3c]
fstp st(0)
jle 0x58ec3e
mov eax, dword [edi + 4]
movzx edx, word [eax + esi*2]
mov ecx, dword [edi]
lea edx, [edx + edx*2]
lea edx, [ecx + edx*4]
fld dword [edx]
fst dword [esp + 0x64]
fld dword [edx + 4]
mov edx, dword [edx + 8]
fst dword [esp + 0x68]
mov dword [esp + 0x6c], edx
movzx edx, word [eax + esi*2 + 2]
movzx eax, word [eax + esi*2 + 4]
lea edx, [edx + edx*2]
mov ebx, dword [ecx + edx*4]
lea edx, [ecx + edx*4]
mov dword [esp + 0x58], ebx
mov ebx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x60], edx
lea eax, [eax + eax*2]
fld dword [esp + 0x60]
mov edx, dword [ecx + eax*4 + 4]
fsub dword [esp + 0x6c]
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], eax
fld dword [esp + 0x5c]
mov dword [esp + 0x50], edx
fsub st(2)
mov dword [esp + 0x4c], ecx
fld dword [esp + 0x58]
fsub st(4)
fld dword [esp + 0x54]
fsub dword [esp + 0x6c]
fstp dword [esp + 0x18]
fld dword [esp + 0x50]
fsub st(4)
fstp dword [esp + 0x20]
fld dword [esp + 0x4c]
fsub st(5)
fld dword [esp + 0x20]
fmul st(2)
fld st(1)
fmul st(4)
fsubp st(1)
fstp dword [esp + 0x1c]
fmul st(3)
fld dword [esp + 0x18]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x14]
fstp st(0)
fld dword [esp + 0x18]
fmul st(1)
fld dword [esp + 0x20]
fmul st(3)
fsubp st(1)
fstp st(2)
fstp st(0)
fld st(0)
fmul st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fsqrt
fld dword [0x6a92f8]
fdiv st(1)
fstp dword [esp + 0x18]
fstp st(0)
fmul dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0x14]
fld dword [esp + 0x18]
fmul dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
fstp dword [esp + 0x84]
mov ecx, dword [esp + 0x84]
fxch st(1)
sub esp, 0xc
mov eax, esp
fstp dword [eax]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x40]
fstp dword [eax + 4]
sub esp, 0xc
mov eax, esp
fxch st(1)
fstp dword [eax]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x50]
fstp dword [eax + 4]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
call fcn.0058de70
fst qword [esp + 0x50]
fst dword [esp + 0x44]
lea eax, [esp + 0x7c]
fmul dword [esp + 0x64]
push eax
lea ecx, [esp + 0x8c]
push ecx
fadd dword [esp + 0x78]
lea edx, [esp + 0x9c]
lea eax, [esp + 0xa8]
push edx
fstp dword [esp + 0xac]
push eax
fld dword [esp + 0x54]
fmul dword [esp + 0x78]
fadd dword [esp + 0x84]
fstp dword [esp + 0xb4]
fld dword [esp + 0x54]
fmul dword [esp + 0x7c]
fadd dword [esp + 0x88]
fstp dword [esp + 0xb8]
call fcn.0058dfe0
add esp, 0x40
test eax, eax
je 0x58ec1c
fld qword [esp + 0x20]
fcomp qword [0x6a8670]
fnstsw ax
test ah, 0x41
jne 0x58ec1c
fld qword [esp + 0x20]
fcomp qword [esp + 0x28]
fnstsw ax
test ah, 0x41
jp 0x58ec1c
mov ecx, dword [ebp + 0x10]
fld dword [ecx]
fabs
fld qword [esp + 0x20]
fabs
fcompp
fnstsw ax
test ah, 5
jp 0x58ec1c
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x70]
mov dword [eax], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov byte [esp + 0x13], 1
mov eax, dword [edi + 0xc]
add esi, 3
lea ecx, [eax + eax*2]
cmp esi, ecx
jl 0x58e9f0
mov al, byte [esp + 0x13]
test al, al
je 0x58ec3e
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret