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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
mov ebx, edx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], ebx
cmp ebx, dword [ebp + 8]
jge 0x487d5d
lea ecx, [ecx]
mov esi, dword [edi + 8]
mov ecx, 0x4e7f90
cmp dword [edi + 0xc], esi
mov edx, ebx
cmovb ecx, dword [edi + 0xc]
mov ecx, dword [ecx]
call fcn.00474dc0
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, 0x4e7f90
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
mov esi, dword [edi + 8]
cmp dword [edi + 0xc], esi
cmovb ecx, dword [edi + 0xc]
mov ecx, dword [ecx]
call fcn.00474dc0
push 0xfffffffffffffffe
or edx, 0xffffffff
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, edi
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
call fcn.004874e0
add esp, 4
test eax, eax
je 0x487690
push ebx
mov edx, 1
mov ecx, edi
call fcn.00470760
add esp, 4
mov edx, 1
mov ecx, edi
push dword [ebp + 8]
call fcn.00470760
add esp, 4
jmp 0x487694
add dword [edi + 8], 0xffffffe0
mov eax, dword [ebp + 8]
mov ecx, eax
sub ecx, ebx
mov dword [esp + 0x10], ecx
cmp ecx, 1
je 0x487d5d
mov esi, dword [edi + 8]
add eax, ebx
cdq
mov ecx, 0x4e7f90
sub eax, edx
sar eax, 1
cmp dword [edi + 0xc], esi
mov edx, eax
mov dword [esp + 0x14], eax
cmovb ecx, dword [edi + 0xc]
mov ecx, dword [ecx]
call fcn.00474dc0
mov edx, ebx
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, 0x4e7f90
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
mov esi, dword [edi + 8]
cmp dword [edi + 0xc], esi
cmovb ecx, dword [edi + 0xc]
mov ecx, dword [ecx]
call fcn.00474dc0
push 0xffffffffffffffff
mov edx, 0xfffffffe
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, edi
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
call fcn.004874e0
add esp, 4
test eax, eax
je 0x487745
push dword [esp + 0x14]
mov edx, 1
mov ecx, edi
call fcn.00470760
add esp, 4
mov edx, 1
mov ecx, edi
push ebx
call fcn.00470760
add esp, 4
jmp 0x4877b4
add dword [edi + 8], 0xfffffff0
mov ecx, 0x4e7f90
mov esi, dword [edi + 8]
cmp dword [edi + 0xc], esi
mov edx, dword [ebp + 8]
cmovb ecx, dword [edi + 0xc]
mov ecx, dword [ecx]
call fcn.00474dc0
push 0xfffffffffffffffe
or edx, 0xffffffff
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, edi
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
call fcn.004874e0
add esp, 4
test eax, eax
je 0x4877b0
push dword [esp + 0x14]
mov edx, 1
mov ecx, edi
call fcn.00470760
add esp, 4
mov edx, 1
mov ecx, edi
push dword [ebp + 8]
call fcn.00470760
add esp, 4
jmp 0x4877b4
add dword [edi + 8], 0xffffffe0
cmp dword [esp + 0x10], 2
je 0x487d5d
mov esi, dword [edi + 8]
mov ecx, 0x4e7f90
cmp dword [edi + 0xc], esi
mov edx, dword [esp + 0x14]
cmovb ecx, dword [edi + 0xc]
mov ecx, dword [ecx]
call fcn.00474dc0
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
mov ecx, dword [edi + 8]
mov eax, dword [ecx - 0x10]
mov dword [ecx], eax
mov eax, dword [ecx - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ecx - 8]
mov dword [ecx + 8], eax
mov ecx, 0x4e7f90
add dword [edi + 8], 0x10
mov esi, dword [edi + 8]
cmp dword [edi + 0xc], esi
mov eax, dword [ebp + 8]
cmovb ecx, dword [edi + 0xc]
dec eax
mov edx, eax
mov dword [esp + 0x10], eax
mov ecx, dword [ecx]
call fcn.00474dc0
mov edx, 0x4e7f90
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
mov ecx, dword [edi + 8]
cmp dword [edi + 0xc], ecx
mov esi, dword [esp + 0x14]
cmovb edx, dword [edi + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov eax, dword [edx]
mov edx, esi
mov ecx, eax
mov dword [esp + 0x1c], eax
call fcn.00474dc0
cmp eax, 0x4e7f90
jne 0x487893
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
movd xmm0, esi
mov ecx, edi
cvtdq2pd xmm0, xmm0
push eax
mov dword [esp + 0x34], 3
movsd qword [esp + 0x2c], xmm0
call fcn.00474ca0
add esp, 4
mov edx, dword [esp + 0x20]
mov ecx, dword [edx - 0x10]
mov dword [eax], ecx
mov ecx, dword [edx - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [edx - 8]
mov dword [eax + 8], ecx
mov eax, dword [edi + 8]
cmp dword [eax - 8], 4
jl 0x4878d6
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x4878d6
mov edx, dword [esp + 0x24]
mov edx, dword [edx]
test byte [edx + 5], 4
je 0x4878d6
mov ecx, dword [edi + 0x10]
and byte [edx + 5], 0xfb
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x18], eax
mov dword [ecx + 0x28], edx
add dword [edi + 8], 0xfffffff0
mov ecx, 0x4e7f90
mov esi, dword [edi + 8]
cmp dword [edi + 0xc], esi
mov edx, dword [esp + 0x10]
cmovb ecx, dword [edi + 0xc]
mov dword [esp + 0x20], ecx
mov eax, dword [ecx]
mov ecx, eax
mov dword [esp + 0x24], eax
call fcn.00474dc0
cmp eax, 0x4e7f90
jne 0x487930
movd xmm0, dword [esp + 0x10]
lea eax, [esp + 0x38]
mov edx, dword [esp + 0x24]
mov ecx, edi
cvtdq2pd xmm0, xmm0
push eax
mov dword [esp + 0x44], 3
movsd qword [esp + 0x3c], xmm0
call fcn.00474ca0
add esp, 4
mov ecx, dword [esi - 0x10]
mov dword [eax], ecx
mov ecx, dword [esi - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esi - 8]
mov dword [eax + 8], ecx
mov eax, dword [edi + 8]
cmp dword [eax - 8], 4
jl 0x48796f
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x48796f
mov edx, dword [esp + 0x20]
mov edx, dword [edx]
test byte [edx + 5], 4
je 0x48796f
mov ecx, dword [edi + 0x10]
and byte [edx + 5], 0xfb
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x18], eax
mov dword [ecx + 0x28], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
add dword [edi + 8], 0xfffffff0
inc ebx
mov esi, dword [edi + 8]
mov ecx, 0x4e7f90
cmp dword [edi + 0xc], esi
mov edx, ebx
cmovb ecx, dword [edi + 0xc]
mov ecx, dword [ecx]
call fcn.00474dc0
push 0xfffffffffffffffe
or edx, 0xffffffff
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, edi
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
call fcn.004874e0
add esp, 4
test eax, eax
je 0x4879d0
cmp ebx, dword [ebp + 8]
jle 0x487977
push str.invalid_order_function_for_sorting
push edi
call fcn.00470e70
add esp, 8
jmp 0x487977
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [edi + 8]
dec ebx
cmp dword [edi + 0xc], esi
mov ecx, 0x4e7f90
mov edx, ebx
cmovb ecx, dword [edi + 0xc]
mov ecx, dword [ecx]
call fcn.00474dc0
push 0xffffffffffffffff
mov edx, 0xfffffffd
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, edi
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
call fcn.004874e0
add esp, 4
test eax, eax
je 0x487a34
cmp ebx, dword [esp + 0x18]
jge 0x487a2e
push str.invalid_order_function_for_sorting
push edi
call fcn.00470e70
add esp, 8
add dword [edi + 8], 0xfffffff0
jmp 0x4879d8
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
cmp esi, ebx
jl 0x487b8f
mov ecx, dword [edi + 8]
mov edx, 0x4e7f90
cmp dword [edi + 0xc], ecx
mov dword [esp + 0x20], ecx
cmovb edx, dword [edi + 0xc]
mov dword [esp + 0x1c], edx
mov eax, dword [edx]
mov edx, ebx
mov ecx, eax
mov dword [esp + 0x24], eax
call fcn.00474dc0
cmp eax, 0x4e7f90
jne 0x487a9e
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x48]
movd xmm0, ebx
mov ecx, edi
cvtdq2pd xmm0, xmm0
push eax
mov dword [esp + 0x54], 3
movsd qword [esp + 0x4c], xmm0
call fcn.00474ca0
add esp, 4
mov edx, dword [esp + 0x20]
mov ecx, dword [edx - 0x10]
mov dword [eax], ecx
mov ecx, dword [edx - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [edx - 8]
mov dword [eax + 8], ecx
mov eax, dword [edi + 8]
cmp dword [eax - 8], 4
jl 0x487ae1
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x487ae1
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
test byte [edx + 5], 4
je 0x487ae1
mov ecx, dword [edi + 0x10]
and byte [edx + 5], 0xfb
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x18], eax
mov dword [ecx + 0x28], edx
add dword [edi + 8], 0xfffffff0
mov edx, 0x4e7f90
mov ecx, dword [edi + 8]
cmp dword [edi + 0xc], ecx
mov dword [esp + 0x20], ecx
cmovb edx, dword [edi + 0xc]
mov dword [esp + 0x1c], edx
mov eax, dword [edx]
mov edx, esi
mov ecx, eax
mov dword [esp + 0x24], eax
call fcn.00474dc0
cmp eax, 0x4e7f90
jne 0x487b3b
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x58]
movd xmm0, esi
mov ecx, edi
cvtdq2pd xmm0, xmm0
push eax
mov dword [esp + 0x64], 3
movsd qword [esp + 0x5c], xmm0
call fcn.00474ca0
add esp, 4
mov edx, dword [esp + 0x20]
mov ecx, dword [edx - 0x10]
mov dword [eax], ecx
mov ecx, dword [edx - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [edx - 8]
mov dword [eax + 8], ecx
mov eax, dword [edi + 8]
cmp dword [eax - 8], 4
jl 0x487977
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x487977
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
test byte [edx + 5], 4
je 0x487977
mov ecx, dword [edi + 0x10]
and byte [edx + 5], 0xfb
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x18], eax
mov dword [ecx + 0x28], edx
jmp 0x487977
add dword [edi + 8], 0xffffffd0
mov ecx, 0x4e7f90
mov esi, dword [edi + 8]
cmp dword [edi + 0xc], esi
mov edx, dword [esp + 0x10]
cmovb ecx, dword [edi + 0xc]
mov ecx, dword [ecx]
call fcn.00474dc0
mov edx, ebx
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, 0x4e7f90
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
mov esi, dword [edi + 8]
cmp dword [edi + 0xc], esi
cmovb ecx, dword [edi + 0xc]
mov ecx, dword [ecx]
call fcn.00474dc0
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, 0x4e7f90
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
mov esi, dword [edi + 8]
cmp dword [edi + 0xc], esi
cmovb ecx, dword [edi + 0xc]
mov dword [esp + 0x20], ecx
mov eax, dword [ecx]
mov ecx, eax
mov dword [esp + 0x24], eax
call fcn.00474dc0
cmp eax, 0x4e7f90
jne 0x487c43
movd xmm0, dword [esp + 0x10]
lea eax, [esp + 0x68]
mov edx, dword [esp + 0x24]
mov ecx, edi
cvtdq2pd xmm0, xmm0
push eax
mov dword [esp + 0x74], 3
movsd qword [esp + 0x6c], xmm0
call fcn.00474ca0
add esp, 4
mov ecx, dword [esi - 0x10]
mov dword [eax], ecx
mov ecx, dword [esi - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esi - 8]
mov dword [eax + 8], ecx
mov eax, dword [edi + 8]
cmp dword [eax - 8], 4
jl 0x487c82
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x487c82
mov edx, dword [esp + 0x20]
mov edx, dword [edx]
test byte [edx + 5], 4
je 0x487c82
mov ecx, dword [edi + 0x10]
and byte [edx + 5], 0xfb
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x18], eax
mov dword [ecx + 0x28], edx
add dword [edi + 8], 0xfffffff0
mov ecx, 0x4e7f90
mov esi, dword [edi + 8]
mov edx, ebx
cmp dword [edi + 0xc], esi
cmovb ecx, dword [edi + 0xc]
mov dword [esp + 0x20], ecx
mov eax, dword [ecx]
mov ecx, eax
mov dword [esp + 0x24], eax
call fcn.00474dc0
cmp eax, 0x4e7f90
jne 0x487cdb
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x78]
movd xmm0, ebx
mov ecx, edi
cvtdq2pd xmm0, xmm0
push eax
mov dword [esp + 0x84], 3
movsd qword [esp + 0x7c], xmm0
call fcn.00474ca0
add esp, 4
mov ecx, dword [esi - 0x10]
mov dword [eax], ecx
mov ecx, dword [esi - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esi - 8]
mov dword [eax + 8], ecx
mov eax, dword [edi + 8]
cmp dword [eax - 8], 4
jl 0x487d1a
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x487d1a
mov edx, dword [esp + 0x20]
mov edx, dword [edx]
test byte [edx + 5], 4
je 0x487d1a
mov ecx, dword [edi + 0x10]
and byte [edx + 5], 0xfb
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x18], eax
mov dword [ecx + 0x28], edx
mov esi, dword [ebp + 8]
mov eax, ebx
mov edx, dword [esp + 0x18]
mov ecx, esi
add dword [edi + 8], 0xfffffff0
sub ecx, ebx
sub eax, edx
cmp eax, ecx
jge 0x487d3b
dec ebx
lea eax, [ebx + 2]
mov dword [esp + 0x18], eax
jmp 0x487d46
lea edx, [ebx + 1]
mov ebx, esi
lea esi, [edx - 2]
mov dword [ebp + 8], esi
push ebx
mov ecx, edi
call fcn.004875e0
mov ebx, dword [esp + 0x1c]
add esp, 4
cmp ebx, esi
jl 0x487600
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret