Function at 0x1400016f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [0x140006018]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140001d4d
test rdx, rdx
je 0x140001d4d
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x104
call fcn.140002cc0
xor edx, edx
lea rcx, [rbp + 0x100]
mov r8d, 0x208
call fcn.140002cc0
xor r13d, r13d
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rsp + 0x70], r13
mov r14d, r13d
mov qword [rsp + 0x78], r13
mov r15d, r13d
mov dword [rbp - 0x7c], r13d
mov r12d, r13d
mov dword [rbp - 0x64], r13d
mov dword [rbp - 0x3c], r13d
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r13
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x48], r13
mov dword [rbp - 0x50], r13d
call fcn.1400013f0
test eax, eax
je 0x140001d4d
mov edx, 0x82
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1400017f6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [r13 + 8]
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001d4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.____GetWindowsDirectoryW_Failed_With_Error:__d__n
jmp 0x140001d0c
mov r9, rbx
lea r8, [rbp - 0x10]
lea rdx, str.___sSystem32_s
lea rcx, [rbp + 0x100]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x100]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140001820
mov rdx, qword [0x140006810]
add ax, ax
mov ecx, dword [0x140006800]
xorps xmm0, xmm0
mov word [rbp - 0x40], ax
add ax, 2
mov word [rbp - 0x3e], ax
lea rax, [rbp + 0x100]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x80], 0x30
mov qword [rbp - 0x78], r13
mov dword [rbp - 0x68], 0x40
movdqu xmmword [rbp - 0x60], xmm0
call fcn.140002cf0
mov dword [rsp + 0x50], r13d
lea r9, [rbp - 0x28]
mov qword [rsp + 0x48], r13
lea r8, [rbp - 0x80]
mov dword [rsp + 0x40], 0x800
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x38], 1
mov edx, 0x120089
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r13
call fcn.140002d12
mov ebx, eax
test eax, eax
js 0x140001ce0
cmp qword [rsp + 0x70], r12
je 0x140001ce0
mov rdx, qword [0x140006828]
mov ecx, dword [0x140006818]
call fcn.140002cf0
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x11000000
xor r8d, r8d
mov edx, 0xf001f
mov dword [rsp + 0x20], 2
call fcn.140002d12
mov esi, eax
test eax, eax
jns 0x14000194c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001bb4
lea rdx, str.____NtCreateSection_Failed_With_Error:_0x_0.8X__n
jmp 0x140001b70
mov rdx, qword [0x140006840]
mov ecx, dword [0x140006830]
call fcn.140002cf0
mov rcx, qword [rsp + 0x78]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x48], 2
lea r8, [rsp + 0x68]
mov dword [rsp + 0x40], r13d
xor r9d, r9d
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
lea rdx, [r9 - 1]
mov qword [rsp + 0x20], r13
call fcn.140002d12
mov esi, eax
test eax, eax
js 0x140001b47
cmp qword [rsp + 0x68], r12
je 0x140001b47
movsxd rdx, dword [rdi + 0x3c]
add rdx, rdi
cmp dword [rdx], 0x4550
jne 0x140001bb4
movzx r10d, word [rdx + 0x14]
mov r8d, r13d
movzx r9d, word [rdx + 6]
add r10, rdx
lea rcx, [r10 + 0x18]
test r9, r9
je 0x140001a26
mov rdx, r13
mov eax, dword [rcx]
or eax, 0x20202020
cmp eax, 0x7865742e
je 0x1400019ff
inc r8d
inc rdx
add rcx, 0x28
cmp rdx, r9
jl 0x1400019e0
jmp 0x140001a26
movsxd rax, r8d
lea rcx, [rax + rax*4]
mov eax, dword [r10 + rcx*8 + 0x24]
add rax, rdi
mov qword [rsp + 0x60], rax
mov r14d, dword [r10 + rcx*8 + 0x24]
mov r15d, dword [r10 + rcx*8 + 0x20]
add r14, qword [rsp + 0x68]
mov qword [rbp - 0x48], r15
cmp qword [rsp + 0x60], r12
je 0x140001bb4
test r14, r14
je 0x140001bb4
cmp qword [rbp - 0x48], r12
je 0x140001bb4
mov rdx, qword [0x1400067c8]
mov ecx, dword [0x1400067b8]
call fcn.140002cf0
lea rax, [rbp - 0x50]
mov r9d, 0x40
lea r8, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffffffffffff
call fcn.140002d12
mov esi, eax
test eax, eax
jns 0x140001ac4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001bb4
mov r8d, 0xe3
mov r9d, esi
lea rdx, str.____NtProtectVirtualMemory___d__Failed_With_Error:_0x_0.8X__n
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x140001b7c
mov rcx, qword [rsp + 0x60]
mov r8, r15
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [0x1400067c8]
mov ecx, dword [0x1400067b8]
call fcn.140002cf0
mov r9d, dword [rbp - 0x50]
lea rax, [rbp - 0x50]
lea r8, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffffffffffff
call fcn.140002d12
mov esi, eax
test eax, eax
jns 0x140001b3f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001bb4
mov r8d, 0xeb
jmp 0x140001aac
mov r12d, 1
jmp 0x140001bb4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001bb4
lea rdx, str.____NtMapViewOfSection_Failed_With_Error:_0x_0.8X__n
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x68], r13
je 0x140001c17
mov rdx, qword [0x140006858]
mov ecx, dword [0x140006848]
call fcn.140002cf0
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffffffffffff
call fcn.140002d12
test eax, eax
jns 0x140001c17
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001d4d
mov r8d, esi
lea rdx, str.____NtUnmapViewOfSection_Failed_With_Error:_0x_0.8X__n
jmp 0x140001d0c
cmp qword [rsp + 0x78], r13
je 0x140001c84
mov rdx, qword [0x140006870]
mov ecx, dword [0x140006860]
call fcn.140002cf0
mov rcx, qword [rsp + 0x78]
call fcn.140002d12
mov ebx, eax
test eax, eax
jns 0x140001c84
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001d4d
mov r8d, 0xfc
mov r9d, ebx
lea rdx, str.____NtClose___d__Failed_With_Error:_0x_0.8X__n
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x140001d15
cmp qword [rsp + 0x70], r13
je 0x140001cdb
mov rdx, qword [0x140006870]
mov ecx, dword [0x140006860]
call fcn.140002cf0
mov rcx, qword [rsp + 0x70]
call fcn.140002d12
mov ebx, eax
test eax, eax
jns 0x140001cdb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001d4d
mov r8d, 0x103
jmp 0x140001c6c
mov eax, r12d
jmp 0x140001d4f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001d4d
mov r8d, ebx
lea rdx, str.____NtCreateFile_Failed_With_Error:_0x_0.8X__n
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.140002d50
mov rbx, qword [rsp + 0x470]
add rsp, 0x420
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret