Function at 0x1800029b0
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 [0x1800ea550]
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 + 0x20], rax
lea rdi, [rcx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x30], 0
mov ecx, dword [rdi + 8]
test ecx, ecx
je 0x180002a4a
dec ecx
je 0x180002a2d
or eax, 0xffffffff
jmp 0x180002a56
or edx, 0xffffffff
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180002a54
cmp eax, 0x80
je 0x180002a54
or eax, 0xffffffff
jmp 0x180002a56
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
je 0x180002e4c
cmp byte [rsi], 0
jne 0x180002a92
mov dword [rsp + 0x30], 0xffffffff
mov ecx, dword [rdi + 8]
test ecx, ecx
je 0x180002e40
dec ecx
jne 0x180002e4c
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x180002e4c
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x50]
call fcn.180004950
nop
mov r9d, 1
or r8, 0xffffffffffffffff
lea rdx, [0x1800b69e4]
mov rcx, rbx
call fcn.1800056e0
mov r13, rax
mov qword [rbp + 0x80], 0xf
mov qword [rbp + 0x78], 0
mov byte [rbp + 0x68], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x68]
call fcn.180005530
nop
test r13d, r13d
jle 0x180002bb1
lea eax, [r13 + 1]
movsxd r8, eax
or r9, 0xffffffffffffffff
lea rdx, [rbp + 0x40]
mov rcx, rbx
call fcn.180003120
mov rbx, rax
lea rax, [rbp + 0x68]
cmp rax, rbx
je 0x180002b8c
cmp qword [rbp + 0x80], 0x10
jb 0x180002b2c
mov rcx, qword [rbp + 0x68]
call fcn.18007309c
mov qword [rbp + 0x80], 0xf
xor r13d, r13d
mov qword [rbp + 0x78], r13
mov byte [rbp + 0x68], r13b
cmp qword [rbx + 0x18], 0x10
jae 0x180002b5e
mov r8, qword [rbx + 0x10]
inc r8
mov rdx, rbx
lea rcx, [rbp + 0x68]
call fcn.180073f20
jmp 0x180002b68
mov rax, qword [rbx]
mov qword [rbp + 0x68], rax
mov qword [rbx], r13
mov rax, qword [rbx + 0x10]
mov qword [rbp + 0x78], rax
mov rax, qword [rbx + 0x18]
mov qword [rbp + 0x80], rax
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r13
mov byte [rbx], r13b
jmp 0x180002b8f
xor r13d, r13d
cmp qword [rbp + 0x58], 0x10
jb 0x180002b9f
mov rcx, qword [rbp + 0x40]
call fcn.18007309c
mov qword [rbp + 0x58], 0xf
mov qword [rbp + 0x50], r13
mov byte [rbp + 0x40], 0
jmp 0x180002bb4
xor r13d, r13d
lea rcx, [rsp + 0x38]
call fcn.1800748f4
mov rbx, qword [rsp + 0x38]
sub rbx, qword [rsi + 0x180]
lea rdx, str.DEBUG_
lea rcx, [rsp + 0x50]
call fcn.180009910
mov rcx, rax
mov rdx, rbx
call fcn.1800035f0
mov rcx, rax
lea rdx, [0x1800b69f8]
call fcn.180009910
mov rcx, rax
lea rdx, [rbp + 0x68]
call fcn.1800096b0
mov rcx, rax
lea rdx, [0x1800b69f4]
call fcn.180009910
mov rcx, rax
mov edx, r14d
call fcn.180003420
mov rcx, rax
lea rdx, [0x1800b69f0]
call fcn.180009910
mov rcx, rax
mov rdx, r15
call fcn.1800096b0
mov rcx, rax
lea rdx, str.__:
call fcn.180009910
mov rcx, rax
mov rdx, qword [rsp + 0x20]
call fcn.1800096b0
test byte [rsi + 0x70], 1
je 0x180002cae
cmp r12d, dword [rsi + 0x188]
ja 0x180002cae
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.180004ae0
nop
cmp qword [rax + 0x18], 0x10
jb 0x180002c79
mov rax, qword [rax]
lea rcx, [rsi + 0x78]
mov rdx, rax
call fcn.180009910
mov rcx, rax
call fcn.180001dd0
nop
cmp qword [rbp + 0x58], 0x10
jb 0x180002c9e
mov rcx, qword [rbp + 0x40]
call fcn.18007309c
mov qword [rbp + 0x58], 0xf
mov qword [rbp + 0x50], r13
mov byte [rbp + 0x40], 0
test byte [rsi + 0x70], 4
je 0x180002d0e
cmp r12d, dword [rsi + 0x18c]
ja 0x180002d0e
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.180004ae0
nop
cmp qword [rax + 0x18], 0x10
jb 0x180002cd6
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1800ea450]
call fcn.180009910
mov rcx, rax
call fcn.180001dd0
nop
cmp qword [rbp + 0x58], 0x10
jb 0x180002cfe
mov rcx, qword [rbp + 0x40]
call fcn.18007309c
mov qword [rbp + 0x58], 0xf
mov qword [rbp + 0x50], r13
mov byte [rbp + 0x40], 0
test byte [rsi + 0x70], 0x10
je 0x180002dae
cmp r12d, dword [rsi + 0x190]
ja 0x180002dae
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.180004ae0
nop
lea r8, [0x1800b6a04]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.180009b70
nop
cmp qword [rax + 0x18], 0x10
jb 0x180002d55
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
cmp qword [rbp + 0x58], 0x10
jb 0x180002d6f
mov rcx, qword [rbp + 0x40]
call fcn.18007309c
mov qword [rbp + 0x58], 0xf
mov qword [rbp + 0x50], r13
mov byte [rbp + 0x40], 0
cmp qword [rbp + 0xa8], 0x10
jb 0x180002d95
mov rcx, qword [rbp + 0x90]
call fcn.18007309c
mov qword [rbp + 0xa8], 0xf
mov qword [rbp + 0xa0], r13
mov byte [rbp + 0x90], 0
cmp qword [rbp + 0x80], 0x10
jb 0x180002dc1
mov rcx, qword [rbp + 0x68]
call fcn.18007309c
mov qword [rbp + 0x80], 0xf
mov qword [rbp + 0x78], r13
mov byte [rbp + 0x68], 0
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], rax
lea rcx, [rsp + 0x58]
call fcn.180004b20
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x28], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.1800724a4
nop
jmp 0x180002a68
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180002e4c
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.180073c80
mov rbx, qword [rsp + 0x208]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret