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

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov edx, 6
mov esi, 4
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
mov edx, esi
mov esi, 6
push edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x70], esi
mov esi, edx
xor eax, eax
mov dword [esp + 0x80], esi
xor ecx, ecx
mov esi, 2
mov dword [esp + 0x6c], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
mov edx, esi
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov ecx, dword [edi + 0x10]
mov eax, 0x51eb851f
mov dword [esp + 0x9c], edx
imul ecx
sar edx, 4
mov eax, edx
mov dword [esp + 0x90], esi
shr eax, 0x1f
add edx, eax
mov esi, 4
mov ebp, edx
mov dword [esp + 0xa0], esi
xor ebx, ebx
mov dword [esp + 0x34], ebp
lea esi, [ebp + ebp*4]
mov dword [esp + 0x10], ebx
shl esi, 1
cmp esi, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], esi
jle 0x585fbc
jmp 0x585e3e
mov edi, dword [esp + 0xa8]
cmp dword [esp + 0x10], ebp
jge 0x585fbc
mov ebx, dword [edi + 0x10]
mov dword [esp + 0x50], 0
dec ebx
lea ecx, [ebx + 1]
mov dword [esp + 0x4c], ecx
fild qword [esp + 0x4c]
fstp qword [esp + 0x14]
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
fild qword [esp + 0x44]
fmul qword [esp + 0x14]
fmul qword [0x790db8]
call fcn.0076a6b0
cmp eax, ebx
ja 0x585e63
mov edx, dword [edi + 4]
xor edi, edi
xor bl, bl
mov eax, dword [edx + eax*4]
mov dword [esp + 0x14], eax
movsx ecx, word [esp + 0x16]
movsx eax, ax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
jmp 0x585ec6
mov eax, dword [esp + 0x14]
cmp edi, 5
jge 0x585ef9
mov edx, dword [eax - 4]
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00585fd0
test al, al
je 0x585ee7
mov bl, 1
mov ecx, dword [esp + 0x14]
inc edi
add ecx, 0x10
test bl, bl
mov dword [esp + 0x14], ecx
je 0x585ec2
jmp 0x585f01
test bl, bl
je 0x585fab
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0
fild qword [esp + 0x3c]
fmul qword [0x790f70]
call fcn.0076a6b0
cmp eax, 5
ja 0x585f01
mov ecx, dword [0xa3ab0c]
xor edi, edi
lea ebp, [eax + ecx + 8]
mov eax, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x585f9e
mov ecx, dword [esp + 0x24]
mov eax, ecx
xor esi, esi
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x585f8c
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [edx + esi*2]
lea edx, [ecx + edi*2]
mov word [esp + 0x36], dx
lea edx, [esp + 0x34]
mov ecx, ebp
mov word [esp + 0x34], ax
call fcn.005850a0
mov ecx, dword [esp + 0x24]
inc esi
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jl 0x585f55
mov eax, dword [esp + 0x28]
inc edi
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jl 0x585f48
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x34]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
inc eax
cmp eax, esi
mov dword [esp + 0x30], eax
jl 0x585e37
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4