Function at 0x14004c930
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1400ce2e8]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov r14, rdx
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea rax, [0x1400a02b8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r15
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14007bf7b.0]
mov r8d, eax
lea edx, [r15 + 1]
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14004c9d1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
jmp 0x14004c9d4
mov ebx, r15d
test ebx, ebx
js 0x14004cb10
mov dword [rsp + 0x28], 0x104
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.api_ms_win_appmodel_runtime_l1_1_0.dll_GetPackageFamilyName]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
or rdi, 0xffffffffffffffff
mov r12d, 0xffffffff
test ecx, ecx
js 0x14004ca68
lea rax, [rsp + 0x40]
mov rbx, rdi
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x14004ca21
cmp rbx, r12
ja 0x14004ca68
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x20]
mov edx, ebx
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateString]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14004caff
mov r8d, 0x104
lea rdx, [rbp + 0x150]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32GetProcessImageFileNameW]
nop dword [rax + rax]
lea rcx, [rbp + 0x150]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindFileNameW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14004cacd
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x14004ca9f
cmp rdi, r12
ja 0x14004cac6
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov edx, edi
mov rcx, rbx
jmp 0x14004cae7
mov ebx, 0x80070216
jmp 0x14004caff
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
xor edx, edx
lea rcx, [0x1400ad530]
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateString]
nop dword [rax + rax]
mov ebx, eax
test ebx, ebx
js 0x14004cb10
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], r15
mov qword [r14], rax
test rsi, rsi
je 0x14004cb28
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x14004cb67
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140097f60
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
nop
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140013fa8
int3