Function at 0x180017640
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x38], rsp
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [rax + 0x1e]
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov ecx, 0x1000a
call fcn.180053ad4
mov rsi, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rbx, rax
test rsi, rsi
je 0x18001773f
test rax, rax
je 0x18001773f
lea r8, str._CFG__Starting_MBAE...
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x180017728
mov word [rbx + 0x1fffe], r14w
lea rdx, [r14 - 2]
mov rcx, rbx
call fcn.180053398
lea r8, [rax + 1]
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rbx
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.180054798
test eax, eax
je 0x1800176ff
mov r8d, edi
mov rdx, rbx
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
lea r9, [0x18008c090]
mov edx, 0x28d
mov r8d, 3
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180017758
mov edx, edi
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x180017752
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]
test rsi, rsi
je 0x180017765
mov rcx, rsi
call fcn.180053a94
test rbx, rbx
je 0x180017772
mov rcx, rbx
call fcn.180053a94
mov eax, dword [0x1800a4278]
test eax, eax
je 0x180017851
cmp eax, 0x10
jne 0x180017ced
mov dword [0x1800a4278], 0x11
call fcn.18000dce0
test al, al
je 0x1800177a8
mov dword [0x1800a4278], r14d
jmp 0x180017851
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x1800177d5
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 0x180017847
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180017821
mov byte [rbx + 0xffff], r14b
mov dword [rsp + 0x28], 0x11
mov qword [rsp + 0x20], rbx
lea r9, [0x18008c090]
mov edx, 0x28e
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x18001783f
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 0x180017ced
mov rcx, qword [0x1800a6d10]
test rcx, rcx
je 0x180017c49
cmp dword [rcx], 0x1234abcd
jne 0x180017c49
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1800a6d10]
cmp dword [rax + 0x30], 1
jne 0x180017895
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x180017ced
mov dword [rax + 0x30], 1
call fcn.18001e470
mov edi, eax
mov dword [rsp + 0x50], eax
test eax, eax
je 0x180017968
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x1800178dc
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 0x180017947
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180017924
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
lea r9, [0x18008c090]
mov edx, 0x2a2
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x18001793f
mov edx, edi
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], edi
lea rdx, [0x18001795f]
mov rcx, qword [rsp + 0x38]
call fcn.180057580
nop
nop
nop
mov eax, dword [rsp + 0x50]
jmp 0x180017ced
mov dword [0x1800a4264], 1
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [0x180008cd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1800a7168], rax
test rax, rax
jne 0x180017a6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [rax + 0x1e]
mov dword [rsp + 0x50], esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [rax + 0x1e]
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x1800179e3
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 0x180017a4e
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180017a2b
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
lea r9, [0x18008c090]
mov edx, 0x2a9
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180017a46
mov edx, edi
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 + 0x34], esi
lea rdx, [0x180017a66]
mov rcx, qword [rsp + 0x38]
call fcn.180057580
nop
nop
nop
mov eax, dword [rsp + 0x50]
jmp 0x180017ced
mov rcx, qword [0x1800a6d10]
add rcx, 8
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [rax + 0x1e]
mov qword [rsp + 0x50], r14
mov ecx, 0x1000a
call fcn.180053ad4
mov rdi, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rbx, rax
test rdi, rdi
je 0x180017b66
test rax, rax
je 0x180017b66
lea r8, str._CFG__Starting_MBAE._SUCCESS_
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x180017b4f
mov word [rbx + 0x1fffe], r14w
mov rdx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.180053398
lea r8, [rax + 1]
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rbx
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.180054798
test eax, eax
je 0x180017b26
mov r8d, esi
mov rdx, rbx
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
lea r9, [0x18008c090]
mov edx, 0x2c0
mov r8d, 3
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180017b7f
mov edx, esi
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x180017b79
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]
test rdi, rdi
je 0x180017b8c
mov rcx, rdi
call fcn.180053a94
test rbx, rbx
je 0x180017b99
mov rcx, rbx
call fcn.180053a94
xor eax, eax
jmp 0x180017ced
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180017c76
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 0x180017ce8
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180017cc2
mov byte [rbx + 0xffff], r14b
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rbx
lea r9, [0x18008c090]
mov edx, 0x290
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180017ce0
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 + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret