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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push edi
push esi
push ebx
sub esp, 0xac
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
mov ebx, dword [edi*4 + 0x65ba50]
sub edi, ebx
cmp edi, 9
jle 0x584a9b
cmp dword [edi*4 + 0x65ba50], 0
jne 0x5845f3
push eax
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 0x14]
push eax
push esi
push 9
call fcn.00583eb0
push eax
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp + 0x14]
push eax
push esi
push edi
call fcn.00584ac4
add esp, 0x20
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], 0
jmp 0x584614
mov edx, dword [ebp + 0x18]
lea edx, [edx + 1]
mov esi, dword [ebp + 0x20]
push esi
push eax
mov eax, dword [ebp + 0x14]
push edx
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.00584588
add esp, 0x1c
push eax
mov esi, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + esi*4 + 0x3c], eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ebx
call fcn.00583eb0
mov dword [esp + 0x24], eax
mov ecx, dword [ebp + 0xc]
mov esi, 1
shl esi, cl
mov ecx, edi
mov edx, 1
shl edx, cl
mov ecx, ebx
mov edi, 1
mov dword [esp + 0x28], edx
mov edx, esi
shl edx, 4
shl edi, cl
add edx, eax
mov dword [esp + 0x18], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*4 + 0x48], eax
lea eax, [edi + edi]
add eax, eax
mov dword [esp + 0x14], eax
shl eax, 4
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 0x20]
lea eax, [edx + eax]
mov dword [esp + 0x58], eax
push eax
push ebx
call fcn.00583de4
add esp, 0x18
mov ecx, dword [ebp + 0x14]
mov ebx, 1
sub ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x18]
shl ebx, cl
test eax, eax
jle 0x584a64
mov dword [esp + 0x24], ebx
xor edx, edx
lea eax, [edi + edi]
mov dword [esp + 0x5c], edx
lea ecx, [edi + edi]
add ecx, edi
mov dword [esp + 0xc], eax
mov edx, esi
sar edx, 1
mov dword [esp + 0x10], ecx
shr edx, 0x1e
add edx, esi
mov dword [esp + 0x44], edi
sar edx, 2
mov eax, edx
mov dword [esp + 0x60], edx
neg eax
imul eax, ebx
mov dword [esp + 0x38], eax
mov eax, ebx
imul eax, edx
mov dword [esp + 0x34], eax
mov ecx, esi
shr ecx, 0x1f
add ecx, esi
sar ecx, 1
mov eax, ebx
mov dword [esp + 0x58], ecx
imul eax, ecx
mov dword [esp + 0x30], eax
neg ecx
imul ecx, ebx
mov dword [esp + 0x3c], ecx
lea ecx, [esi + esi]
add ecx, esi
mov eax, ecx
sar eax, 1
shr eax, 0x1e
add eax, ecx
sar eax, 2
mov ecx, ebx
mov dword [esp + 0x54], eax
imul ecx, eax
imul esi, ebx
mov dword [esp + 0x40], ecx
mov ecx, eax
neg ecx
mov dword [esp + 0x1c], esi
imul ecx, ebx
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x5c], esi
xor edx, edx
mov eax, esi
imul eax, dword [esp + 0x24]
mov dword [esp + 0x74], eax
mov ecx, esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x584a8d
mov ebx, eax
mov eax, ebx
mov ecx, dword [esp + 0x6c]
imul eax, ecx
mov esi, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
imul ecx, esi
xor edi, edi
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x28], edi
neg ecx
imul ecx, esi
mov dword [esp + 0x70], ecx
xor edx, edx
mov esi, dword [esp + 0x40]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x90], edx
xor edx, edx
lea ebx, [ebx + eax]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x10]
lea esi, [edx + esi*8]
mov dword [esp + 0x94], esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x98], esi
mov esi, dword [esp + 0x34]
lea edx, [edx + esi*8]
mov dword [esp + 0x9c], edx
mov edx, ecx
mov esi, dword [esp + 0x1c]
mov dword [esp + 0xa0], esi
mov esi, dword [esp + 0x3c]
add edx, edx
mov dword [esp + 0xa8], esi
mov esi, dword [esp + 0x30]
add edx, edx
mov dword [esp + 0x88], esi
xor esi, esi
add edx, edx
mov dword [esp + 0x84], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
lea ebx, [ecx + ecx]
add ebx, ebx
mov dword [esp + 0x64], edx
add ebx, ebx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x68], ebx
mov ebx, edi
mov edx, dword [esp + 0x8c]
lea edx, [ebx + edx]
mov esi, dword [esp + 0x60]
cmp edx, esi
jg 0x584849
mov esi, dword [esp + 0x9c]
fld qword [esi]
jmp 0x58488a
mov esi, dword [esp + 0x58]
cmp edx, esi
jg 0x584865
mov esi, dword [esp + 0x98]
lea esi, [esi + ecx]
mov edi, dword [ebp + 0x10]
fld qword [edi + esi*8]
fchs
jmp 0x58488a
mov esi, dword [esp + 0x54]
cmp edx, esi
jg 0x58487a
mov esi, dword [esp + 0x94]
fld qword [esi]
fchs
jmp 0x58488a
mov esi, dword [esp + 0x90]
lea esi, [esi + ecx]
mov edi, dword [ebp + 0x10]
fld qword [edi + esi*8]
lea edi, [eax + eax]
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x78], edi
fstp qword [esi + edi*8]
mov esi, dword [esp + 0x60]
cmp edx, esi
jg 0x5848b3
mov edx, dword [esp + 0x84]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0x10]
fld qword [esi + edi*8]
fchs
jmp 0x5848f3
mov esi, dword [esp + 0x58]
cmp edx, esi
jg 0x5848cc
mov edx, dword [ebp + 0x10]
mov esi, dword [esp + 0x88]
fld qword [edx + esi*8]
fchs
jmp 0x5848f3
mov esi, dword [esp + 0x54]
cmp edx, esi
jg 0x5848e6
mov edx, dword [esp + 0xa8]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0x10]
fld qword [esi + edi*8]
jmp 0x5848f3
mov edx, dword [ebp + 0x10]
mov esi, dword [esp + 0xa0]
fld qword [edx + esi*8]
add ebx, dword [esp + 0x5c]
mov esi, dword [ebp + 0x20]
mov edi, dword [esp + 0x78]
fstp qword [esi + edi*8 + 8]
mov edx, dword [esp + 0x8c]
mov esi, dword [esp + 0x94]
add edx, dword [esp + 0x6c]
inc eax
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x74]
add dword [esp + 0x90], edx
add ecx, dword [esp + 0xa4]
add esi, dword [esp + 0x68]
mov dword [esp + 0x94], esi
mov esi, dword [esp + 0x9c]
add dword [esp + 0x98], edx
add esi, dword [esp + 0x64]
mov dword [esp + 0x9c], esi
mov esi, dword [esp + 0x70]
add dword [esp + 0xa0], esi
add dword [esp + 0xa8], edx
mov edx, dword [esp + 0x84]
add dword [esp + 0x88], esi
add edx, dword [esp + 0x80]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x7c]
cmp eax, edx
jl 0x58482c
mov ecx, dword [esp + 0x4c]
shl ecx, 4
mov eax, dword [esp + 0x48]
add ecx, dword [ebp + 0x20]
push eax
mov edx, dword [esp + 0x48]
push edx
push ecx
call fcn.00580088
add esp, 0xc
inc dword [esp + 0x50]
mov eax, dword [esp + 0x6c]
inc eax
mov dword [esp + 0x6c], eax
cmp eax, 4
jl 0x584753
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x584a55
mov dword [esp + 0x5c], esi
mov ecx, dword [ebp + 0x20]
mov ebx, eax
mov edx, dword [esp + 0xc]
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x10]
lea edi, [ebx + ebx]
add edi, edi
add edi, edi
add edi, edi
mov esi, dword [esp + 0x14]
add edi, dword [ebp + 0x20]
mov dword [esp + 0x4c], edi
fld qword [ecx]
mov edi, dword [esp + 0x50]
lea edi, [edi + edi]
fstp qword [esi]
mov ebx, dword [ebp + 0x20]
fld qword [ecx + 8]
add ecx, 0x10
fstp qword [esi + 8]
fld qword [ebx + edi*8]
fstp qword [esi + 0x10]
fld qword [ebx + edi*8 + 8]
lea edi, [edx + edx]
inc edx
fstp qword [esi + 0x18]
fld qword [ebx + edi*8]
fstp qword [esi + 0x20]
fld qword [ebx + edi*8 + 8]
lea edi, [eax + eax]
inc eax
fstp qword [esi + 0x28]
fld qword [ebx + edi*8]
fstp qword [esi + 0x30]
fld qword [ebx + edi*8 + 8]
mov ebx, dword [esp + 0x4c]
fstp qword [esi + 0x38]
add esi, 0x40
inc dword [esp + 0x50]
cmp ecx, ebx
jb 0x5849f8
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x5c]
add esi, 4
mov eax, dword [esp + 0x18]
cmp esi, eax
jl 0x584738
mov eax, dword [esp + 4]
shl eax, 4
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 0x1c]
jle 0x584a7c
mov eax, dword [esp]
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 8]
add esp, 0xac
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
imul eax, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
jmp 0x58498c
push eax
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 0x14]
push eax
push esi
push edi
call fcn.00583eb0
add esp, 0x10
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], 0
jmp 0x584614