Function at 0x14006a120
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub rsp, 0x2e8
mov rax, qword [0x1400e6470]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x4c], 0x20101
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
call fcn.1400825b0
mov dword [rax], 0
cmp qword [0x1400e8778], 0
je 0x14006a180
xor eax, eax
jmp 0x14006a3d0
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0x208
jae 0x14006a19b
jmp 0x14006a1a0
call fcn.140075a04
xor eax, eax
mov rcx, qword [rsp + 0x60]
mov word [rsp + rcx + 0xc0], ax
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0x40
jae 0x14006a1c7
jmp 0x14006a1cc
call fcn.140075a04
xor eax, eax
mov rcx, qword [rsp + 0x68]
mov word [rsp + rcx + 0x80], ax
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.SOFTWAREOpenSSH
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006a2c2
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DefaultShell
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14006a2c2
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0xc0]
test eax, eax
je 0x14006a2c2
mov dword [rsp + 0x38], 0x20
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400e4ef8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14006a2c0
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0x40
jae 0x14006a2ac
jmp 0x14006a2b1
call fcn.140075a04
xor eax, eax
mov rcx, qword [rsp + 0x70]
mov word [rsp + rcx + 0x80], ax
jmp 0x14006a315
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14006a2f3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x50], eax
call fcn.1400825b0
mov ecx, dword [rsp + 0x50]
mov dword [rax], ecx
jmp 0x14006a3a8
lea r8, [0x1400e4f30]
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.140084be4
test eax, eax
je 0x14006a315
jmp 0x14006a3a8
lea rcx, [rsp + 0xc0]
call fcn.14005f390
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14006a331
jmp 0x14006a3a8
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x80]
test eax, eax
je 0x14006a362
lea rcx, [rsp + 0x80]
call fcn.14005f390
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14006a362
jmp 0x14006a3a8
mov rcx, qword [rsp + 0x30]
call fcn.14005cd30
mov rcx, qword [rsp + 0x30]
call fcn.14005e8b0
mov rax, qword [rsp + 0x30]
mov qword [0x1400e8778], rax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x40]
mov qword [0x1400e8780], rax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x30], 0
je 0x14006a3ba
mov rcx, qword [rsp + 0x30]
call fcn.140077f70
cmp qword [rsp + 0x40], 0
je 0x14006a3cc
mov rcx, qword [rsp + 0x40]
call fcn.140077f70
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140075860
add rsp, 0x2e8
ret