Function at 0x14000a030
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb8]
sub rsp, 0x1b8
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400408d8]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov r14, r9
mov r13d, r8d
mov rbx, rdx
mov r12, rcx
mov r15, qword [rbp + 0x120]
lea rdi, [rcx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x30], 0
mov ecx, dword [rdi + 8]
test ecx, ecx
je 0x14000a0b7
dec ecx
je 0x14000a09a
or eax, 0xffffffff
jmp 0x14000a0c3
or edx, 0xffffffff
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000a0c1
cmp eax, 0x80
je 0x14000a0c1
or eax, 0xffffffff
jmp 0x14000a0c3
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
je 0x14000a51d
cmp byte [r12], 0
jne 0x14000a101
mov dword [rsp + 0x30], 0xffffffff
mov ecx, dword [rdi + 8]
test ecx, ecx
je 0x14000a511
dec ecx
jne 0x14000a51d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x14000a51d
lea rcx, [rsp + 0x40]
call fcn.1400046b0
nop
mov r8d, 1
lea rdx, [0x1400336f4]
mov rcx, rbx
call fcn.140002100
mov rsi, rax
mov qword [rbp + 0x70], 0xf
mov qword [rbp + 0x68], 0
mov byte [rbp + 0x58], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x58]
call fcn.140001dc0
nop
test esi, esi
jle 0x14000a1ff
lea eax, [rsi + 1]
movsxd r8, eax
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140009070
mov rbx, rax
lea rax, [rbp + 0x58]
cmp rax, rbx
je 0x14000a1db
cmp qword [rbp + 0x70], 0x10
jb 0x14000a182
mov rcx, qword [rbp + 0x58]
call fcn.140011c44
mov qword [rbp + 0x70], 0xf
xor esi, esi
mov qword [rbp + 0x68], rsi
mov byte [rbp + 0x58], sil
cmp qword [rbx + 0x18], 0x10
jae 0x14000a1b0
mov r8, qword [rbx + 0x10]
inc r8
mov rdx, rbx
lea rcx, [rbp + 0x58]
call fcn.140011910
jmp 0x14000a1ba
mov rax, qword [rbx]
mov qword [rbp + 0x58], rax
mov qword [rbx], rsi
mov rax, qword [rbx + 0x10]
mov qword [rbp + 0x68], rax
mov rax, qword [rbx + 0x18]
mov qword [rbp + 0x70], rax
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
jmp 0x14000a1dd
xor esi, esi
cmp qword [rbp + 0x48], 0x10
jb 0x14000a1ed
mov rcx, qword [rbp + 0x30]
call fcn.140011c44
mov qword [rbp + 0x48], 0xf
mov qword [rbp + 0x40], rsi
mov byte [rbp + 0x30], 0
jmp 0x14000a201
xor esi, esi
lea rcx, [rsp + 0x20]
call fcn.1400136e4
mov rbx, qword [rsp + 0x20]
sub rbx, qword [r12 + 0x180]
lea rdx, str.DEBUG_
lea rcx, [rsp + 0x40]
call fcn.140007ce0
mov rcx, rax
mov rdx, rbx
call fcn.14000a8f0
mov rcx, rax
lea rdx, [0x140033708]
call fcn.140007ce0
mov rcx, rax
lea rdx, [rbp + 0x58]
call fcn.14000c2e0
mov rcx, rax
lea rdx, [0x140033704]
call fcn.140007ce0
mov rcx, rax
mov edx, r13d
call fcn.14000a720
mov rcx, rax
lea rdx, [0x140033700]
call fcn.140007ce0
mov rcx, rax
mov rdx, r14
call fcn.14000c2e0
mov rcx, rax
lea rdx, str.__:
call fcn.140007ce0
mov rcx, rax
mov rdx, r15
call fcn.14000c2e0
mov r13d, 4
test byte [r12 + 0x70], 1
je 0x14000a34c
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400047b0
nop
cmp qword [rax + 0x18], 0x10
jb 0x14000a2c8
mov rax, qword [rax]
lea rcx, [r12 + 0x78]
mov rdx, rax
call fcn.140007ce0
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.14000aac0
xor ebx, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x14000a304
mov rcx, qword [rcx + rsi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove ebx, r13d
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test ebx, ebx
je 0x14000a32a
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x14000a321
or edx, 4
xor r8d, r8d
call fcn.140003980
nop
cmp qword [rbp + 0x48], 0x10
jb 0x14000a33a
mov rcx, qword [rbp + 0x30]
call fcn.140011c44
mov qword [rbp + 0x48], 0xf
xor esi, esi
mov qword [rbp + 0x40], rsi
mov byte [rbp + 0x30], sil
test byte [r12 + 0x70], 4
je 0x14000a3f7
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400047b0
nop
cmp qword [rax + 0x18], 0x10
jb 0x14000a371
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1400401d0]
call fcn.140007ce0
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.14000aac0
xor ebx, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x14000a3af
mov rcx, qword [rcx + rsi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove ebx, r13d
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test ebx, ebx
je 0x14000a3d5
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x14000a3cc
or edx, 4
xor r8d, r8d
call fcn.140003980
nop
cmp qword [rbp + 0x48], 0x10
jb 0x14000a3e5
mov rcx, qword [rbp + 0x30]
call fcn.140011c44
mov qword [rbp + 0x48], 0xf
xor esi, esi
mov qword [rbp + 0x40], rsi
mov byte [rbp + 0x30], sil
test byte [r12 + 0x70], 0x10
je 0x14000a485
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400047b0
nop
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14000c540
nop
cmp qword [rax + 0x18], 0x10
jb 0x14000a42c
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
cmp qword [rbp + 0x48], 0x10
jb 0x14000a446
mov rcx, qword [rbp + 0x30]
call fcn.140011c44
mov qword [rbp + 0x48], 0xf
mov qword [rbp + 0x40], rsi
mov byte [rbp + 0x30], 0
cmp qword [rbp + 0x98], 0x10
jb 0x14000a46c
mov rcx, qword [rbp + 0x80]
call fcn.140011c44
mov qword [rbp + 0x98], 0xf
mov qword [rbp + 0x90], rsi
mov byte [rbp + 0x80], 0
cmp qword [rbp + 0x70], 0x10
jb 0x14000a495
mov rcx, qword [rbp + 0x58]
call fcn.140011c44
mov qword [rbp + 0x70], 0xf
mov qword [rbp + 0x68], rsi
mov byte [rbp + 0x58], 0
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
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 + 0x40], rax
lea rcx, [rsp + 0x48]
call fcn.1400047f0
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x38], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
call fcn.140011298
nop
jmp 0x14000a0d7
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14000a51d
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.1400114c0
add rsp, 0x1b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret