Function at 0x1400160ff
Capabilities:
Get common file path

Disassembly:
jmp 0x140035260
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x2f8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x82
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x318]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x2b8], rax
lea rcx, [0x14007fb67]
call fcn.140016b68
mov dword [rbp + 0x44], 0
call fcn.140016640
mov rax, qword [rax + 0x30]
mov qword [rbp + 0x88], rax
cmp dword [rbp + 0x2f0], 0x104
jbe 0x1400352e0
xor eax, eax
jmp 0x14003556e
mov rcx, 0xffffffffffffffff
call fcn.1400165c3
mov byte [rbp + 4], al
mov edx, 0x114
lea rcx, [rbp + 0xd0]
call fcn.140016825
mov dword [rbp + 0xd0], 0x114
lea rcx, [rbp + 0xd0]
call qword [sym.imp.ntdll.dll_RtlGetVersion]
mov eax, dword [rbp + 0xdc]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0x1db0
jae 0x140035330
xor eax, eax
jmp 0x14003556e
mov r8d, 0xca8
mov edx, 8
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14003535a
xor eax, eax
jmp 0x14003556e
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 2
call qword [sym.imp.ntdll.dll_RtlCreateHeap]
mov rcx, qword [rbp + 0x68]
mov qword [rcx + 0x18], rax
mov rax, qword [rbp + 0x68]
cmp qword [rax + 0x18], 0
jne 0x1400353ac
mov r8, qword [rbp + 0x68]
xor edx, edx
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0x14003556e
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.ntdll.dll_RtlSetHeapInformation]
mov rax, qword [rbp + 0x68]
mov dword [rax + 0xc], 1
mov rax, qword [rbp + 0x68]
mov ecx, dword [rbp + 0x44]
mov dword [rax + 8], ecx
mov eax, 0x330
add rax, 0x7ffe0000
mov eax, dword [rax]
mov dword [rbp + 0x24], eax
lea rcx, [rbp + 0x24]
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov rcx, qword [rbp + 0x68]
mov dword [rcx + 4], eax
mov rax, qword [rbp + 0x68]
movzx ecx, byte [rbp + 4]
mov byte [rax], cl
cmp dword [rbp + 0x2f0], 0
je 0x140035440
mov eax, dword [rbp + 0x2f0]
mov rcx, qword [rbp + 0x68]
add rcx, 0x890
mov r9d, eax
mov r8, qword [rbp + 0x2e8]
mov edx, 0x104
call fcn.1400165af
mov rax, qword [rbp + 0x68]
mov ecx, dword [rbp + 0x2f0]
mov dword [rax + 0x14], ecx
cmp dword [rbp + 0x44], 0x3a95
jbe 0x140035456
mov rax, qword [rbp + 0x68]
mov dword [rax + 0x10], 0x10800010
jmp 0x140035461
mov rax, qword [rbp + 0x68]
mov dword [rax + 0x10], 0x10840014
mov rcx, qword [rbp + 0x68]
call fcn.1400165be
test eax, eax
jne 0x140035496
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.ntdll.dll_RtlDestroyHeap]
mov r8, qword [rbp + 0x68]
xor edx, edx
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0x14003556e
mov rax, qword [rbp + 0x68]
add rax, 0x47c
mov r8d, 0x104
mov rdx, rax
lea rcx, str._temp__
call fcn.140016802
mov rax, qword [rbp + 0x68]
add rax, 0x686
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x104
jae 0x1400354e6
mov rax, qword [rbp + 0x68]
add rax, 0x686
mov rcx, rax
call fcn.140016122
mov rax, qword [rbp + 0x68]
add rax, 0x272
mov rcx, qword [rbp + 0x68]
add rcx, 0xa9a
mov rdx, rax
call fcn.1400161f9
mov rax, qword [rbp + 0x68]
add rax, 0xa9a
lea rdx, str.cmd.exe
mov rcx, rax
call fcn.140016af0
mov rcx, qword [rbp + 0x2f8]
call fcn.1400166d6
mov rcx, qword [rbp + 0x68]
mov qword [rcx + 0x20], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x14003556a
lea rdx, str.swprintf_s
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x68]
mov qword [rcx + 0x28], rax
mov rax, qword [rbp + 0x68]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x2b8]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x2c8]
pop rdi
pop rbp
ret