Function at 0x180015b50
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r12
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 r12d, r12d
mov qword [rsp + 0x90], r12
mov ecx, 0x1000a
call fcn.180053ad4
mov rsi, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rbx, rax
test rsi, rsi
je 0x180015c5c
test rax, rax
je 0x180015c5c
lea r9, [r14 + 0x208]
lea r8, str._CFG__Adding_new_application___s_...
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x180015c45
mov word [rbx + 0x1fffe], r12w
lea rdx, [r12 - 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 + 0x90]
call fcn.180054798
test eax, eax
je 0x180015c1c
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, [0x18008bee0]
mov edx, 0x185
mov r8d, 3
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180015c75
mov edx, edi
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x180015c6f
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 0x180015c82
mov rcx, rsi
call fcn.180053a94
test rbx, rbx
je 0x180015c8f
mov rcx, rbx
call fcn.180053a94
mov eax, dword [0x1800a4278]
test eax, eax
je 0x180015d6e
cmp eax, 0x10
jne 0x180016464
mov dword [0x1800a4278], 0x11
call fcn.18000dce0
test al, al
je 0x180015cc5
mov dword [0x1800a4278], r12d
jmp 0x180015d6e
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180015cf2
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 0x180015d64
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180015d3e
mov byte [rbx + 0xffff], r12b
mov dword [rsp + 0x28], 0x11
mov qword [rsp + 0x20], rbx
lea r9, [0x18008bee0]
mov edx, 0x187
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180015d5c
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 0x180016464
mov rcx, qword [0x1800a6d10]
test rcx, rcx
je 0x1800163c0
cmp dword [rcx], 0x1234abcd
jne 0x1800163c0
test r14, r14
je 0x1800163c0
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, r12d
mov dword [rsp + 0x30], r12d
nop word [rax + rax]
mov rbx, qword [0x1800a6d10]
cmp edi, dword [rbx + 0x4238]
jge 0x180015e18
movsxd rax, edi
imul rsi, rax, 0x420
mov rcx, qword [rbx + 0x4240]
add rcx, rsi
mov rdx, r14
call fcn.180052ca8
test eax, eax
jne 0x180015e10
lea rdx, [r14 + 0x208]
mov rax, qword [0x1800a6d10]
mov rcx, qword [rax + 0x4240]
add rcx, 0x208
add rcx, rsi
call fcn.180052ca8
test eax, eax
jne 0x180015e10
mov rbx, qword [0x1800a6d10]
jmp 0x180015e18
inc edi
mov dword [rsp + 0x30], edi
jmp 0x180015db0
mov eax, dword [rbx + 0x4238]
cmp edi, eax
jge 0x180015eeb
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180015e53
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 0x180015ec5
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180015e9f
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rbx
lea r9, [0x18008bee0]
mov edx, 0x19c
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180015ebd
mov edx, 2
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], 2
lea rdx, [0x180015ee1]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
nop
nop
nop
mov eax, 2
jmp 0x180016464
mov ecx, dword [rbx + 0x423c]
cmp ecx, eax
jg 0x18001603e
lea r15d, [rcx + 0xa]
movsxd rsi, r15d
imul rcx, rsi, 0xa30
add rcx, 0xa
call fcn.180053ad4
mov rdi, rax
test rax, rax
jne 0x180015fe1
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180015f49
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 0x180015fbb
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180015f95
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rbx
lea r9, [0x18008bee0]
mov edx, 0x1a5
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180015fb3
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 + 0x38], 5
lea rdx, [0x180015fd7]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
nop
nop
nop
mov eax, 5
jmp 0x180016464
imul r8, rsi, 0x420
xor edx, edx
mov rcx, rax
call fcn.180056c20
cmp dword [rbx + 0x423c], 0
je 0x180016030
movsxd rax, dword [rbx + 0x4238]
imul r8, rax, 0x420
mov rdx, qword [rbx + 0x4240]
mov rcx, rdi
call fcn.180052e30
mov rcx, qword [rbx + 0x4240]
test rcx, rcx
je 0x180016029
call fcn.180053a94
mov qword [rbx + 0x4240], r12
mov qword [rbx + 0x4240], rdi
mov dword [rbx + 0x423c], r15d
movsxd rax, dword [rbx + 0x4238]
imul rcx, rax, 0x420
add rcx, qword [rbx + 0x4240]
mov r8, r14
mov edx, 0x104
call fcn.180054b48
mov r8, qword [0x1800a6d10]
movsxd rax, dword [r8 + 0x4238]
imul rcx, rax, 0x420
mov rax, qword [r8 + 0x4240]
add rax, 0x208
add rcx, rax
lea r8, [r14 + 0x208]
mov edx, 0x104
call fcn.180054b48
mov r8, qword [0x1800a6d10]
mov edx, dword [r14 + 0x410]
movsxd rax, dword [r8 + 0x4238]
imul rcx, rax, 0x420
mov rax, qword [r8 + 0x4240]
mov dword [rcx + rax + 0x410], edx
mov edx, dword [r14 + 0x414]
movsxd rax, dword [r8 + 0x4238]
imul rcx, rax, 0x420
mov rax, qword [r8 + 0x4240]
mov dword [rcx + rax + 0x414], edx
inc dword [r8 + 0x4238]
mov edx, dword [r8 + 0x4238]
cmp dword [r14 + 0x414], 1
jne 0x1800161e0
dec edx
mov r8d, 1
call fcn.180020330
mov edi, eax
mov dword [rsp + 0x88], eax
test eax, eax
je 0x1800161d9
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x18001614a
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 0x1800161b5
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180016192
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
lea r9, [0x18008bee0]
mov edx, 0x1bf
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x1800161ad
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 + 0x3c], edi
lea rdx, [0x1800161cd]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
nop
nop
nop
mov eax, dword [rsp + 0x88]
jmp 0x180016464
mov r8, qword [0x1800a6d10]
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 + 0x88], r12
mov ecx, 0x1000a
call fcn.180053ad4
mov rdi, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rbx, rax
test rdi, rdi
je 0x1800162dd
test rax, rax
je 0x1800162dd
lea r9, [r14 + 0x208]
lea r8, str._CFG__Adding_new_application___s_._SUCCESS_
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x1800162c6
mov word [rbx + 0x1fffe], r12w
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 + 0x88]
call fcn.180054798
test eax, eax
je 0x18001629d
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, [0x18008bee0]
mov edx, 0x1cd
mov r8d, 3
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x1800162f6
mov edx, esi
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x1800162f0
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 0x180016303
mov rcx, rdi
call fcn.180053a94
test rbx, rbx
je 0x180016310
mov rcx, rbx
call fcn.180053a94
xor eax, eax
jmp 0x180016464
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x1800163ed
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 0x18001645f
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180016439
mov byte [rbx + 0xffff], r12b
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rbx
lea r9, [0x18008bee0]
mov edx, 0x189
mov r8d, 1
lea rcx, str...ApiNA.cpp
call fcn.180001b40
jmp 0x180016457
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 + 0x80]
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret