Function at 0x180016fe0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], rsp
movsxd rdi, edx
mov rsi, rcx
mov eax, dword [0x1800a4278]
test eax, eax
je 0x1800170dc
cmp eax, 0x10
jne 0x18001737b
mov dword [0x1800a4278], 0x11
call fcn.18000dce0
test al, al
je 0x180017033
mov dword [0x1800a4278], 0
jmp 0x1800170dc
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180017060
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1800170d2
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x1800170ac
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], 0x11
mov qword [rsp + 0x20], rbx
lea r9, [0x18008c030]
mov edx, 0x247
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x1800170ca
mov edx, 0x11
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call fcn.180053a94
mov eax, 0x11
jmp 0x18001737b
mov rcx, qword [0x1800a6d10]
test rcx, rcx
je 0x1800172d7
cmp dword [rcx], 0x1234abcd
jne 0x1800172d7
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1800a6d10]
mov rcx, qword [rbx + 0x6268]
test rcx, rcx
je 0x180017125
call fcn.180053a94
mov qword [rbx + 0x6268], 0
mov dword [rbx + 0x6260], edi
imul rdi, rdi, 0x44
lea rcx, [rdi + 0xa]
call fcn.180053ad4
mov qword [rbx + 0x6268], rax
test rax, rax
jne 0x18001720d
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180017175
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1800171e7
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x1800171c1
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rbx
lea r9, [0x18008c030]
mov edx, 0x257
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x1800171df
mov edx, 5
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call fcn.180053a94
mov dword [rsp + 0x30], 5
lea rdx, [0x180017203]
mov rcx, qword [rsp + 0x38]
call fcn.180057580
nop
nop
nop
mov eax, 5
jmp 0x18001737b
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.180052e30
nop
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
xor eax, eax
jmp 0x18001737b
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180017304
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x180017376
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180017350
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rbx
lea r9, [0x18008c030]
mov edx, 0x249
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x18001736e
mov edx, 8
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call fcn.180053a94
mov eax, 8
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret