Function at 0x1005b0e0
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 0x1005b2aa
push ecx
call fcn.1005b2c0
mov edx, dword [edi]
test edx, edx
je 0x1005b11b
jle 0x1005b2b1
mov eax, dword [edi + 8]
mov ecx, edx
shl ecx, 5
cmp dword [ecx + eax - 0x20], 0
jne 0x1005b11b
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 0x1005b194
mov ebx, 0x18
mov dword [ebp - 0x10], ebx
nop dword [eax + eax]
cmp edx, dword [edi + 0x68]
jge 0x1005b2b1
mov esi, dword [edi + 0x70]
add esi, ebx
mov edx, dword [esi]
mov ebx, edx
test edx, edx
je 0x1005b170
jle 0x1005b2b1
mov eax, dword [esi + 8]
mov ecx, edx
shl ecx, 5
cmp dword [ecx + eax - 0x20], 0
jne 0x1005b170
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 0x1005b140
mov ebx, dword [ebp - 4]
mov esi, dword [edi]
mov eax, dword [edi + 4]
add esi, ebx
cmp esi, eax
jle 0x1005b1c3
test eax, eax
je 0x1005b1af
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [edi + 4]
jmp 0x1005b1b4
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, edi
push eax
call fcn.10061060
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 0x1005b209
test esi, esi
je 0x1005b1ee
mov eax, esi
cdq
sub eax, edx
mov edx, dword [ebp - 0x10]
mov ecx, eax
sar ecx, 1
add ecx, esi
jmp 0x1005b1f3
mov ecx, 8
cmp ecx, edx
mov eax, edx
cmovg eax, ecx
lea ecx, [edi + 0xc]
push eax
call fcn.10028080
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 0x1005b29c
mov ecx, 0x18
mov dword [ebp - 4], ecx
nop dword [eax]
cmp eax, dword [edi + 0x68]
jge 0x1005b2b1
mov ebx, dword [edi + 0x70]
add ebx, ecx
mov esi, dword [ebx]
test esi, esi
je 0x1005b269
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 0x1005b28a
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 0x1005b240
mov ecx, edi
call fcn.1005ae30
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