Function at 0x1400128a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xe50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe40], rax
mov rdi, r8
mov r14d, edx
mov rbx, rcx
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x140]
mov rbp, r9
call fcn.140017670
lea r15, [0x140048430]
mov ecx, 0x80
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, 0x200
mov rcx, r15
call fcn.14001ac44
cmp word [r15 + rax*2 - 2], 0x5c
jne 0x140012919
cmp word [r15 + rax*2], 0
je 0x14001292d
lea r8, [0x14002eb08]
mov edx, 0x200
mov rcx, r15
call fcn.14001dec4
mov r9, rdi
lea rdx, str._s_s
mov r8, r15
mov rcx, rbx
call sym.Prounstl.exe_public:_int___cdecl_CNcsString::FormatString_wchar_t_const____ptr64____ptr64
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x400
call fcn.140017670
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x140012964
mov r8, qword [rbx]
mov edx, 0x200
lea rcx, [rsp + 0x240]
call fcn.14001df44
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x240]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140012a17
mov rdx, r15
mov ecx, 0x80
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, 0x200
mov rcx, r15
call fcn.14001ac44
cmp word [r15 + rax*2 - 2], 0x5c
jne 0x1400129de
cmp word [r15 + rax*2], 0
je 0x1400129f2
lea r8, [0x14002eb08]
mov edx, 0x200
mov rcx, r15
call fcn.14001dec4
mov r9, rdi
lea rdx, str._s_s
mov r8, r15
mov rcx, rbx
call sym.Prounstl.exe_public:_int___cdecl_CNcsString::FormatString_wchar_t_const____ptr64____ptr64
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140012c2c
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x100
call fcn.140017670
mov edx, 0x80
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x140012c2a
lea r8, [rsp + 0x40]
mov edx, 0x80
lea rcx, [rsp + 0x140]
call fcn.14001df44
lea r8, str.Inf
mov edx, 0x80
lea rcx, [rsp + 0x140]
call fcn.14001dec4
lea r8, str._system32
mov edx, 0x80
lea rcx, [rsp + 0x40]
call fcn.14001dec4
mov edx, 0x80
lea rcx, [rsp + 0x40]
call fcn.14001ac44
mov rsi, rax
test rdi, rdi
jne 0x140012aa2
xor eax, eax
jmp 0x140012aad
mov rdx, rbp
mov rcx, rdi
call fcn.14001ac44
lea rdx, [rax + rsi]
lea ecx, [r14 - 1]
cmp rdx, rcx
ja 0x140012c2a
lfence
mov r9, rdi
lea r8, [rsp + 0x40]
lea rdx, [0x1400318f0]
mov rcx, rbx
call sym.Prounstl.exe_public:_int___cdecl_CNcsString::FormatString_wchar_t_const____ptr64____ptr64
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x140012ae5
mov r8, qword [rbx]
mov edx, 0x200
lea rcx, [rsp + 0x240]
call fcn.14001df44
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x240]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140012c53
lfence
mov r9, rdi
lea r8, [rsp + 0x140]
lea rdx, [0x1400318f0]
mov rcx, rbx
call sym.Prounstl.exe_public:_int___cdecl_CNcsString::FormatString_wchar_t_const____ptr64____ptr64
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x140012b5e
mov r8, qword [rbx]
mov edx, 0x200
lea rcx, [rsp + 0x240]
call fcn.14001df44
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x240]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140012c53
cmp byte [0x140048429], 0
jne 0x140012c2a
mov rcx, qword [0x140048830]
lea r8, [rsp + 0xa40]
mov r9d, 0x200
mov edx, 0x9a
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x140012c2a
mov rcx, qword [0x140048830]
lea r8, [rsp + 0x640]
mov r9d, 0x200
mov edx, 0x9b
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x140012c2a
lea rax, [rsp + 0x640]
mov rcx, rbx
lea r9, [rsp + 0x240]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0xa40]
lea rdx, str._s__s._n_s
call sym.Prounstl.exe_public:_int___cdecl_CNcsString::FormatString_wchar_t_const____ptr64____ptr64
xor al, al
mov rcx, qword [rsp + 0xe40]
xor rcx, rsp
call fcn.140015690
mov rbx, qword [rsp + 0xe88]
add rsp, 0xe50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140012c2c