Function at 0x140040eb4
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1400b0e58]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov rsi, rdx
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea rax, fcn.140013cb0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r14
mov rax, qword [rcx]
movabs r10, 0xda01ae397addf970
mov rax, qword [rax + 0x10]
call qword [case.0x140063591.0]
mov r8d, eax
lea edx, [r14 + 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 + 0x38], rax
test rax, rax
jne 0x140040f66
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
test ebx, ebx
js 0x14004109c
mov rax, qword [rsp + 0x38]
mov dword [rsp + 0x28], 0x104
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x28]
mov rcx, rax
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 r15d, 0xffffffff
test ecx, ecx
js 0x140040ff2
lea rax, [rsp + 0x40]
mov rbx, rdi
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x140040fab
cmp rbx, r15
ja 0x140040ff2
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], r14
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 0x14004108f
mov r8d, 0x104
lea rdx, [rbp + 0x150]
mov rcx, qword [rsp + 0x38]
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 0x140041059
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x14004102b
cmp rdi, r15
ja 0x140041052
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 0x140041073
mov ebx, 0x80070216
jmp 0x14004108b
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, [0x1400915d0]
mov qword [rsp + 0x20], r14
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 0x14004109c
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], r14
mov qword [rsi], rax
lea rax, fcn.140013cb0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x38], r14
je 0x1400410c2
lea rcx, [rsp + 0x30]
call fcn.140013cb0
test al, al
je 0x1400410fc
mov qword [rsp + 0x38], r14
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.14007e5c0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x470
pop r15
pop r14
pop rdi
pop rsi
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.140013c88
int3