Function at 0x14000ae10
Capabilities:
Get common file path

Disassembly:
jmp 0x14000ae10
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x5e8
lea rdi, [rsp + 0x60]
mov ecx, 0x162
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x600]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x5d0], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x1b8
rep stosb byte [rdi], al
lea rax, [rsp + 0x248]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x610]
lea rcx, [rsp + 0x248]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x280]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x280]
mov rcx, qword [rsp + 0x610]
call fcn.14000168b
nop
mov edx, 0x104
lea rcx, [rsp + 0x280]
call qword [sym.imp.ucrtbased.dll_wcsnlen]
test rax, rax
jne 0x14000aeea
lea rdx, [rsp + 0x280]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop
lea rax, [rsp + 0x4a8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x4a8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x4d8]
lea rcx, str.C:WindowsSystem32
mov rdi, rax
mov rsi, rcx
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x518]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rsp + 0x4d8]
lea rcx, [rsp + 0x518]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x548]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, str.Test
mov qword [rsp + 0x568], rax
mov rdx, qword [rsp + 0x568]
lea rcx, [rsp + 0x548]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r8d, 1
xor edx, edx
lea rcx, [rsp + 0x578]
call sub.USERENV.dll_CreateEnvironmentBlock
mov qword [rsp + 0x588], 0
call fcn.1400015fa
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x590], rax
cmp qword [rsp + 0x590], 0
je 0x14000aff9
mov rax, qword [rsp + 0x590]
cmp qword [rax + 0x20], 0
je 0x14000aff9
mov rax, qword [rsp + 0x590]
mov rax, qword [rax + 0x20]
add rax, 0xc0
mov qword [rsp + 0x588], rax
mov qword [rsp + 0x5a8], 0
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x588]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x578]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x248]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
lea r8, [rsp + 0x518]
lea rdx, [rsp + 0x248]
lea rcx, [rsp + 0x5a8]
call qword [0x14001c4c8]
mov dword [rsp + 0x5b4], eax
cmp dword [rsp + 0x5b4], 0
je 0x14000b0b4
lea rdx, [0x140017e65]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010af
lea rdx, [0x140001037]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x14000b218
mov r8d, 4
mov rdx, qword [rsp + 0x5a8]
mov rcx, qword [rsp + 0x600]
call fcn.140001195
mov qword [rsp + 0x5b8], rax
cmp qword [rsp + 0x5b8], 0
jne 0x14000b12b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x5c8], eax
lea rdx, [0x140017e66]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010af
mov ecx, dword [rsp + 0x5c8]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140001037]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x14000b218
lea rdx, [0x140017e67]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010af
lea rdx, [0x140001037]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rax, qword [rsp + 0x608]
mov r8, qword [rax + 8]
mov rdx, qword [rsp + 0x600]
mov rcx, qword [rsp + 0x5b8]
call fcn.14000129e
movzx eax, al
test eax, eax
jne 0x14000b1bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x5cc], eax
lea rdx, [0x140017e79]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010af
mov ecx, dword [rsp + 0x5cc]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140001037]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x14000b218
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x608]
mov rcx, qword [rsp + 0x600]
call fcn.14000156e
movzx eax, al
test eax, eax
jne 0x14000b1e2
xor al, al
jmp 0x14000b218
lea rdx, [0x140017e7a]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010af
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
lea rdx, [0x140001037]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400183a0]
call fcn.1400015cd
mov rax, rdi
mov rcx, qword [rsp + 0x5d0]
xor rcx, rsp
call fcn.14000136b
add rsp, 0x5e8
pop rdi
pop rsi
ret