Function at 0x1012a540
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x64], 1
jle 0x1012a70a
push ecx
call fcn.1012a4c0
mov edx, dword [edi]
test edx, edx
je 0x1012a57b
jle 0x1012a711
mov eax, dword [edi + 8]
mov ecx, edx
shl ecx, 5
cmp dword [ecx + eax - 0x20], 0
jne 0x1012a57b
lea eax, [edx - 1]
mov dword [edi], eax
xor ebx, ebx
mov edx, 1
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edx
cmp dword [edi + 0x64], edx
jle 0x1012a5f4
mov ebx, 0x18
mov dword [ebp - 0x10], ebx
nop dword [eax + eax]
cmp edx, dword [edi + 0x68]
jge 0x1012a711
mov esi, dword [edi + 0x70]
add esi, ebx
mov edx, dword [esi]
mov ebx, edx
test edx, edx
je 0x1012a5d0
jle 0x1012a711
mov eax, dword [esi + 8]
mov ecx, edx
shl ecx, 5
cmp dword [ecx + eax - 0x20], 0
jne 0x1012a5d0
lea ebx, [edx - 1]
mov dword [esi], ebx
mov edx, dword [ebp - 8]
add edx, dword [esi + 0xc]
add dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
add ebx, 0x18
mov edx, dword [ebp - 0xc]
inc edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
cmp edx, dword [edi + 0x64]
jl 0x1012a5a0
mov ebx, dword [ebp - 4]
mov esi, dword [edi]
mov eax, dword [edi + 4]
add esi, ebx
cmp esi, eax
jle 0x1012a623
test eax, eax
je 0x1012a60f
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [edi + 4]
jmp 0x1012a614
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, edi
push eax
call fcn.1003d1c0
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 4], edx
add edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp edx, esi
jle 0x1012a669
test esi, esi
je 0x1012a64e
mov eax, esi
cdq
sub eax, edx
mov edx, dword [ebp - 0x10]
mov ecx, eax
sar ecx, 1
add ecx, esi
jmp 0x1012a653
mov ecx, 8
cmp ecx, edx
mov eax, edx
cmovg eax, ecx
lea ecx, [edi + 0xc]
push eax
call fcn.1003cd40
mov edx, dword [ebp - 0x10]
lea ecx, [edi + 0xc]
mov dword [ecx], edx
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 4]
mov edx, dword [edi]
sub edx, ebx
shl edx, 5
add edx, dword [edi + 8]
lea eax, [eax + ecx*2]
mov dword [edi + 0x38], eax
mov eax, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp dword [edi + 0x64], eax
jle 0x1012a6fc
mov ecx, 0x18
mov dword [ebp - 4], ecx
nop dword [eax]
cmp eax, dword [edi + 0x68]
jge 0x1012a711
mov ebx, dword [edi + 0x70]
add ebx, ecx
mov esi, dword [ebx]
test esi, esi
je 0x1012a6c9
shl esi, 5
push esi
push dword [ebx + 8]
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [ebp - 0xc], esi
mov ecx, dword [ebp - 4]
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x1012a6ea
add esi, esi
push esi
push dword [ebx + 0x14]
push dword [edi + 0x38]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [edi + 0x38], esi
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
inc eax
add ecx, 0x18
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp eax, dword [edi + 0x64]
jl 0x1012a6a0
mov ecx, edi
call fcn.10121f20
mov dword [edi + 0x64], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3