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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd4
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
dec edx
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x34], edx
shl edx, 4
fld dword [edx + edi + 4]
fcomp dword [ebp + 0x24]
fnstsw ax
test ah, 0x41
mov eax, dword [ebp + 0x10]
jp 0x5843a5
fld dword [edx + edi + 4]
mov eax, dword [edx + edi]
fld dword [edx + edi + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
fxch st(1)
fstp dword [ecx + 4]
mov dword [esp + 0x1c], 1
mov byte [esp + 0x1b], 1
fstp dword [ecx + 8]
mov ecx, dword [ebx + eax*8]
fld dword [ebx + eax*8 + 4]
mov eax, dword [ebp + 0xc]
fstp dword [eax + 4]
mov dword [eax], ecx
fld dword [edx + esi + 4]
mov ecx, dword [edx + esi]
fld dword [edx + esi + 8]
mov eax, dword [ebp + 0x10]
fld dword [edx + esi + 0xc]
mov dword [eax], ecx
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
fxch st(1)
fstp dword [eax + 4]
mov dword [eax + 0xc], ecx
fstp dword [eax + 8]
jmp 0x5843b2
mov dword [esp + 0x1c], 0
mov byte [esp + 0x1b], 0
mov ecx, dword [ebp + 0x20]
test ecx, ecx
mov dword [esp + 0x2c], 0
jbe 0x5847ed
mov ecx, dword [esp + 0x34]
shl ecx, 3
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
shl ecx, 4
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
add ecx, eax
lea eax, [esi + 0xc]
mov dword [esp + 0x30], eax
lea eax, [edi + 4]
mov dword [esp + 0x20], eax
mov eax, esi
sub eax, edi
mov dword [esp + 0x34], eax
mov eax, 0xfffffffc
sub eax, edi
mov dword [esp + 0x48], eax
jmp 0x584410
mov ebx, dword [ebp + 0x18]
jmp 0x584410
mov eax, dword [esp + 0x20]
fld dword [eax]
fcomp dword [ebp + 0x24]
fnstsw ax
mov al, byte [esp + 0x1b]
test ah, 0x41
jp 0x584627
test al, al
mov eax, dword [esp + 0x20]
jne 0x5845b8
fld dword [eax - 4]
fsub dword [edx + edi]
fld dword [eax]
fsub dword [edx + edi + 4]
fld dword [eax + 4]
fsub dword [edx + edi + 8]
fstp dword [esp + 0xc8]
mov eax, dword [esp + 0xc8]
mov dword [ecx + 8], eax
fxch st(1)
fstp dword [ecx]
mov eax, dword [esp + 0x2c]
fstp dword [ecx + 4]
fld dword [ebp + 0x24]
fsub dword [edx + edi + 4]
fdiv dword [ecx + 4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fld st(0)
fmul dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [edx + edi + 4]
fld dword [edx + edi + 8]
fld dword [ecx]
fadd dword [edx + edi]
fstp dword [ecx]
fxch st(1)
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [ebx + eax*8]
mov eax, dword [esp + 0x28]
fsub dword [eax + ebx]
mov eax, dword [esp + 0x2c]
fld dword [ebx + eax*8 + 4]
mov eax, dword [esp + 0x28]
fsub dword [eax + ebx + 4]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], eax
fmul st(1)
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
fld dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
fadd dword [eax + ebx]
fld dword [esp + 0x44]
fadd dword [eax + ebx + 4]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
fxch st(1)
fstp dword [ebx + eax*8]
fstp dword [ebx + eax*8 + 4]
mov eax, dword [esp + 0x30]
fld dword [eax - 0xc]
mov ebx, dword [esp + 0x34]
fsub dword [edx + esi]
mov eax, dword [esp + 0x20]
fld dword [ebx + eax]
mov ebx, dword [esp + 0x30]
fsub dword [edx + esi + 4]
fld dword [ebx - 4]
fsub dword [edx + esi + 8]
fstp dword [esp + 0xb8]
fld dword [ebx]
fsub dword [edx + esi + 0xc]
fstp dword [esp + 0xbc]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x70]
fmul st(1)
fstp dword [esp + 0x74]
fld dword [esp + 0xb8]
add ecx, 0x10
fmul st(1)
mov byte [esp + 0x1b], 1
fstp dword [esp + 0x78]
fmul dword [esp + 0xbc]
fld dword [esp + 0x70]
fadd dword [edx + esi]
fld dword [esp + 0x74]
fadd dword [edx + esi + 4]
fld dword [esp + 0x78]
fadd dword [edx + esi + 8]
fstp dword [esp + 0xa8]
mov ebx, dword [esp + 0xa8]
fxch st(2)
fadd dword [edx + esi + 0xc]
mov edx, dword [esp + 0x24]
mov dword [edx + 8], ebx
fstp dword [esp + 0xac]
mov ebx, dword [esp + 0xac]
mov dword [edx + 0xc], ebx
mov ebx, dword [esp + 0x1c]
fstp dword [edx]
inc ebx
fstp dword [edx + 4]
add edx, 0x10
mov dword [esp + 0x1c], ebx
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x24], edx
fld dword [eax]
mov edx, dword [eax - 4]
fld dword [eax + 4]
mov eax, dword [esp + 0x2c]
mov dword [ecx], edx
fxch st(1)
mov edx, dword [ebp + 0xc]
fstp dword [ecx + 4]
add ecx, 0x10
fstp dword [ecx - 8]
fld dword [ebx + eax*8 + 4]
mov ebx, dword [ebx + eax*8]
mov eax, dword [esp + 0x1c]
mov dword [edx + eax*8], ebx
fstp dword [edx + eax*8 + 4]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
fld dword [edx + ebx]
mov edx, dword [esp + 0x30]
mov ebx, dword [edx]
fld dword [edx - 4]
mov dword [esp + 0x54], ebx
fxch st(1)
mov ebx, dword [edx - 0xc]
mov edx, dword [esp + 0x24]
fstp dword [edx + 4]
mov dword [edx], ebx
mov ebx, dword [esp + 0x54]
inc eax
fstp dword [edx + 8]
mov dword [edx + 0xc], ebx
add edx, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
jmp 0x5847b4
test al, al
je 0x5847b4
mov eax, dword [esp + 0x20]
fld dword [eax - 4]
fsub dword [edx + edi]
fld dword [eax]
fsub dword [edx + edi + 4]
fld dword [eax + 4]
fsub dword [edx + edi + 8]
fstp dword [esp + 0xd8]
mov eax, dword [esp + 0xd8]
mov dword [ecx + 8], eax
fxch st(1)
fstp dword [ecx]
mov eax, dword [esp + 0x2c]
fstp dword [ecx + 4]
fld dword [ebp + 0x24]
fsub dword [edx + edi + 4]
fdiv dword [ecx + 4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fld st(0)
fmul dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [edx + edi + 4]
fld dword [edx + edi + 8]
fld dword [ecx]
fadd dword [edx + edi]
fstp dword [ecx]
fxch st(1)
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [ebx + eax*8]
mov eax, dword [esp + 0x28]
fsub dword [eax + ebx]
mov eax, dword [esp + 0x2c]
fld dword [ebx + eax*8 + 4]
mov eax, dword [esp + 0x28]
fsub dword [eax + ebx + 4]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x58], eax
fmul st(1)
fstp dword [esp + 0x50]
mov eax, dword [esp + 0x50]
fld dword [esp + 0x58]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
fadd dword [eax + ebx]
fld dword [esp + 0x5c]
fadd dword [eax + ebx + 4]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
fxch st(1)
fstp dword [ebx + eax*8]
fstp dword [ebx + eax*8 + 4]
mov eax, dword [esp + 0x30]
fld dword [eax - 0xc]
mov eax, dword [esp + 0x34]
fsub dword [edx + esi]
mov ebx, dword [esp + 0x20]
fld dword [eax + ebx]
mov eax, dword [esp + 0x30]
fsub dword [edx + esi + 4]
fld dword [eax - 4]
fsub dword [edx + esi + 8]
fstp dword [esp + 0x88]
fld dword [eax]
fsub dword [edx + esi + 0xc]
fstp dword [esp + 0x8c]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x60]
fmul st(1)
fstp dword [esp + 0x64]
mov eax, dword [esp + 0x24]
fld dword [esp + 0x88]
add ecx, 0x10
fmul st(1)
mov byte [esp + 0x1b], 0
fstp dword [esp + 0x68]
fmul dword [esp + 0x8c]
fld dword [esp + 0x60]
fadd dword [edx + esi]
fld dword [esp + 0x64]
fadd dword [edx + esi + 4]
fld dword [esp + 0x68]
fadd dword [edx + esi + 8]
fstp dword [esp + 0x98]
fxch st(2)
fadd dword [edx + esi + 0xc]
mov edx, dword [esp + 0x98]
mov dword [eax + 8], edx
fstp dword [esp + 0x9c]
mov edx, dword [esp + 0x9c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x1c]
fstp dword [eax]
inc edx
fstp dword [eax + 4]
add eax, 0x10
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
lea edx, [eax*8]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x48]
add edx, ebx
add ebx, 0x10
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x30]
add ebx, 0x10
inc eax
mov dword [esp + 0x30], ebx
cmp eax, dword [ebp + 0x20]
mov dword [esp + 0x2c], eax
jb 0x584405
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret