Function at 0x102cac80
Capabilities:
Terminate process

Disassembly:
sub esp, 0x20
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ebx
mov eax, ecx
add eax, eax
push ebp
mov ebx, dword [edx + eax*8 - 0x18]
mov ebp, dword [edx + eax*8 - 4]
mov dword [esp + 0x34], ebx
mov ebx, dword [edx + eax*8 - 0x14]
mov dword [esp + 0x30], ebx
mov ebx, dword [edx + eax*8 - 8]
lea eax, [ecx - 2]
mov ecx, dword [esp + 0x30]
add eax, eax
push esi
mov esi, dword [edx + eax*8 + 4]
push edi
mov edi, dword [edx + eax*8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], esi
cmp ecx, ebp
jg 0x102cacdd
mov eax, dword [esp + 0x3c]
jl 0x102cacd5
cmp eax, ebx
jae 0x102cacdd
mov ebp, eax
mov dword [esp + 0x2c], ecx
jmp 0x102cace7
mov eax, dword [esp + 0x1c]
mov ebp, ebx
mov dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x40]
cmp dword [ebx], ebp
jae 0x102cad38
lea eax, [ebp*4]
push eax
push dword [ebx + 4]
mov dword [esp + 0x48], eax
call dword [sym.imp.MSVCR110.dll_realloc]
add esp, 8
test eax, eax
jne 0x102cad2f
push dword [esp + 0x40]
push str.Error_allocating_temporary_storage_for_tim_sort:_need__lu_bytes
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCR110.dll_exit]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 4], eax
mov dword [ebx], ebp
mov edx, dword [ebx + 4]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
cmp ecx, ebx
jg 0x102cae8c
jl 0x102cad5b
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x3c], eax
jae 0x102cae90
mov eax, dword [esp + 0x3c]
shl eax, 2
push eax
lea eax, [edi*4]
add eax, dword [esp + 0x38]
push eax
push edx
call sub.MSVCR110.dll_memcpy
mov eax, dword [esp + 0x48]
add esp, 0xc
mov ebx, edi
add ebx, eax
mov edx, esi
adc edx, dword [esp + 0x38]
mov ecx, edi
add ecx, dword [esp + 0x18]
mov ebp, esi
adc ebp, dword [esp + 0x1c]
add ecx, eax
adc ebp, dword [esp + 0x38]
xorps xmm0, xmm0
mov dword [esp + 0x1c], ebp
cmp esi, ebp
mov ebp, dword [esp + 0x34]
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
jg 0x102cafd6
jl 0x102cadc3
cmp edi, ecx
jae 0x102cafd6
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x40], ecx
nop
cmp ecx, dword [esp + 0x38]
jg 0x102cae1e
jl 0x102caddc
cmp esi, eax
jae 0x102cae1e
cmp edx, dword [esp + 0x1c]
jg 0x102cae78
jl 0x102cadf2
cmp ebx, dword [esp + 0x18]
jae 0x102cae78
mov eax, dword [ebp + ebx*4]
mov ecx, dword [esp + 0x20]
push eax
mov ecx, dword [ecx + esi*4]
push ecx
mov dword [esp + 0x30], ecx
call fcn.102cc5f0
add esp, 8
cmp eax, 0xfffffffe
je 0x102cae60
neg eax
test eax, eax
jle 0x102cae60
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov eax, dword [ebp + ebx*4]
add ebx, 1
adc edx, 0
mov dword [esp + 0x14], edx
mov dword [ebp + edi*4], eax
mov eax, dword [esp + 0x10]
add edi, 1
adc eax, 0
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
jl 0x102cadd0
jg 0x102cafd6
cmp edi, dword [esp + 0x18]
jb 0x102cadd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
add esi, 1
adc ecx, 0
mov dword [esp + 0x40], ecx
jmp 0x102cae2c
mov eax, dword [esp + 0x20]
add esi, 1
mov eax, dword [eax + esi*4 - 4]
adc ecx, 0
mov dword [esp + 0x40], ecx
jmp 0x102cae2c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
shl eax, 2
push eax
mov eax, dword [esp + 0x40]
add eax, edi
lea eax, [ecx + eax*4]
push eax
push edx
call sub.MSVCR110.dll_memcpy
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov ebp, ecx
sub ebp, 1
mov eax, ebx
sbb eax, 0
mov edx, esi
mov ebx, edi
add ebx, dword [esp + 0x3c]
mov esi, edi
adc edx, dword [esp + 0x38]
sub ebx, 1
sbb edx, 0
add esi, ecx
mov ecx, dword [esp + 0x10]
adc ecx, dword [esp + 0x1c]
add esi, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
adc ecx, dword [esp + 0x38]
sub esi, 1
sbb ecx, 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x3c], ecx
cmp ecx, dword [esp + 0x10]
jl 0x102cafd6
jg 0x102caf05
cmp esi, edi
jb 0x102cafd6
test eax, eax
jl 0x102caf9c
jg 0x102caf17
test ebp, ebp
jb 0x102caf9c
cmp edx, dword [esp + 0x10]
jl 0x102caf7e
jg 0x102caf23
cmp ebx, edi
jb 0x102caf7e
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + ebp*4]
mov eax, dword [esp + 0x34]
push ecx
mov eax, dword [eax + ebx*4]
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], eax
call fcn.102cc5f0
add esp, 8
cmp eax, 0xfffffffe
je 0x102caf5f
neg eax
test eax, eax
jle 0x102caf5f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov dword [eax + esi*4], ecx
jmp 0x102cafa6
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov dword [eax + esi*4], ecx
mov eax, dword [esp + 0x40]
add ebp, 0xffffffff
adc eax, 0xffffffff
mov dword [esp + 0x40], eax
jmp 0x102cafb4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + ebp*4]
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x40]
add ebp, 0xffffffff
adc eax, 0xffffffff
mov dword [esp + 0x40], eax
jmp 0x102cafb4
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + ebx*4]
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x40]
add ebx, 0xffffffff
adc edx, 0xffffffff
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x3c]
add esi, 0xffffffff
adc ecx, 0xffffffff
mov dword [esp + 0x3c], ecx
cmp ecx, dword [esp + 0x10]
jg 0x102caf05
jl 0x102cafd6
cmp esi, edi
jae 0x102caf05
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret