Function at 0x14000d100
Capabilities:
Get common file path

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x15a0]
mov eax, 0x16a0
call fcn.1401945e0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x16d8], rbx
mov qword [rsp + 0x16e0], rsi
mov qword [rsp + 0x16e8], rdi
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x1590], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor r8d, r8d
lea rdx, str.CheckProcess
lea rcx, [rsp + 0x28]
call fcn.140017fc0
nop
mov r9, rbx
lea r8, str.szProcessName___s
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.140017c80
mov edx, 0x104
lea rcx, [rbp + 0x1170]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14000d1a2
jmp 0x14000d37d
lea r8, [rbp + 0x1170]
lea rdx, str._spsapi.dll
lea rcx, [rbp + 0x1380]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x1380]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r13, rax
test rax, rax
je 0x14000d364
lea rdx, str.EnumProcesses
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.EnumProcessModules
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
lea rdx, str.GetModuleBaseNameW
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rbx, rbx
je 0x14000d362
test r14, r14
je 0x14000d362
test rax, rax
je 0x14000d362
xor edi, edi
mov dword [rsp + 0x20], edi
lea r8, [rsp + 0x20]
mov edx, 0x1000
lea rcx, [rsp + 0x60]
call rbx
mov r12d, dword [rsp + 0x20]
shr r12d, 2
test r12d, r12d
je 0x14000d33e
lea rsi, [rsp + 0x60]
nop dword [rax + rax]
mov r8d, dword [rsi]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000d2ef
xor eax, eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], eax
lea r9, [rsp + 0x38]
lea r8d, [rax + 8]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call r14
test eax, eax
je 0x14000d2e6
xor eax, eax
mov word [rbp + 0xf60], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xf62]
call fcn.140192cb0
mov r9d, 0x208
lea r8, [rbp + 0xf60]
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call r15
mov rdx, qword [rsp + 0x48]
lea rcx, [rbp + 0xf60]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14000d2ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rsi, 4
cmp edi, r12d
jae 0x14000d33e
jmp 0x14000d260
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x28]
call fcn.140017c80
nop
lea rcx, [rsp + 0x28]
call fcn.140018150
mov eax, 1
jmp 0x14000d389
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x28]
call fcn.140017c80
nop
jmp 0x14000d37d
jmp 0x14000d37d
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x28]
call fcn.140017c80
nop
lea rcx, [rsp + 0x28]
call fcn.140018150
xor eax, eax
mov rcx, qword [rbp + 0x1590]
xor rcx, rsp
call fcn.1401945b0
lea r11, [rsp + 0x16a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret