Function at 0x14000ae40
Capabilities:
Get common file path

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x2e8
mov dword [rsp + 0x34], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov ecx, 0x3f
mov rax, qword [rsp + 0x2f8]
mov word [rax], cx
xor ecx, ecx
mov rax, qword [rsp + 0x2f8]
mov word [rax + 2], cx
cmp dword [rsp + 0x2f0], 0
je 0x14000b331
movzx eax, byte [0x140051c90]
test eax, eax
jne 0x14000aebf
xor edx, edx
lea rcx, [0x14003ff48]
call fcn.14000d560
mov qword [0x140051c88], rax
mov byte [0x140051c90], 1
cmp qword [0x140051c88], 0
je 0x14000af46
mov r8d, dword [rsp + 0x2f0]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000af05
mov r8d, dword [rsp + 0x2f0]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14000af41
mov eax, dword [rsp + 0x300]
mov dword [rsp + 0x40], eax
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x2f8]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [0x140051c88]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000b331
mov r8d, dword [rsp + 0x2f0]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14000b331
mov rcx, qword [rsp + 0x48]
call fcn.140008180
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000b326
mov byte [rsp + 0x5c], 0
xor eax, eax
mov word [rsp + 0x58], ax
mov rdx, qword [rsp + 0x50]
add rdx, 0x20
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000b151
cmp qword [rsp + 0x80], 8
jne 0x14000b151
cmp qword [rsp + 0x68], 0
je 0x14000b151
mov rdx, qword [rsp + 0x68]
add rdx, 8
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000b151
cmp qword [rsp + 0x80], 4
jne 0x14000b151
mov rdx, qword [rsp + 0x68]
add rdx, 0x60
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000b151
cmp qword [rsp + 0x80], 0x10
jne 0x14000b151
movzx eax, word [rsp + 0x70]
test eax, eax
je 0x14000b151
cmp qword [rsp + 0x78], 0
je 0x14000b151
movzx ecx, word [rsp + 0x70]
mov eax, dword [rsp + 0x300]
add eax, eax
cmp ecx, eax
jb 0x14000b0c8
movzx eax, word [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
add rdx, rax
mov eax, dword [rsp + 0x300]
lea eax, [rax + rax - 2]
mov ecx, eax
mov rax, rdx
sub rax, rcx
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x300]
lea eax, [rax + rax - 2]
mov word [rsp + 0x70], ax
mov eax, dword [rsp + 0x60]
and eax, 1
test eax, eax
jne 0x14000b0e5
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x78]
add rax, rcx
mov qword [rsp + 0x78], rax
movzx r9d, word [rsp + 0x70]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x2f8]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000b130
movzx eax, word [rsp + 0x70]
cmp qword [rsp + 0x80], rax
jne 0x14000b130
mov dword [rsp + 0x2d8], 1
jmp 0x14000b13b
mov dword [rsp + 0x2d8], 0
movzx eax, byte [rsp + 0x2d8]
mov byte [rsp + 0x5c], al
movzx eax, word [rsp + 0x70]
mov word [rsp + 0x58], ax
movzx eax, byte [rsp + 0x5c]
test eax, eax
je 0x14000b326
movzx eax, word [rsp + 0x58]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
xor ecx, ecx
mov rax, qword [rsp + 0x2f8]
mov word [rax + rdx*2], cx
mov rax, qword [rsp + 0x2f8]
movzx eax, word [rax + 8]
mov word [rsp + 0x88], ax
xor ecx, ecx
mov rax, qword [rsp + 0x2f8]
mov word [rax + 8], cx
mov rdx, qword [rsp + 0x2f8]
lea rcx, [0x14003ffe8]
call fcn.14002b970
mov dword [rsp + 0x8c], eax
mov rcx, qword [rsp + 0x2f8]
movzx eax, word [rsp + 0x88]
mov word [rcx + 8], ax
cmp dword [rsp + 0x8c], 0
jne 0x14000b1fd
movzx eax, word [rsp + 0x58]
sub eax, 6
movsxd r8, eax
mov rdx, qword [rsp + 0x2f8]
add rdx, 8
mov rcx, qword [rsp + 0x2f8]
call fcn.14003d1f0
jmp 0x14000b31e
mov rax, qword [rsp + 0x2f8]
movzx eax, word [rax + 0x18]
mov word [rsp + 0x88], ax
xor ecx, ecx
mov rax, qword [rsp + 0x2f8]
mov word [rax + 0x18], cx
mov rdx, qword [rsp + 0x2f8]
lea rcx, str.SystemRoot_
call fcn.14002b970
mov dword [rsp + 0x8c], eax
mov rcx, qword [rsp + 0x2f8]
movzx eax, word [rsp + 0x88]
mov word [rcx + 0x18], ax
cmp dword [rsp + 0x8c], 0
jne 0x14000b31e
mov edx, 0x104
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [rsp + 0x2a0], eax
movzx eax, word [rsp + 0x58]
xor edx, edx
mov ecx, 2
div ecx
mov ecx, eax
mov eax, dword [rsp + 0x2a0]
lea eax, [rcx + rax - 0xa]
cmp eax, dword [rsp + 0x300]
jb 0x14000b2cd
mov eax, dword [rsp + 0x300]
add eax, 0xa
sub eax, dword [rsp + 0x2a0]
shl eax, 1
mov word [rsp + 0x58], ax
movzx eax, word [rsp + 0x58]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
xor ecx, ecx
mov rax, qword [rsp + 0x2f8]
mov word [rax + rdx*2], cx
movzx eax, word [rsp + 0x58]
sub eax, 0x14
movsxd r8, eax
mov rdx, qword [rsp + 0x2f8]
add rdx, 0x16
movsxd rcx, dword [rsp + 0x2a0]
mov rax, qword [rsp + 0x2f8]
lea rcx, [rax + rcx*2]
call fcn.14003d1f0
mov eax, dword [rsp + 0x2a0]
shl eax, 1
movsxd r8, eax
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x2f8]
call fcn.14003d1f0
mov dword [rsp + 0x34], 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x34], 0
jne 0x14000b53e
movzx eax, byte [rsp + 0x308]
test eax, eax
je 0x14000b53e
xor edx, edx
lea rcx, [0x14003ff28]
call fcn.14000d610
mov qword [rsp + 0x2b8], rax
mov dword [rsp + 0x2b0], 0
lea r9, [rsp + 0x2b0]
xor r8d, r8d
xor edx, edx
mov ecx, 5
call qword [rsp + 0x2b8]
mov qword [rsp + 0x2a8], 0
cmp dword [rsp + 0x2b0], 0
jne 0x14000b422
mov dword [rsp + 0x2b0], 0x10000
mov eax, dword [rsp + 0x2b0]
shl eax, 1
mov dword [rsp + 0x2b0], eax
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rsp + 0x2b0]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x2a8], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x2b0]
mov rdx, qword [rsp + 0x2a8]
mov ecx, 5
call qword [rsp + 0x2b8]
mov dword [rsp + 0x2c0], eax
cmp dword [rsp + 0x2c0], 0
je 0x14000b420
cmp dword [rsp + 0x2b0], 0x400000
jne 0x14000b3ab
jmp 0x14000b472
mov eax, dword [rsp + 0x2b0]
shl eax, 1
mov dword [rsp + 0x2b0], eax
mov edx, dword [rsp + 0x2b0]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x2a8], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x2b0]
mov rdx, qword [rsp + 0x2a8]
mov ecx, 5
call qword [rsp + 0x2b8]
mov dword [rsp + 0x2c0], eax
cmp dword [rsp + 0x2c0], 0
jne 0x14000b52e
mov rax, qword [rsp + 0x2a8]
mov qword [rsp + 0x2c8], rax
xor eax, eax
cmp eax, 1
je 0x14000b52e
mov rcx, qword [rsp + 0x2c8]
mov eax, dword [rsp + 0x2f0]
cmp dword [rcx + 0x50], eax
jne 0x14000b4fd
mov rax, qword [rsp + 0x2c8]
cmp qword [rax + 0x40], 0
je 0x14000b4e0
mov edx, dword [rsp + 0x300]
mov r8, qword [rsp + 0x2c8]
mov r8, qword [r8 + 0x40]
mov rcx, qword [rsp + 0x2f8]
call fcn.14002b82c
jmp 0x14000b4fb
mov edx, dword [rsp + 0x300]
lea r8, str._System_Process_
mov rcx, qword [rsp + 0x2f8]
call fcn.14002b82c
jmp 0x14000b52e
mov rax, qword [rsp + 0x2c8]
cmp dword [rax], 0
jne 0x14000b50c
jmp 0x14000b52e
mov rax, qword [rsp + 0x2c8]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x2c8]
add rax, rcx
mov qword [rsp + 0x2c8], rax
jmp 0x14000b490
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000b53e
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x34]
add rsp, 0x2e8
ret