Function at 0x1400a5970
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
add rcx, 0x10
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x50]
call fcn.140145ae0
lea edx, [r15 + 1]
lea rcx, [rsp + 0x50]
call fcn.140005bf0
nop
lea rdx, str.Removing_counter.
lea rcx, [rsp + 0x60]
call fcn.14001abc0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.1400083f0
movzx edx, ax
mov rcx, rbx
call fcn.1400137e0
mov rcx, rbx
call fcn.140009ac0
mov rax, qword [rsi]
lea rcx, [rax - 8]
test rax, rax
cmove rcx, r15
mov ebx, r15d
test rcx, rcx
je 0x1400a5a36
nop dword [rax]
inc ebx
mov rax, qword [rcx + 8]
lea rcx, [rax - 8]
test rax, rax
cmove rcx, r15
test rcx, rcx
jne 0x1400a5a20
lea rdx, str.List_length_:
lea rcx, [rsp + 0x60]
call fcn.140008650
mov rcx, rax
mov edx, ebx
call fcn.1400a4ad0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.1400083f0
movzx edx, ax
mov rcx, rbx
call fcn.1400137e0
mov rcx, rbx
call fcn.140009ac0
nop
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r15w
mov dword [rsp + 0x20], 2
mov rcx, qword [rbp - 0x28]
test cl, 2
jne 0x1400a5abf
mov rax, qword [rbp - 0x58]
mov r8, qword [rax]
test r8, r8
je 0x1400a5abf
mov rax, qword [rbp - 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x30]
cmovb r8, qword [rbp - 0x30]
sub r8, rdx
jmp 0x1400a5ae7
test cl, 4
jne 0x1400a5af5
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400a5af5
mov rax, qword [rbp - 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x48]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x28]
call fcn.140007240
nop
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1400a5b4e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a5b49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a5d6b
call fcn.1401544c8
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r15w
lea rcx, [rsp + 0x50]
call fcn.140005060
lea rcx, [rdi + 8]
test rdi, rdi
cmove rcx, r15
mov rax, qword [rsi]
cmp rcx, rax
jne 0x1400a5b85
mov rax, qword [rax]
mov qword [rsi], rax
mov rax, qword [rsi + 8]
cmp rcx, rax
jne 0x1400a5b96
mov rax, qword [rax + 8]
mov qword [rsi + 8], rax
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400a5ba7
mov rax, qword [rdi + 0x10]
mov qword [rcx + 8], rax
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400a5bb7
mov rax, qword [rdi + 8]
mov qword [rcx], rax
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x50]
call fcn.140145ae0
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140005bf0
nop
mov rax, qword [rsi]
lea rcx, [rax - 8]
test rax, rax
cmove rcx, r15
mov ebx, r15d
test rcx, rcx
je 0x1400a5c06
nop
inc ebx
mov rax, qword [rcx + 8]
lea rcx, [rax - 8]
test rax, rax
cmove rcx, r15
test rcx, rcx
jne 0x1400a5bf0
lea rdx, str.List_length_after_removal:
lea rcx, [rsp + 0x60]
call fcn.140008650
mov rcx, rax
mov edx, ebx
call fcn.1400a4ad0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.1400083f0
movzx edx, ax
mov rcx, rbx
call fcn.1400137e0
mov rcx, rbx
call fcn.140009ac0
nop
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r15w
mov dword [rsp + 0x20], 9
mov rcx, qword [rbp - 0x28]
test cl, 2
jne 0x1400a5c8f
mov rax, qword [rbp - 0x58]
mov r8, qword [rax]
test r8, r8
je 0x1400a5c8f
mov rax, qword [rbp - 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x30]
cmovb r8, qword [rbp - 0x30]
sub r8, rdx
jmp 0x1400a5cb7
test cl, 4
jne 0x1400a5cc5
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400a5cc5
mov rax, qword [rbp - 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x48]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x28]
call fcn.140007240
nop
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1400a5d1a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a5d15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a5d65
call fcn.1401544c8
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r15w
lea rcx, [rsp + 0x50]
call fcn.140005060
lea rcx, [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140154660
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400e3a70
nop
call fcn.1400e3a70
int3