Function at 0x140015abc
Capabilities:
Get common file path
Read file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1430]
mov eax, 0x1530
call fcn.14001c750
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1568], rbx
mov qword [rsp + 0x1570], rsi
mov qword [rsp + 0x1578], rdi
mov rax, qword [0x14002a288]
xor rax, rsp
mov qword [rbp + 0x1420], rax
mov r12, rcx
xor r13d, r13d
mov dword [rsp + 0x44], r13d
mov qword [rsp + 0x50], r13
lea rax, [rsp + 0x50]
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x178], r13
mov byte [rbp + 0x180], 1
lea rcx, [rbp + 0x178]
call fcn.140014f3c
mov edi, eax
cmp byte [rbp + 0x180], r13b
je 0x140015b85
mov r15, qword [rbp + 0x178]
mov rsi, qword [rbp + 0x170]
mov r14, qword [rsi]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140015b82
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov qword [rsi], r15
test edi, edi
jns 0x140015ba9
mov rcx, qword [rbp + 0x1458]
mov r9d, edi
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov edx, 0x158
call fcn.140002c38
jmp 0x1400160cc
mov qword [rsp + 0x48], r13
lea rax, [rsp + 0x48]
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x178], r13
mov byte [rbp + 0x180], 1
lea r9, [rbp + 0x178]
mov r8, qword [rsp + 0x50]
xor edx, edx
lea rcx, [0x140021548]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov edi, eax
cmp byte [rbp + 0x180], r13b
je 0x140015c20
mov r15, qword [rbp + 0x178]
mov rsi, qword [rbp + 0x170]
mov r14, qword [rsi]
test r14, r14
je 0x140015c1d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov qword [rsi], r15
test edi, edi
jns 0x140015c44
mov rcx, qword [rbp + 0x1458]
mov r9d, edi
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov edx, 0x15c
call fcn.140002c38
jmp 0x1400160bb
mov r9, qword [rsp + 0x48]
lea r8, str._s.ssh_authorized_keys
mov edx, 0x104
lea rcx, [rbp + 0x210]
call qword [sym.imp.msvcrt.dll_swprintf_s]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, [rbp + 0x210]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x68], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x140015cc2
mov rcx, qword [rbp + 0x1458]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov edx, 0x16c
call fcn.140002c6c
mov edi, eax
jmp 0x1400160a7
lea rax, [0x140022950]
mov qword [rsp + 0x70], rax
lea rax, [0x140022948]
mov qword [rbp - 0x80], rax
lea rax, [0x14001f780]
mov qword [rbp + 8], rax
mov edi, 1
mov dword [rsp + 0x44], edi
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x70]
call fcn.140016a48
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [0x14001f768]
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rax, [rbp - 0x78]
mov qword [rsp + 0x58], rax
lea rcx, [rbp - 0x78]
call fcn.140016c70
nop
lea rax, [0x14001f6f0]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x10], r13
mov dword [rbp - 8], r13d
mov esi, 0x1000
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x420]
call sub.msvcrt.dll_memset
jmp 0x140015d79
cmp dword [rsp + 0x40], r13d
je 0x140015d9a
lea rdx, [rbp + 0x420]
lea rcx, [rbp - 0x80]
call fcn.140016d1c
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, esi
lea rdx, [rbp + 0x420]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x140015d62
mov r15d, 0xf
mov qword [rbp + 0x188], r15
mov qword [rbp + 0x180], r13
mov byte [rbp + 0x170], r13b
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
mov dl, 0xa
call fcn.14001802c
mov r8b, al
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x70]
call fcn.1400171a4
lea r14, [0x14001f798]
jmp 0x14001605a
mov esi, edi
lea rax, [0x140022950]
mov qword [rbp + 0x70], rax
lea rax, [0x140022948]
mov qword [rbp + 0x80], rax
lea rax, [0x14001f780]
mov qword [rbp + 0x108], rax
or edi, 2
mov dword [rsp + 0x44], edi
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x70]
call fcn.140016a48
nop
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [0x14001f768]
mov qword [rbp + rcx + 0x70], rax
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x6c], edx
lea rax, [rbp + 0x88]
mov qword [rsp + 0x58], rax
lea rcx, [rbp + 0x88]
call fcn.140016c70
nop
lea rax, [0x14001f6f0]
mov qword [rbp + 0x88], rax
lea rdx, [rbp + 0x170]
cmp qword [rbp + 0x188], 0x10
cmovae rdx, qword [rbp + 0x170]
mov qword [rbp + 0xf0], r13
mov dword [rbp + 0xf8], r13d
mov r8, qword [rbp + 0x180]
test r8, r8
je 0x140015eb9
lea rcx, [rbp + 0x88]
call fcn.140016b90
nop
mov qword [rbp + 0x1c8], r15
mov qword [rbp + 0x1c0], r13
mov byte [rbp + 0x1b0], r13b
mov qword [rbp + 0x1a8], r15
mov qword [rbp + 0x1a0], r13
mov byte [rbp + 0x190], r13b
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0x70]
call fcn.140016f78
lea rdx, [rbp + 0x190]
mov rcx, rax
call fcn.140016f78
mov qword [rbp + 0x1e8], r15
mov qword [rbp + 0x1e0], r13
mov byte [rbp + 0x1d0], r13b
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0x1d0]
call fcn.14000490c
nop
mov qword [rbp + 0x208], r15
mov qword [rbp + 0x200], r13
mov byte [rbp + 0x1f0], r13b
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x1f0]
call fcn.14000490c
nop
mov edi, esi
or edi, 6
mov rsi, qword [r12]
lea r9, [rbp + 0x1d0]
mov r8, qword [rsi + 8]
mov rdx, rsi
call fcn.140017390
mov rdx, qword [r12 + 8]
movabs rcx, 0x333333333333332
sub rcx, rdx
cmp rcx, 1
jb 0x140016113
lea rcx, [rdx + 1]
mov qword [r12 + 8], rcx
mov qword [rsi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
cmp qword [rbp + 0x208], 0x10
jb 0x140015fc7
mov rcx, qword [rbp + 0x1f0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp qword [rbp + 0x1e8], 0x10
jb 0x140015fdf
mov rcx, qword [rbp + 0x1d0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
cmp qword [rbp + 0x1a8], 0x10
jb 0x140015ff7
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
cmp qword [rbp + 0x1c8], 0x10
jb 0x14001600f
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
lea rcx, [rbp + 0x108]
call fcn.14001615c
mov qword [rbp + 0x108], r14
lea rcx, [rbp + 0x108]
call fcn.14001b6e8
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
mov dl, 0xa
call fcn.14001802c
mov r8b, al
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x70]
call fcn.1400171a4
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
add rdx, rax
test byte [rdx + 0x10], 6
cmovne rdx, r13
test rdx, rdx
jne 0x140015ded
mov edi, r13d
cmp qword [rbp + 0x188], 0x10
jb 0x140016090
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
lea rcx, [rbp + 8]
call fcn.14001615c
mov qword [rbp + 8], r14
lea rcx, [rbp + 8]
call fcn.14001b6e8
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400160bb
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400160cc
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop
mov rcx, qword [rsp + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400160e1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x1420]
xor rcx, rsp
call fcn.14001ae30
lea r11, [rsp + 0x1530]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, str.list_T__too_long
call fcn.14001aa30
int3