Function at 0x180005b90
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x180067048]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12, rdx
mov r15, rcx
cmp byte [rdx + 0x28], 0
je 0x180005e82
cmp qword [rdx + 0x38], 0
je 0x180005c2c
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [r12 + 0x38]
mov rbx, qword [r15 + 0x28]
mov rdi, rbx
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x180005c17
cmp qword [rax + 0x20], rcx
jae 0x180005c00
mov rax, qword [rax + 0x10]
jmp 0x180005c06
mov rdi, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x180005bf4
cmp rdi, rbx
je 0x180005c17
cmp rcx, qword [rdi + 0x20]
jae 0x180005c1a
mov rdi, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp rdi, rbx
je 0x180005e82
lea rbx, [r15 + 0x38]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov rsi, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x180005c46
mov rbx, qword [rbx]
xor r13d, r13d
cmp rsi, 8
jae 0x180005c5f
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x28], xmm0
lea r14d, [r13 + 7]
jmp 0x180005cf6
mov r14, rsi
or r14, 7
movabs rax, 0x7ffffffffffffffe
cmp r14, rax
cmova r14, rax
lea rax, [r14 + 1]
lea rdx, [rax + rax]
movabs rcx, 0x7fffffffffffffff
mov r8, 0xffffffffffffffff
cmp rax, rcx
jbe 0x180005c9a
mov rdx, r8
jmp 0x180005ca3
cmp rdx, 0x1000
jb 0x180005ccd
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.180037f00
mov rcx, rax
test rax, rax
je 0x180005eac
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180005cdf
test rdx, rdx
je 0x180005cdc
mov rcx, rdx
call fcn.180037f00
jmp 0x180005cdf
mov rax, r13
mov qword [rbp - 0x28], rax
lea r8, [rsi*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.180038e30
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rsi
mov ecx, dword [r12]
sub ecx, 1
je 0x180005d12
cmp ecx, 1
jne 0x180005d41
lea r8, [r15 + 0x78]
jmp 0x180005d16
lea r8, [r15 + 0x58]
lea rax, [rbp - 0x28]
cmp rax, r8
je 0x180005d41
cmp qword [r8 + 0x18], 8
mov rdx, r8
jb 0x180005d2c
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x28]
call fcn.1800021a0
mov rsi, qword [rbp - 0x18]
mov r14, qword [rbp - 0x10]
lea r9, [r12 + 8]
cmp qword [r12 + 0x20], 8
jb 0x180005d53
mov r9, qword [r12 + 8]
mov rdx, qword [r12 + 0x18]
mov rax, r14
sub rax, rsi
cmp rdx, rax
ja 0x180005d8f
lea rdi, [rsi + rdx]
mov qword [rbp - 0x18], rdi
lea rbx, [rbp - 0x28]
cmp r14, 8
cmovae rbx, qword [rbp - 0x28]
lea r8, [rdx + rdx]
lea rcx, [rbx + rsi*2]
mov rdx, r9
call fcn.180038e30
mov word [rbx + rdi*2], r13w
jmp 0x180005d9d
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x28]
call fcn.1800060d0
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x180005de3
lea rdi, [rcx + 2]
mov qword [rbp - 0x18], rdi
lea rbx, [rbp - 0x28]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x28]
lea rcx, [rbx + rcx*2]
mov r8d, 4
lea rdx, [0x180057168]
call fcn.180038e30
mov word [rbx + rdi*2], r13w
jmp 0x180005e01
mov qword [rsp + 0x20], 2
lea r9, [0x180057168]
mov edx, 2
lea rcx, [rbp - 0x28]
call fcn.1800060d0
mov eax, dword [r15 + 0x98]
test al, 1
je 0x180005e27
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [r15 + 0x98]
test al, 2
je 0x180005e46
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
lea rcx, [0x180057170]
call fcn.180005960
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x180005e82
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005e7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005ea6
call fcn.180037f3c
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800377f0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180040bd4
int3
call fcn.180040bd4
int3