Function at 0x1400150fa
Capabilities:
Get common file path

Disassembly:
jmp 0x140032610
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 [0x140070328]
xor rax, rbp
mov qword [rbp + 0x2b8], rax
lea rcx, [0x140079a23]
call fcn.140015b09
mov dword [rbp + 0x44], 0
call fcn.140015609
mov rax, qword [rax + 0x30]
mov qword [rbp + 0x88], rax
cmp dword [rbp + 0x2f0], 0x104
jbe 0x140032690
xor eax, eax
jmp 0x14003291e
mov rcx, 0xffffffffffffffff
call fcn.14001558c
mov byte [rbp + 4], al
mov edx, 0x114
lea rcx, [rbp + 0xd0]
call fcn.1400157e4
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 0x1400326e0
xor eax, eax
jmp 0x14003291e
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 0x14003270a
xor eax, eax
jmp 0x14003291e
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 0x14003275c
mov r8, qword [rbp + 0x68]
xor edx, edx
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0x14003291e
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 0x1400327f0
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.140015578
mov rax, qword [rbp + 0x68]
mov ecx, dword [rbp + 0x2f0]
mov dword [rax + 0x14], ecx
cmp dword [rbp + 0x44], 0x3a95
jbe 0x140032806
mov rax, qword [rbp + 0x68]
mov dword [rax + 0x10], 0x10800010
jmp 0x140032811
mov rax, qword [rbp + 0x68]
mov dword [rax + 0x10], 0x10840014
mov rcx, qword [rbp + 0x68]
call fcn.140015587
test eax, eax
jne 0x140032846
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 0x14003291e
mov rax, qword [rbp + 0x68]
add rax, 0x47c
mov r8d, 0x104
mov rdx, rax
lea rcx, str._temp__
call fcn.1400157c1
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 0x140032896
mov rax, qword [rbp + 0x68]
add rax, 0x686
mov rcx, rax
call fcn.14001511d
mov rax, qword [rbp + 0x68]
add rax, 0x272
mov rcx, qword [rbp + 0x68]
add rcx, 0xa9a
mov rdx, rax
call fcn.1400151ea
mov rax, qword [rbp + 0x68]
add rax, 0xa9a
lea rdx, str.cmd.exe
mov rcx, rax
call fcn.140015a96
mov rcx, qword [rbp + 0x2f8]
call fcn.14001569a
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 0x14003291a
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.14001595b
mov rax, rdi
mov rcx, qword [rbp + 0x2b8]
xor rcx, rbp
call fcn.140015582
lea rsp, [rbp + 0x2c8]
pop rdi
pop rbp
ret