Function at 0x140001b70
Capabilities:
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
xor r14d, r14d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], r14
mov rdi, rdx
mov qword [rsp + 0x38], rax
mov rsi, rcx
mov qword [rsp + 0x30], r14
mov rdx, rcx
mov dword [rsp + 0x28], 2
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140001c46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r14
mov r9d, 0x800
mov ebx, eax
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], r14
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x50]
lea rdx, str.RegCreateKeyEx
mov r8d, ebx
lea rcx, str.____The_function__S_failed_with_error_code__d____S
call fcn.140001010
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x140001f09
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], 4
lea rdx, str.GlobalFlag
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x68], 0x200
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140001ce1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r14
mov r9d, 0x800
mov ebx, eax
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], r14
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, str.RegSetValueEx
mov r9, qword [rsp + 0x50]
lea rcx, str.____The_function__S_failed_with_error_code__d____S
mov r8d, ebx
call fcn.140001010
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001e5e
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], 0x1000b
mov rdx, rdi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140001d5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r14
mov r9d, 0x800
mov ebx, eax
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], r14
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, str.RegCreateKeyEx
jmp 0x140001cbd
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x6c]
mov dword [rsp + 0x28], 4
lea rdx, str.DumpType
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x6c], 2
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140001dd5
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 4
lea rdx, str.ReportingMode
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x70], 2
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140001e8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r14
mov r9d, 0x800
mov ebx, eax
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], r14
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x50]
lea rdx, str.RegSetValueEx
mov r8d, ebx
lea rcx, str.____The_function__S_failed_with_error_code__d____S
call fcn.140001010
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, rdi
lea rcx, [rbp + 0x190]
mov edx, 0x208
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rdx, [rbp + 0x190]
call fcn.140001f30
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, rsi
lea rcx, [rbp + 0x190]
mov edx, 0x208
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rdx, [rbp + 0x190]
call fcn.140001f30
xor eax, eax
jmp 0x140001f09
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140001eee
mov rcx, qword [rsp + 0x58]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x28], 0x208
lea rdx, str.LocalDumpFolder
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140001eee
lea rcx, str.____Failed_to_set_LocalDumpFolder._output_dmp_file_will_be_wrriten_to:__TEMP_Silent_Process_Exit_n
call fcn.140001010
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.1400020f0
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret