Function at 0x180019c60
Capabilities:
Get common file path
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r15
sub rsp, 0x270
mov rax, qword [0x1800a2de8]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebp, eax
test eax, eax
je 0x180019df5
mov qword [rsp + 0x290], rsi
mov qword [rsp + 0x298], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r15d, r15d
mov ecx, 0x1000a
lea esi, [rax + 0x1e]
mov qword [rsp + 0x40], r15
call fcn.180053ad4
mov ecx, 0x2000a
mov rdi, rax
call fcn.180053ad4
mov rbx, rax
test rdi, rdi
je 0x180019da9
test rax, rax
je 0x180019da9
lea r8, str.SHGetFolderPath:__d
mov r9d, ebp
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x180019d92
lea rdx, [r15 - 2]
mov rcx, rbx
mov word [rbx + 0x1fffe], r15w
call fcn.180053398
lea rcx, [rsp + 0x40]
mov r9, rbx
lea r8, [rax + 1]
mov rdx, rdi
mov qword [rsp + 0x20], 0xffffffffffffffff
call fcn.180054798
test eax, eax
je 0x180019d69
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, str._SetDataPath
lea rcx, str...ApiNA.cpp
mov edx, 0x427
mov r8d, 1
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
call fcn.180001b40
jmp 0x180019dc2
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, esi
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x180019dbc
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 rsi, qword [rsp + 0x290]
test rdi, rdi
je 0x180019dd7
mov rcx, rdi
call fcn.180053a94
test rbx, rbx
je 0x180019de4
mov rcx, rbx
call fcn.180053a94
lea eax, [r14 + 0x1e]
mov r14, qword [rsp + 0x298]
jmp 0x18001a008
lea rax, str.MalwarebytesMBAMServicelogs
lea r9, [rsp + 0x50]
lea r8, str._s_s_
lea rcx, [0x1800a6d20]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.180053a4c
call fcn.180002c70
mov edi, eax
test eax, eax
je 0x180019ede
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180019e5f
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 eax, edi
jmp 0x18001a008
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180019eb4
lea r9, str._SetDataPath
lea rcx, str...ApiNA.cpp
mov edx, 0x42d
mov r8d, 1
mov dword [rsp + 0x28], edi
mov byte [rbx + 0xffff], 0
mov qword [rsp + 0x20], rbx
call fcn.180001b40
mov rcx, rbx
call fcn.180053a94
mov eax, edi
jmp 0x18001a008
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 eax, edi
jmp 0x18001a008
lea r9, str.mbae_default.log
lea r8, [0x1800a6d20]
lea rdx, str._s_s
lea rcx, [rsp + 0x50]
call fcn.180003d50
xor r15d, r15d
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], r15
lea edx, [r15 + 4]
lea r8d, [r15 + 1]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x180019ffd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x18001a006
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180019f77
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]
jmp 0x18001a008
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180019fd0
lea r9, str._SetDataPath
lea rcx, str...ApiNA.cpp
mov edx, 0x436
mov r8d, 1
mov dword [rsp + 0x28], 0x11
mov byte [rbx + 0xffff], r15b
mov qword [rsp + 0x20], rbx
call fcn.180001b40
mov rcx, rbx
call fcn.180053a94
mov eax, 0x11
jmp 0x18001a008
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
jmp 0x18001a008
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180052be0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop r15
pop rdi
pop rbp
ret