Function at 0x1800028a0
Capabilities:
Get process image filename

Disassembly:
push rdi
sub rsp, 0x7a0
mov rax, qword [0x18002e048]
xor rax, rsp
mov qword [rsp + 0x790], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov r8d, 0x104
lea rdx, [rsp + 0x580]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
lea rdx, [rsp + 0x580]
lea rcx, [rsp + 0x520]
call fcn.1800037f0
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0xe0], 0x438
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18000298f
xor r8d, r8d
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x520]
call fcn.180003760
cmp rax, 0xffffffffffffffff
je 0x180002976
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x28], eax
jmp 0x18000298f
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
mov dword [rsp + 0x38], eax
jmp 0x180002937
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x30], 0
je 0x1800029a9
cmp dword [rsp + 0x28], 0
jne 0x1800029c7
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x520]
call fcn.1800037c0
mov eax, dword [rsp + 0x40]
jmp 0x180002c0d
lea rdx, str.LdrLoadDll
lea rcx, [rsp + 0x540]
call fcn.180002d70
lea rcx, [rsp + 0x540]
call fcn.180002ce0
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [0x180030070]
call qword [0x1800300b8]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x7a8]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 0
lea rax, [rsp + 0x7a8]
mov qword [rsp + 0x58], rax
mov r8d, 0x30
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
jmp 0x180002a99
mov rax, qword [rsp + 0x20]
add rax, 8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x20], rax
jae 0x180002b96
mov rax, qword [rsp + 0x20]
cmp qword [rax], 0x1000
jae 0x180002abc
jmp 0x180002a8b
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
cmp qword [rax], rcx
jbe 0x180002ae8
mov rax, qword [rsp + 0x60]
add rax, 0x1000
mov rcx, qword [rsp + 0x20]
cmp qword [rcx], rax
jae 0x180002ae8
mov dword [rsp + 0x3c], 1
cmp dword [rsp + 0x3c], 0
je 0x180002b91
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp qword [rax], rcx
jbe 0x180002b91
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
cmp qword [rcx], rax
jae 0x180002b91
lea rax, [rsp + 0x550]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov r8d, 0x30
lea rdx, [rsp + 0x550]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [rsp + 0x574]
and eax, 0x20
test eax, eax
jne 0x180002b62
jmp 0x180002a8b
lea rdx, [0x1800027b0]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax]
call fcn.1800027d0
mov dword [rsp + 0x44], 1
lea rcx, [rsp + 0x520]
call fcn.1800037c0
mov eax, dword [rsp + 0x44]
jmp 0x180002c0d
jmp 0x180002a8b
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
lea rdx, [0x1800027b0]
mov rcx, qword [rsp + 0xa0]
call fcn.1800027d0
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0x520]
call fcn.1800037c0
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x790]
xor rcx, rsp
call fcn.18000ae10
add rsp, 0x7a0
pop rdi
ret