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

Disassembly:
sub rsp, 0x2e8
mov rax, qword [0x1400e6480]
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.1400826c8
mov dword [rax], 0
cmp qword [0x1400e8778], 0
je 0x14006a370
xor eax, eax
jmp 0x14006a5c0
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0x208
jae 0x14006a38b
jmp 0x14006a390
call fcn.140075a94
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 0x14006a3b7
jmp 0x14006a3bc
call fcn.140075a94
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 0x14006a4b2
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 0x14006a4b2
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0xc0]
test eax, eax
je 0x14006a4b2
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, [0x1400e4f08]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14006a4b0
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0x40
jae 0x14006a49c
jmp 0x14006a4a1
call fcn.140075a94
xor eax, eax
mov rcx, qword [rsp + 0x70]
mov word [rsp + rcx + 0x80], ax
jmp 0x14006a505
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 0x14006a4e3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x50], eax
call fcn.1400826c8
mov ecx, dword [rsp + 0x50]
mov dword [rax], ecx
jmp 0x14006a598
lea r8, [0x1400e4f40]
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.140084d04
test eax, eax
je 0x14006a505
jmp 0x14006a598
lea rcx, [rsp + 0xc0]
call fcn.14005f430
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14006a521
jmp 0x14006a598
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x80]
test eax, eax
je 0x14006a552
lea rcx, [rsp + 0x80]
call fcn.14005f430
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14006a552
jmp 0x14006a598
mov rcx, qword [rsp + 0x30]
call fcn.14005cd40
mov rcx, qword [rsp + 0x30]
call fcn.14005e950
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 0x14006a5aa
mov rcx, qword [rsp + 0x30]
call fcn.140078000
cmp qword [rsp + 0x40], 0
je 0x14006a5bc
mov rcx, qword [rsp + 0x40]
call fcn.140078000
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400758f0
add rsp, 0x2e8
ret