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

Disassembly:
sub esp, 0x4c
mov ecx, dword [esp + 0x54]
push esi
push edi
xor edi, edi
mov dword [esp + 0x28], 1
mov ecx, dword [ecx]
xor esi, esi
mov eax, ecx
mov dword [esp + 0x40], ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
cmp ecx, dword [esp + 0x60]
jge 0x5d75aa
mov eax, dword [esp + 0x64]
mov dword [eax], 1
lea eax, [edi + 1]
pop edi
pop esi
add esp, 0x4c
ret
mov eax, ecx
cdq
push 4
push edx
push eax
call fcn.005a6680
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5d75c7
pop edi
pop esi
add esp, 0x4c
ret
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x58], 9
push 0x18
push ebp
push 0xa
mov dword [esp + 0x60], ebp
call fcn.005a6680
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x50], ebx
test ebx, ebx
je 0x5d79b4
mov esi, dword [esp + 0x60]
xor eax, eax
cmp dword [esi], eax
jle 0x5d7613
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
cmp dword [edx + eax*4], edi
je 0x5d760e
mov dword [ecx], eax
add ecx, 4
inc eax
cmp eax, dword [esi]
jl 0x5d7604
mov dword [esp + 0x44], edi
cmp dword [esp + 0x48], edi
jle 0x5d799a
mov ecx, dword [esp + 0x64]
mov esi, dword [ecx]
cmp esi, dword [esp + 0x68]
jl 0x5d799a
inc edi
mov dword [esp + 0x2c], edi
cmp edi, dword [esp + 0x4c]
jge 0x5d799a
test ebp, ebp
jne 0x5d764f
xorps xmm0, xmm0
movsd qword [esp + 0x24], xmm0
jmp 0x5d765a
movsd xmm0, qword [ebx + 8]
movsd qword [esp + 0x24], xmm0
lea eax, [esi - 1]
mov dword [esp + 0x10], 1
imul eax, esi
xor edi, edi
mov dword [esp + 0x3c], eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x34], eax
cmp esi, 2
jl 0x5d772a
mov ebx, dword [esp + 0x3c]
cmp edi, eax
jge 0x5d7726
mov eax, dword [esp + 0x30]
mov ecx, 0xbc8f
mul ecx
push 0
push bind
push edx
push eax
call fcn.00614cd0
xor edx, edx
mov dword [esp + 0x30], eax
div ebx
lea ecx, [esi - 1]
movsd xmm0, qword [esp + 0x24]
mov eax, edx
xor edx, edx
div ecx
cmp edx, eax
lea ecx, [edx + 1]
cmovb ecx, edx
mov edx, dword [esp + 0x20]
sub esp, 8
movsd qword [esp], xmm0
push dword [edx + ecx*4]
push dword [edx + eax*4]
lea eax, [esp + 0x60]
push dword [esp + 0x24]
push eax
call fcn.005d6d60
mov ebp, dword [esp + 0x6c]
xorps xmm1, xmm1
fstp qword [esp + 0x54]
movsd xmm0, qword [esp + 0x54]
add esp, 0x18
comisd xmm1, xmm0
jbe 0x5d770c
movsd qword [esp + 0x24], xmm0
cmp ebp, dword [esp + 0x58]
je 0x5d7722
mov ecx, dword [esp + 0x64]
inc edi
mov eax, dword [esp + 0x34]
mov esi, dword [ecx]
cmp esi, 2
jge 0x5d7686
jmp 0x5d7726
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x50]
test ebp, ebp
je 0x5d7983
mov edi, dword [ebx]
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x20]
push 0x5d7a30
push 4
push dword [ecx]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push esi
push eax
mov dword [esp + 0x50], edi
call fcn.0060365e
mov ecx, dword [esp + 0x78]
mov edx, eax
sub edx, esi
sar edx, 2
mov ecx, dword [ecx]
sub ecx, edx
lea ecx, [ecx*4 - 4]
push ecx
lea ecx, [eax + 4]
push ecx
push eax
call fcn.005e86c0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edi, dword [ecx + edi*4]
mov esi, dword [ecx + eax*4]
push edi
push edi
push esi
call fcn.005dd880
mov eax, dword [esi + 0xca8]
or ecx, 0xffffffff
mov esi, dword [esp + 0x68]
add esp, 0x2c
cmp eax, dword [edi + 0xca8]
cmove ecx, eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0xca8], ecx
mov edi, dword [esp + 0x60]
movsd xmm0, qword [ebx + 0x10]
mov eax, dword [eax + esi*4]
movsd qword [eax + 0xcb0], xmm0
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0
mov eax, dword [esp + 0x64]
dec dword [eax]
mov edx, dword [edi]
lea eax, [edx - 1]
cmp ecx, eax
jne 0x5d7800
cmp edx, 1
jl 0x5d7800
mov eax, dword [edi + 8]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
cmp dword [eax], 0
jne 0x5d7800
dec edx
sub eax, 4
mov dword [edi], edx
cmp edx, 1
jge 0x5d77f0
mov dword [esp + 0x1c], 0
test ebp, ebp
jle 0x5d797f
lea edx, [ebp*2]
add edx, ebp
shl edx, 3
xor edi, edi
mov dword [esp + 0x18], edx
mov ecx, dword [edi + ebx]
cmp ecx, esi
je 0x5d7837
mov dword [esp + 0x34], 0
cmp ecx, dword [esp + 0x10]
jne 0x5d783f
mov dword [esp + 0x34], 1
mov eax, dword [edi + ebx + 4]
cmp eax, esi
je 0x5d7855
mov dword [esp + 0x24], 0
cmp eax, dword [esp + 0x10]
jne 0x5d785d
mov dword [esp + 0x24], 1
cmp dword [esp + 0x34], 0
mov dword [esp + 0x2c], 0
je 0x5d78a4
cmp dword [esp + 0x24], 0
je 0x5d789d
movups xmm0, xmmword [edx + ebx - 0x18]
mov eax, dword [esp + 0x1c]
dec ebp
mov dword [esp + 0x54], ebp
movups xmmword [edi + ebx], xmm0
movq xmm0, qword [edx + ebx - 8]
sub edx, 0x18
movq qword [edi + ebx + 0x10], xmm0
mov dword [esp + 0x18], edx
jmp 0x5d7973
mov dword [edi + ebx], esi
mov ecx, esi
jmp 0x5d78b1
cmp dword [esp + 0x24], 0
je 0x5d78b9
mov dword [edi + ebx + 4], esi
mov eax, esi
mov dword [esp + 0x2c], 1
mov esi, ecx
cmp ecx, eax
jle 0x5d78ca
mov dword [edi + ebx], eax
mov esi, eax
mov dword [edi + ebx + 4], ecx
mov eax, ecx
cmp dword [esp + 0x2c], 0
je 0x5d7936
mov ecx, dword [esp + 0x14]
xorps xmm1, xmm1
mov eax, dword [ecx + eax*4]
mov ecx, dword [ecx + esi*4]
lea esi, [ebx + 0x10]
add esi, edi
push esi
sub esp, 8
movsd xmm0, qword [ecx + 0xcb0]
addsd xmm0, qword [eax + 0xcb0]
movsd qword [esi], xmm1
movsd qword [esp + 0x40], xmm0
addsd xmm0, xmm1
movsd qword [esp], xmm0
push eax
push ecx
call fcn.005d6220
movsd xmm0, qword [esi]
add esp, 0x14
subsd xmm0, qword [esp + 0x34]
mov edx, dword [esp + 0x18]
comisd xmm0, xmmword [0x630e08]
movsd qword [edi + ebx + 8], xmm0
jae 0x5d7873
movsd xmm0, qword [ebx + 8]
comisd xmm0, xmmword [edi + ebx + 8]
jbe 0x5d7967
movups xmm0, xmmword [edi + ebx]
movups xmm1, xmmword [ebx]
movq xmm2, qword [ebx + 0x10]
movups xmmword [ebx], xmm0
movq xmm0, qword [edi + ebx + 0x10]
movq qword [ebx + 0x10], xmm0
movups xmmword [edi + ebx], xmm1
movq qword [edi + ebx + 0x10], xmm2
mov eax, dword [esp + 0x1c]
inc eax
add edi, 0x18
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x3c]
cmp eax, ebp
jl 0x5d7822
xor edi, edi
jmp 0x5d7987
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
inc eax
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0x48]
jl 0x5d7621
mov eax, dword [esp + 0x64]
xor ecx, ecx
mov edx, dword [esp + 0x68]
mov esi, 1
cmp dword [eax], edx
mov eax, dword [esp + 0x6c]
setle cl
mov dword [eax], ecx
push ebx
call fcn.00447f00
push dword [esp + 0x24]
call fcn.00447f00
add esp, 8
mov eax, esi
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x4c
ret