Function at 0x18002ff90
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 [0x1801c2938]
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 0x18003002a
dec ecx
je 0x18003000d
or eax, 0xffffffff
jmp 0x180030036
or edx, 0xffffffff
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180030034
cmp eax, 0x80
je 0x180030034
or eax, 0xffffffff
jmp 0x180030036
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x18003030b
cmp byte [rsi], 0
jne 0x180030072
mov dword [rsp + 0x28], 0xffffffff
mov ecx, dword [rdi + 8]
test ecx, ecx
je 0x1800302ff
dec ecx
jne 0x18003030b
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x18003030b
lea rcx, [rsp + 0x50]
call fcn.180014590
nop
mov edx, 1
mov rcx, rbx
call fcn.1800304d0
mov r13, rax
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.1800017f0
nop
test r13d, r13d
jle 0x180030137
lea eax, [r13 + 1]
movsxd r8, eax
or r9, 0xffffffffffffffff
lea rdx, [rbp + 0x68]
mov rcx, rbx
call fcn.18002bbf0
mov rbx, rax
lea rax, [rbp + 0x40]
cmp rax, rbx
je 0x18003012e
cmp qword [rbp + 0x58], 0x10
jb 0x1800300d6
mov rcx, qword [rbp + 0x40]
call fcn.1800be828
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 0x180030105
mov r8, qword [rbx + 0x10]
inc r8
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.1800be2a0
jmp 0x18003010f
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.180001850
lea rcx, [rsp + 0x38]
call fcn.1800c0ee8
mov rbx, qword [rsp + 0x38]
sub rbx, qword [rsi + 0x180]
lea rdx, str.DEBUG_
lea rcx, [rsp + 0x50]
call fcn.180021c60
mov rcx, rax
mov rdx, rbx
call fcn.180013130
mov rcx, rax
lea rdx, [0x18014a984]
call fcn.180021c60
mov rcx, rax
lea rdx, [rbp + 0x40]
call fcn.180021ea0
mov rcx, rax
lea rdx, [0x18014a980]
call fcn.180021c60
mov rcx, rax
mov edx, r14d
call fcn.180012b90
mov rcx, rax
lea rdx, [0x18014a97c]
call fcn.180021c60
mov rcx, rax
mov rdx, r15
call fcn.180021ea0
mov rcx, rax
lea rdx, str.__:
call fcn.180021c60
mov rcx, rax
mov rdx, qword [rsp + 0x30]
call fcn.180021ea0
test byte [rsi + 0x70], 1
je 0x180030227
cmp r12d, dword [rsi + 0x188]
ja 0x180030227
lea rdx, [rbp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.1800146d0
nop
cmp qword [rax + 0x18], 0x10
jb 0x1800301fc
mov rax, qword [rax]
lea rcx, [rsi + 0x78]
mov rdx, rax
call fcn.180021c60
mov rbx, rax
mov dl, 0xa
mov rcx, rax
call fcn.1800138b0
mov rcx, rbx
call fcn.180013dd0
nop
lea rcx, [rbp + 0x68]
call fcn.180001850
test byte [rsi + 0x70], 4
je 0x18003027d
cmp r12d, dword [rsi + 0x18c]
ja 0x18003027d
lea rdx, [rbp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.1800146d0
nop
cmp qword [rax + 0x18], 0x10
jb 0x18003024f
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1801c2170]
call fcn.180021c60
mov rbx, rax
mov dl, 0xa
mov rcx, rax
call fcn.1800138b0
mov rcx, rbx
call fcn.180013dd0
nop
lea rcx, [rbp + 0x68]
call fcn.180001850
test byte [rsi + 0x70], 0x10
je 0x1800302dd
cmp r12d, dword [rsi + 0x190]
ja 0x1800302dd
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1800146d0
nop
lea r8, [0x18014a990]
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.18002c290
nop
cmp qword [rax + 0x18], 0x10
jb 0x1800302bc
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
lea rcx, [rbp + 0x68]
call fcn.180001850
nop
lea rcx, [rbp + 0x90]
call fcn.180001850
nop
lea rcx, [rbp + 0x40]
call fcn.180001850
nop
lea rcx, [rbp - 0x28]
call fcn.180014670
lea rcx, [rbp - 0x28]
call fcn.180013e40
nop
jmp 0x180030048
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x18003030b
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.1800bdf20
mov rbx, qword [rsp + 0x208]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret