Function at 0x14012ea10
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3f8]
sub rsp, 0x4f0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14027f238]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
lea rsi, [0x14028ca40]
xor edi, edi
movzx eax, byte [0x14028a895]
test al, al
jne 0x14012ec64
mov ebx, dword [0x14028a89c]
xor ecx, ecx
call fcn.1401b48a4
sub eax, 0x1e
cmp ebx, eax
jge 0x14012ec64
call fcn.14012f760
mov rbx, rax
mov rcx, rsi
call fcn.140166958
test eax, eax
je 0x14012ea93
mov ecx, eax
call fcn.1401664c4
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14012eaa3
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov rcx, rsi
call fcn.14016697c
test eax, eax
je 0x14012eab7
mov ecx, eax
call fcn.1401664c4
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.1401a85d0
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x14012eaf0
lea r8, str.C:Windows
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.1401b9d1c
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
cmp word [rbp - 0x40], 0
jne 0x14012eb0f
mov r8, rdi
jmp 0x14012eb2b
lea rax, [rbp - 0x40]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14012eb20
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.1400be520
nop
lea r8, str.System32cmd.exe
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.1400c5940
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x14012eb6d
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.1400be810
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
mov r8d, 0x104
lea rdx, [rbp + 0x1d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x60], di
cmp word [rbp + 0x1d0], 0
jne 0x14012ebb7
mov r8, rdi
jmp 0x14012ebcd
lea rax, [rbp + 0x1d0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14012ebc2
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x60]
call fcn.1400be520
nop
lea r8, [rsp + 0x60]
lea rdx, str._c__timeout_5__del
lea rcx, [rbp - 0x80]
call fcn.1400c58d0
nop
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.14013c300
nop
mov r8, qword [rbp - 0x68]
cmp r8, 8
jb 0x14012ec1c
inc r8
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.1400be810
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rdi
mov word [rbp - 0x80], di
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x14012ec4a
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.1400be810
nop
mov r8, qword [rbp - 0x48]
cmp r8, 8
jb 0x14012ec64
inc r8
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.1400be810
mov qword [rsp + 0x30], rsi
mov rcx, rsi
call fcn.140166958
test eax, eax
je 0x14012ec7c
mov ecx, eax
call fcn.1401664c4
mov byte [rsp + 0x38], 1
mov rbx, qword [0x14028c8c0]
test rbx, rbx
jne 0x14012ecac
lea ecx, [rbx + 0x30]
call fcn.140165194
mov qword [rsp + 0x28], rax
mov rcx, rax
call fcn.14012f560
mov rbx, rax
mov qword [0x14028c8c0], rax
mov rcx, rsi
call fcn.14016697c
test eax, eax
je 0x14012ecc0
mov ecx, eax
call fcn.1401664c4
nop
mov rcx, rsi
call fcn.140166958
test eax, eax
je 0x14012ecd3
mov ecx, eax
call fcn.1401664c4
mov rbx, qword [rbx + 0x28]
mov rcx, rsi
call fcn.14016697c
test eax, eax
je 0x14012eceb
mov ecx, eax
call fcn.1401664c4
nop
mov edx, 0x3e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14012ea51
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140164ec0
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret