Function at 0x180019570
Capabilities:
Print debug messages

Disassembly:
push rbx
push r14
sub rsp, 0x38
mov eax, dword [0x1800a4278]
xor r14d, r14d
mov ebx, r14d
test eax, eax
je 0x1800195af
cmp eax, 0x10
jne 0x180019c3d
mov dword [0x1800a4278], 0x11
call fcn.18000dce0
test al, al
je 0x1800196de
mov dword [0x1800a4278], r14d
mov rcx, qword [0x1800a6d10]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x30], rdi
test rcx, rcx
je 0x180019c31
cmp dword [rcx + 4], ebx
jbe 0x1800195ef
nop
inc ebx
cmp ebx, 0x32
jge 0x1800195ef
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1800a6d10]
cmp dword [rcx + 4], r14d
ja 0x1800195d0
cmp dword [rcx + 0x30], 1
mov dword [rcx], r14d
jne 0x1800197f0
mov dword [rcx + 0x30], r14d
call fcn.18001fef0
mov edi, eax
test eax, eax
je 0x1800197f0
mov ecx, 0x1000a
mov qword [rsp + 0x50], r14
call fcn.180053ad4
mov ecx, 0x2000a
mov rsi, rax
call fcn.180053ad4
mov rbx, rax
test rsi, rsi
je 0x1800197bd
test rax, rax
je 0x1800197bd
lea r8, [0x180088b38]
mov r9d, edi
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x1800197a6
mov rdx, 0xfffffffffffffffe
mov rcx, rbx
mov word [rbx + 0x1fffe], r14w
call fcn.180053398
lea rcx, [rsp + 0x50]
mov r9, rbx
lea r8, [rax + 1]
mov rdx, rsi
mov qword [rsp + 0x20], 0xffffffffffffffff
call fcn.180054798
test eax, eax
je 0x1800196b2
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
mov r8d, edi
mov rdx, rbx
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r9, [0x18008c368]
lea rcx, str...ApiNA.cpp
mov edx, 0x3d1
mov r8d, 3
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call fcn.180001b40
jmp 0x1800197d6
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180019714
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]
lea eax, [rbx + 0x11]
add rsp, 0x38
pop r14
pop rbx
ret
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180019773
lea r9, [0x18008c368]
lea rcx, str...ApiNA.cpp
mov edx, 0x3b8
mov r8d, 1
mov dword [rsp + 0x28], 0x11
mov byte [rbx + 0xffff], r14b
mov qword [rsp + 0x20], rbx
call fcn.180001b40
mov rcx, rbx
call fcn.180053a94
mov eax, 0x11
add rsp, 0x38
pop r14
pop rbx
ret
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, 0x11
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
add rsp, 0x38
pop r14
pop rbx
ret
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, edi
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x1800197d0
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 0x1800197e3
mov rcx, rsi
call fcn.180053a94
test rbx, rbx
je 0x1800197f0
mov rcx, rbx
call fcn.180053a94
lea rcx, [0x1800a75e0]
call sym.mbae_api_na.dll_MbaeDelProtectedApp
call fcn.18001ed10
mov edi, eax
test eax, eax
je 0x18001991d
mov ecx, 0x1000a
mov qword [rsp + 0x50], r14
call fcn.180053ad4
mov ecx, 0x2000a
mov rsi, rax
call fcn.180053ad4
mov rbx, rax
test rsi, rsi
je 0x1800198ea
test rax, rax
je 0x1800198ea
lea r8, [0x180088b38]
mov r9d, edi
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x1800198d3
mov rdx, 0xfffffffffffffffe
mov rcx, rbx
mov word [rbx + 0x1fffe], r14w
call fcn.180053398
lea rcx, [rsp + 0x50]
mov r9, rbx
lea r8, [rax + 1]
mov rdx, rsi
mov qword [rsp + 0x20], 0xffffffffffffffff
call fcn.180054798
test eax, eax
je 0x1800198aa
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
mov r8d, edi
mov rdx, rbx
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r9, [0x18008c368]
lea rcx, str...ApiNA.cpp
mov edx, 0x3d8
mov r8d, 3
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call fcn.180001b40
jmp 0x180019903
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, edi
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x1800198fd
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 0x180019910
mov rcx, rsi
call fcn.180053a94
test rbx, rbx
je 0x18001991d
mov rcx, rbx
call fcn.180053a94
lea rcx, str.MBAE_IPC_PROTECTION_CHANNEL
call fcn.18003a210
test eax, eax
jne 0x180019a1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x1000a
lea edi, [rax + 0x1e]
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180019982
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]
mov rdi, qword [rsp + 0x30]
lea eax, [rsi + 0x1e]
mov rsi, qword [rsp + 0x60]
add rsp, 0x38
pop r14
pop rbx
ret
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x1800199e5
lea r9, [0x18008c368]
lea rcx, str...ApiNA.cpp
mov edx, 0x3dc
mov r8d, 1
mov dword [rsp + 0x28], edi
mov byte [rbx + 0xffff], r14b
mov qword [rsp + 0x20], rbx
call fcn.180001b40
mov rcx, rbx
call fcn.180053a94
mov rdi, qword [rsp + 0x30]
lea eax, [rsi + 0x1e]
mov rsi, qword [rsp + 0x60]
add rsp, 0x38
pop r14
pop rbx
ret
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, edi
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 rdi, qword [rsp + 0x30]
lea eax, [rsi + 0x1e]
mov rsi, qword [rsp + 0x60]
add rsp, 0x38
pop r14
pop rbx
ret
cmp dword [0x1800a7378], r14d
jne 0x180019a3c
lea rcx, [0x180036bc0]
mov dword [0x1800a7378], 1
call fcn.180036be0
mov rbx, qword [0x1800a6d10]
mov rcx, qword [rbx + 0x4240]
test rcx, rcx
je 0x180019a5b
call fcn.180053a94
mov qword [rbx + 0x4240], r14
mov rcx, qword [rbx + 0x6268]
test rcx, rcx
je 0x180019a73
call fcn.180053a94
mov qword [rbx + 0x6268], r14
mov rcx, qword [rbx + 0x4250]
test rcx, rcx
je 0x180019a8b
call fcn.180053a94
mov qword [rbx + 0x4250], r14
mov rcx, qword [rbx + 0x6278]
test rcx, rcx
je 0x180019aa3
call fcn.180053a94
mov qword [rbx + 0x6278], r14
mov rcx, qword [0x1800a7168]
mov dword [0x1800a4264], r14d
test rcx, rcx
je 0x180019c0f
mov edx, 0x1388
mov qword [rsp + 0x58], rbp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, eax
test eax, eax
je 0x180019bef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x1000a
mov qword [rsp + 0x50], r14
lea esi, [rax + 0x1e]
call fcn.180053ad4
mov ecx, 0x2000a
mov rdi, rax
call fcn.180053ad4
mov rbx, rax
test rdi, rdi
je 0x180019bbc
test rax, rax
je 0x180019bbc
lea r8, str.WaitForSingleObject_AsyncThread:__d
mov r9d, ebp
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x180019ba5
mov rdx, 0xfffffffffffffffe
mov rcx, rbx
mov word [rbx + 0x1fffe], r14w
call fcn.180053398
lea rcx, [rsp + 0x50]
mov r9, rbx
lea r8, [rax + 1]
mov rdx, rdi
mov qword [rsp + 0x20], 0xffffffffffffffff
call fcn.180054798
test eax, eax
je 0x180019b7c
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
mov r8d, esi
mov rdx, rbx
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r9, [0x18008c368]
lea rcx, str...ApiNA.cpp
mov edx, 0x404
mov r8d, 1
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
call fcn.180001b40
jmp 0x180019bd5
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, esi
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x180019bcf
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 0x180019be2
mov rcx, rdi
call fcn.180053a94
test rbx, rbx
je 0x180019bef
mov rcx, rbx
call fcn.180053a94
mov rcx, qword [0x1800a7168]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x1800a6d10]
mov rbp, qword [rsp + 0x58]
mov qword [0x1800a7168], r14
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [0x1800a6d10]
test rcx, rcx
je 0x180019c2a
call fcn.180053a94
mov qword [0x1800a6d10], r14
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x38
pop r14
pop rbx
ret