Function at 0x180016480
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x40], rsp
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [rax + 0x1e]
xor r15d, r15d
mov qword [rsp + 0x80], r15
mov ecx, 0x1000a
call fcn.180053ad4
mov rsi, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rbx, rax
test rsi, rsi
je 0x18001658d
test rax, rax
je 0x18001658d
lea r9, [r14 + 0x208]
lea r8, str._CFG__Deleting_application___s_...
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x180016576
mov word [rbx + 0x1fffe], r15w
lea rdx, [r15 - 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 + 0x80]
call fcn.180054798
test eax, eax
je 0x18001654d
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, [0x18008bfa8]
mov edx, 0x1d7
mov r8d, 3
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x1800165a6
mov edx, edi
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x1800165a0
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 0x1800165b3
mov rcx, rsi
call fcn.180053a94
test rbx, rbx
je 0x1800165c0
mov rcx, rbx
call fcn.180053a94
mov eax, dword [0x1800a4278]
test eax, eax
je 0x18001669f
cmp eax, 0x10
jne 0x180016c20
mov dword [0x1800a4278], 0x11
call fcn.18000dce0
test al, al
je 0x1800165f6
mov dword [0x1800a4278], r15d
jmp 0x18001669f
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180016623
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 0x180016695
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x18001666f
mov byte [rbx + 0xffff], r15b
mov dword [rsp + 0x28], 0x11
mov qword [rsp + 0x20], rbx
lea r9, [0x18008bfa8]
mov edx, 0x1d9
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x18001668d
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 0x180016c20
mov rcx, qword [0x1800a6d10]
test rcx, rcx
je 0x180016b80
cmp dword [rcx], 0x1234abcd
jne 0x180016b80
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, r15d
mov dword [rsp + 0x30], ebx
mov r8, qword [0x1800a6d10]
cmp ebx, dword [r8 + 0x4238]
jge 0x18001673e
movsxd rax, ebx
imul rdi, rax, 0x420
mov rcx, qword [r8 + 0x4240]
add rcx, rdi
mov rdx, r14
call fcn.180052ca8
test eax, eax
jne 0x18001672d
lea rdx, [r14 + 0x208]
mov rax, qword [0x1800a6d10]
mov rcx, qword [rax + 0x4240]
add rcx, 0x208
add rcx, rdi
call fcn.180052ca8
test eax, eax
jne 0x18001672d
mov r8, qword [0x1800a6d10]
jmp 0x180016731
inc ebx
jmp 0x1800166c8
cmp ebx, dword [r8 + 0x4238]
jl 0x180016803
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x18001676b
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 0x1800167dd
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x1800167b7
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], 9
mov qword [rsp + 0x20], rbx
lea r9, [0x18008bfa8]
mov edx, 0x1ee
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x1800167d5
mov edx, 9
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], 9
lea rdx, [0x1800167f9]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
nop
nop
nop
mov eax, 9
jmp 0x180016c20
movsxd rax, ebx
imul rsi, rax, 0x420
mov rax, qword [r8 + 0x4240]
cmp dword [rax + rsi + 0x414], 0
je 0x180016902
mov dword [rax + rsi + 0x414], r15d
xor r8d, r8d
mov edx, ebx
call fcn.180020330
mov edi, eax
mov dword [rsp + 0x78], eax
test eax, eax
je 0x1800168fb
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x18001686f
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 0x1800168da
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x1800168b7
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
lea r9, [0x18008bfa8]
mov edx, 0x1fa
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x1800168d2
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 + 0x38], edi
lea rdx, [0x1800168f2]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
nop
nop
nop
mov eax, dword [rsp + 0x78]
jmp 0x180016c20
mov r8, qword [0x1800a6d10]
dec dword [r8 + 0x4238]
movsxd rax, dword [r8 + 0x4238]
cmp ebx, eax
jge 0x1800169a6
mov rdx, qword [r8 + 0x4240]
imul r9, rax, 0x420
lea rax, [rdx + rsi]
add r9, rdx
mov ebx, 8
nop dword [rax]
nop word [rax + rax]
movups xmm0, xmmword [r9]
movups xmmword [rax], xmm0
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [r9 + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [r9 + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [r9 + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [r9 + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [r9 + 0x60]
movups xmmword [rax + 0x60], xmm0
sub rax, 0xffffffffffffff80
movups xmm1, xmmword [r9 + 0x70]
movups xmmword [rax - 0x10], xmm1
lea r9, [r9 + 0x80]
dec rbx
jne 0x180016940
movups xmm0, xmmword [r9]
movups xmmword [rax], xmm0
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rax + 0x10], xmm1
lea rcx, [r8 + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [rax + 0x1e]
mov qword [rsp + 0x78], r15
mov ecx, 0x1000a
call fcn.180053ad4
mov rdi, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rbx, rax
test rdi, rdi
je 0x180016a9d
test rax, rax
je 0x180016a9d
lea r9, [r14 + 0x208]
lea r8, str._CFG__Deleting_application___s_._SUCCESS_
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x180016a86
mov word [rbx + 0x1fffe], r15w
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 + 0x78]
call fcn.180054798
test eax, eax
je 0x180016a5d
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, [0x18008bfa8]
mov edx, 0x213
mov r8d, 3
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180016ab6
mov edx, esi
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x180016ab0
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 0x180016ac3
mov rcx, rdi
call fcn.180053a94
test rbx, rbx
je 0x180016ad0
mov rcx, rbx
call fcn.180053a94
xor eax, eax
jmp 0x180016c20
mov ecx, 0x1000a
call fcn.180053ad4
mov rdi, rax
test rax, rax
jne 0x180016bb0
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 ebx, [rdi + 8]
jmp 0x180016c1e
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
mov ebx, 8
test eax, eax
jle 0x180016bfb
mov byte [rdi + 0xffff], r15b
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
lea r9, [0x18008bfa8]
mov edx, 0x1db
lea r8d, [rbx - 7]
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180016c16
mov edx, ebx
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, rdi
call fcn.180053a94
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret