Function at 0x14004c640
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400ade58]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, rdx
mov edi, ecx
lea r13, fcn.1400137b0
mov qword [rsp + 0x28], r13
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov esi, r14d
mov r15d, 0x80070000
test ecx, ecx
jne 0x14004c6a4
lea rdx, [0x140092678]
jmp 0x14004c7f9
mov r8d, edi
mov edx, 1
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
nop dword [rax + rax]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14004c6f5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
test ecx, ecx
js 0x14004c7ba
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0x104
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.api_ms_win_appmodel_runtime_l1_1_0.dll_GetPackageFamilyName]
nop dword [rax + rax]
movzx esi, ax
or esi, r15d
test eax, eax
cmovle esi, eax
test esi, esi
js 0x14004c7ba
mov qword [rsp + 0x48], r14
mov edi, 7
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x38], r14w
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14000740c
lea rax, [rsp + 0x38]
cmp rbx, rax
je 0x14004c794
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14004c771
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
call fcn.140007d20
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbx + 0x10], xmm1
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x38], r14w
jmp 0x14004c799
mov rdi, qword [rsp + 0x50]
cmp rdi, 8
jb 0x14004c87c
lea rdx, [rdi*2 + 2]
mov rcx, qword [rsp + 0x38]
call fcn.140007d20
jmp 0x14004c87c
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32GetProcessImageFileNameW]
nop dword [rax + rax]
movzx esi, ax
or esi, r15d
test eax, eax
cmovle esi, eax
test esi, esi
js 0x14004c803
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindFileNameW]
nop dword [rax + rax]
mov rdx, rax
mov rcx, rbx
call fcn.14000740c
jmp 0x14004c87c
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140016e94
mov rsi, rax
cmp rbx, rax
je 0x14004c85c
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14004c831
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
call fcn.140007d20
mov qword [rbx + 0x10], r14
mov edi, 7
mov qword [rbx + 0x18], rdi
mov word [rbx], r14w
movups xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdi
mov word [rsi], r14w
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14004c879
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
call fcn.140007d20
mov esi, r14d
mov qword [rsp + 0x28], r13
cmp qword [rsp + 0x30], r14
je 0x14004c896
lea rcx, [rsp + 0x28]
call fcn.1400137b0
test al, al
je 0x14004c8c4
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14007c650
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
call fcn.140013788
int3