Function at 0x18002d110
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0x260
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov esi, ecx
mov r12d, edx
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call fcn.180055310
mov r8d, esi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x18002d1d9
lea r8, [rsp + 0x30]
mov r9d, 0x104
xor edx, edx
mov rcx, rax
call sub.PSAPI.DLL_GetModuleFileNameExA
mov ebx, eax
test eax, eax
jne 0x18002d1a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rdi
call sub.PSAPI.DLL_GetProcessImageFileNameA
mov ebx, eax
test eax, eax
jne 0x18002d1a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x18002d1d9
cmp dword [0x1800a2754], 0
je 0x18002d1f7
lea rdx, [0x1800a2870]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x18002d1e0
mov dword [0x1800a2758], esi
xor eax, eax
jmp 0x18002d376
lea rdx, [0x1800a2760]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x18002d1d3
lea rcx, [rsp + 0x30]
mov edx, 0x5c
call fcn.180051920
test rax, rax
je 0x18002d1d9
mov qword [rsp + 0x290], rbp
lea rbp, [rax + 1]
mov rcx, rbp
call fcn.18002cfe0
test eax, eax
je 0x18002d36c
lea rdx, str.c:windows_system32
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x18002d36c
lea rdx, str.c:windows_syswow64
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x18002d36c
cmp dword [0x1800a2754], eax
je 0x18002d278
mov eax, dword [0x1800a2758]
test eax, eax
je 0x18002d278
cmp eax, r12d
je 0x18002d35c
mov r8d, r12d
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x18002d34a
lea r8, [rsp + 0x140]
mov r9d, 0x104
xor edx, edx
mov rcx, rax
call sub.PSAPI.DLL_GetModuleFileNameExA
mov ebx, eax
test eax, eax
jne 0x18002d2da
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x140]
mov r8d, 0x104
mov rcx, rdi
call sub.PSAPI.DLL_GetProcessImageFileNameA
mov ebx, eax
test eax, eax
jne 0x18002d2da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x18002d34a
cmp dword [0x1800a4fe4], 0
je 0x18002d31e
lea rdx, [0x180082890]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x18002d31e
lea rdx, str.xbstarter.exe
lea rcx, [rsp + 0x140]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x18002d35c
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x140]
mov dword [rsp + 0x20], 0
call fcn.18002ceb0
test eax, eax
je 0x18002d36c
cmp dword [rsp + 0x20], 0
je 0x18002d363
mov eax, 1
jmp 0x18002d36e
cmp dword [0x1800a4dc4], 0
je 0x18002d363
cmp dword [0x1800a2754], 0
je 0x18002d363
mov eax, 1
jmp 0x18002d36e
mov ecx, esi
call fcn.18002e570
jmp 0x18002d36e
xor eax, eax
mov rbp, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180050540
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r12
pop rdi
pop rsi
ret