Function at 0x1007bda0
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 0x1007bf6d
push ecx
call fcn.1007bf80
mov edx, dword [edi]
mov esi, edx
test edx, edx
je 0x1007bddd
jle 0x1007bf74
mov eax, dword [edi + 8]
mov ecx, edx
shl ecx, 5
cmp dword [ecx + eax - 0x20], 0
jne 0x1007bddd
lea esi, [edx - 1]
mov dword [edi], esi
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 0x1007be56
mov ebx, 0x18
mov dword [ebp - 0x10], ebx
nop word [eax + eax]
cmp edx, dword [edi + 0x68]
jge 0x1007bf74
mov esi, dword [edi + 0x70]
add esi, ebx
mov edx, dword [esi]
mov ebx, edx
test edx, edx
je 0x1007be30
jle 0x1007bf74
mov eax, dword [esi + 8]
mov ecx, edx
shl ecx, 5
cmp dword [ecx + eax - 0x20], 0
jne 0x1007be30
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 0x1007be00
mov esi, dword [edi]
mov ebx, dword [ebp - 4]
lea ecx, [esi + ebx]
mov esi, dword [edi + 4]
mov dword [ebp - 4], ecx
cmp ecx, esi
jle 0x1007be8b
test esi, esi
je 0x1007be74
mov eax, esi
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, esi
jmp 0x1007be79
mov edx, 8
cmp edx, ecx
mov eax, ecx
mov ecx, edi
cmovg eax, edx
push eax
call fcn.10082380
mov ecx, dword [ebp - 4]
mov dword [edi], ecx
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov dword [ebp - 0xc], edx
add edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp edx, esi
jle 0x1007bed2
test esi, esi
je 0x1007beb4
mov eax, esi
cdq
sub eax, edx
mov edx, dword [ebp - 0x10]
mov ecx, eax
sar ecx, 1
add ecx, esi
jmp 0x1007beb9
mov ecx, 8
cmp ecx, edx
lea esi, [edi + 0xc]
mov eax, edx
cmovg eax, ecx
mov ecx, esi
push eax
call fcn.10052b50
mov ecx, dword [edi]
mov edx, dword [ebp - 0x10]
jmp 0x1007bed5
lea esi, [edi + 0xc]
mov dword [esi], edx
sub ecx, ebx
mov eax, dword [edi + 0x14]
mov edx, dword [ebp - 0xc]
shl ecx, 5
add ecx, dword [edi + 8]
mov dword [ebp - 4], ecx
lea eax, [eax + edx*2]
mov dword [edi + 0x38], eax
mov eax, 1
mov dword [ebp - 8], eax
cmp dword [edi + 0x64], eax
jle 0x1007bf5f
mov edx, 0x18
mov dword [ebp - 0xc], edx
cmp eax, dword [edi + 0x68]
jge 0x1007bf74
mov ebx, dword [edi + 0x70]
add ebx, edx
mov esi, dword [ebx]
test esi, esi
je 0x1007bf2c
shl esi, 5
push esi
push dword [ebx + 8]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [ebp - 4], esi
mov edx, dword [ebp - 0xc]
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x1007bf4d
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 edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
inc eax
add edx, 0x18
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
cmp eax, dword [edi + 0x64]
jl 0x1007bf03
mov ecx, edi
call fcn.1007ba20
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