Function at 0x14012e790
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3e8]
sub rsp, 0x4e0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
xor edi, edi
nop word [rax + rax]
movzx eax, byte [0x1402898a5]
test al, al
jne 0x14012e9e9
mov ebx, dword [0x1402898ac]
xor ecx, ecx
call fcn.1401b2734
sub eax, 0x1e
cmp ebx, eax
jge 0x14012e9e9
call fcn.14012f1e0
mov rbx, rax
lea rcx, [0x14028ba50]
call fcn.140166188
test eax, eax
je 0x14012e816
mov ecx, eax
call fcn.140165cf4
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14012e826
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
lea rcx, [0x14028ba50]
call fcn.1401661ac
test eax, eax
je 0x14012e83e
mov ecx, eax
call fcn.140165cf4
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.1401a7d70
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x14012e877
lea r8, str.C:Windows
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.1401b7c3c
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
cmp word [rbp - 0x50], 0
jne 0x14012e896
mov r8, rdi
jmp 0x14012e8ab
lea rax, [rbp - 0x50]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14012e8a0
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x28]
call fcn.1400be520
nop
lea r8, str.System32cmd.exe
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x78]
call fcn.1400c5940
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x14012e8ed
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1400be810
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
mov r8d, 0x104
lea rdx, [rbp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
cmp word [rbp + 0x1c0], 0
jne 0x14012e937
mov r8, rdi
jmp 0x14012e94d
lea rax, [rbp + 0x1c0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14012e942
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x48]
call fcn.1400be520
nop
lea r8, [rsp + 0x48]
lea rdx, str._c__timeout_5__del
lea rcx, [rsp + 0x68]
call fcn.1400c58d0
nop
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14013bb20
nop
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x14012e99f
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.1400be810
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14012e9cf
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.1400be810
nop
mov r8, qword [rbp - 0x60]
cmp r8, 8
jb 0x14012e9e9
inc r8
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.1400be810
call fcn.14012f1e0
mov rbx, rax
lea rcx, [0x14028ba50]
call fcn.140166188
test eax, eax
je 0x14012ea08
mov ecx, eax
call fcn.140165cf4
mov rbx, qword [rbx + 8]
lea rcx, [0x14028ba50]
call fcn.1401661ac
test eax, eax
je 0x14012ea24
mov ecx, eax
call fcn.140165cf4
nop
mov edx, 0x3e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14012e7d0
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.1401646e0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret