Function at 0x180016c40
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
mov rbx, rdx
mov rsi, rcx
mov eax, dword [0x1800a4278]
test eax, eax
je 0x180016d3c
cmp eax, 0x10
jne 0x180016fcd
mov dword [0x1800a4278], 0x11
call fcn.18000dce0
test al, al
je 0x180016c93
mov dword [0x1800a4278], 0
jmp 0x180016d3c
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180016cc0
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 0x180016d32
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180016d0c
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], 0x11
mov qword [rsp + 0x20], rbx
lea r9, [0x18008c018]
mov edx, 0x220
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180016d2a
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 0x180016fcd
mov rcx, qword [0x1800a6d10]
test rcx, rcx
je 0x180016f29
cmp dword [rcx], 0x1234abcd
jne 0x180016f29
test rsi, rsi
je 0x180016f29
test rbx, rbx
je 0x180016f29
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [0x1800a6d10]
mov eax, dword [rdi + 0x4238]
cmp dword [rbx], eax
mov dword [rbx], eax
jge 0x180016e50
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180016db8
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 0x180016e2a
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180016e04
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rbx
lea r9, [0x18008c018]
mov edx, 0x22e
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180016e22
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, [0x180016e46]
mov rcx, qword [rsp + 0x38]
call fcn.180057580
nop
nop
nop
mov eax, 5
jmp 0x180016fcd
movsxd rax, dword [rdi + 0x4238]
imul r8, rax, 0x420
mov rdx, qword [rdi + 0x4240]
mov rcx, qword [rsi]
call fcn.180052e30
nop
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
xor eax, eax
jmp 0x180016fcd
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180016f56
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 0x180016fc8
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180016fa2
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rbx
lea r9, [0x18008c018]
mov edx, 0x223
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180016fc0
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