Function at 0x1800322f0
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x208], rbx
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rbp + 0xb8], rax
mov r14d, r9d
mov rbx, r8
mov r12d, edx
mov rsi, rcx
mov r15, qword [rbp + 0x120]
mov rax, qword [rbp + 0x128]
mov qword [rsp + 0x30], rax
lea rdi, [rcx + 8]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0
mov ecx, dword [rdi + 8]
test ecx, ecx
je 0x18003238a
dec ecx
je 0x18003236d
or eax, 0xffffffff
jmp 0x180032396
or edx, 0xffffffff
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180032394
cmp eax, 0x80
je 0x180032394
or eax, 0xffffffff
jmp 0x180032396
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x18003266b
cmp byte [rsi], 0
jne 0x1800323d2
mov dword [rsp + 0x28], 0xffffffff
mov ecx, dword [rdi + 8]
test ecx, ecx
je 0x18003265f
dec ecx
jne 0x18003266b
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x18003266b
lea rcx, [rsp + 0x50]
call fcn.1800127f0
nop
mov edx, 1
mov rcx, rbx
call fcn.180032950
mov r13, rax
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.180001820
nop
test r13d, r13d
jle 0x180032497
lea eax, [r13 + 1]
movsxd r8, eax
or r9, 0xffffffffffffffff
lea rdx, [rbp + 0x68]
mov rcx, rbx
call fcn.1800327a0
mov rbx, rax
lea rax, [rbp + 0x40]
cmp rax, rbx
je 0x18003248e
cmp qword [rbp + 0x58], 0x10
jb 0x180032436
mov rcx, qword [rbp + 0x40]
call fcn.1800bf2b8
mov qword [rbp + 0x58], reloc.OLEAUT32.dll_SafeArrayDestroy
xor r13d, r13d
mov qword [rbp + 0x50], r13
mov byte [rbp + 0x40], r13b
cmp qword [rbx + 0x18], 0x10
jae 0x180032465
mov r8, qword [rbx + 0x10]
inc r8
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.1800bed30
jmp 0x18003246f
mov rax, qword [rbx]
mov qword [rbp + 0x40], rax
mov qword [rbx], r13
mov rax, qword [rbx + 0x10]
mov qword [rbp + 0x50], rax
mov rax, qword [rbx + 0x18]
mov qword [rbp + 0x58], rax
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbx + 0x10], r13
mov byte [rbx], r13b
lea rcx, [rbp + 0x68]
call fcn.18008f070
lea rcx, [rsp + 0x38]
call fcn.1800c1564
mov rbx, qword [rsp + 0x38]
sub rbx, qword [rsi + 0x180]
lea rdx, str.DEBUG_
lea rcx, [rsp + 0x50]
call fcn.18001d620
mov rcx, rax
mov rdx, rbx
call fcn.180011170
mov rcx, rax
lea rdx, [0x18014b590]
call fcn.18001d620
mov rcx, rax
lea rdx, [rbp + 0x40]
call fcn.18001d860
mov rcx, rax
lea rdx, [0x18014b58c]
call fcn.18001d620
mov rcx, rax
mov edx, r14d
call fcn.180010bd0
mov rcx, rax
lea rdx, [0x18014b588]
call fcn.18001d620
mov rcx, rax
mov rdx, r15
call fcn.18001d860
mov rcx, rax
lea rdx, str.__:
call fcn.18001d620
mov rcx, rax
mov rdx, qword [rsp + 0x30]
call fcn.18001d860
test byte [rsi + 0x70], 1
je 0x180032587
cmp r12d, dword [rsi + 0x188]
ja 0x180032587
lea rdx, [rbp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.180012930
nop
cmp qword [rax + 0x18], 0x10
jb 0x18003255c
mov rax, qword [rax]
lea rcx, [rsi + 0x78]
mov rdx, rax
call fcn.18001d620
mov rbx, rax
mov dl, 0xa
mov rcx, rax
call fcn.18002b910
mov rcx, rbx
call fcn.1800118f0
nop
lea rcx, [rbp + 0x68]
call fcn.18008f070
test byte [rsi + 0x70], 4
je 0x1800325dd
cmp r12d, dword [rsi + 0x18c]
ja 0x1800325dd
lea rdx, [rbp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.180012930
nop
cmp qword [rax + 0x18], 0x10
jb 0x1800325af
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1801c3170]
call fcn.18001d620
mov rbx, rax
mov dl, 0xa
mov rcx, rax
call fcn.18002b910
mov rcx, rbx
call fcn.1800118f0
nop
lea rcx, [rbp + 0x68]
call fcn.18008f070
test byte [rsi + 0x70], 0x10
je 0x18003263d
cmp r12d, dword [rsi + 0x190]
ja 0x18003263d
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.180012930
nop
lea r8, [0x18014b59c]
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.18001dd50
nop
cmp qword [rax + 0x18], 0x10
jb 0x18003261c
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
lea rcx, [rbp + 0x68]
call fcn.18008f070
nop
lea rcx, [rbp + 0x90]
call fcn.18008f070
nop
lea rcx, [rbp + 0x40]
call fcn.18008f070
nop
lea rcx, [rbp - 0x28]
call fcn.1800128d0
lea rcx, [rbp - 0x28]
call fcn.180012100
nop
jmp 0x1800323a8
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x18003266b
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.1800be9b0
mov rbx, qword [rsp + 0x208]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret