Function at 0x1800068f0
Capabilities:
Get process image filename

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x4e0
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800764a0]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov eax, dword [0x18007b054]
lea r13, [0x18007af80]
xor r12d, r12d
test al, 1
jne 0x1800069ab
or eax, 1
mov dword [0x18007b054], eax
lea ecx, [r12 + 8]
call fcn.18004116c
test rax, rax
je 0x18000695a
mov qword [rax], r13
jmp 0x18000695d
mov rax, r12
mov qword [0x18007af80], rax
mov rcx, r13
call fcn.18000ee70
mov qword [0x18007afb0], rax
mov byte [rax + 0x1d], 1
mov rax, qword [0x18007afb0]
mov qword [rax + 8], rax
mov rax, qword [0x18007afb0]
mov qword [rax], rax
mov rax, qword [0x18007afb0]
mov qword [rax + 0x10], rax
mov qword [0x18007afb8], r12
lea rcx, [0x18005cdb0]
call fcn.180041354
nop
mov ecx, 8
call fcn.18004116c
test rax, rax
je 0x1800069c4
lea rcx, [rsp + 0x50]
mov qword [rax], rcx
jmp 0x1800069c7
mov rax, r12
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.18000ee70
mov qword [rsp + 0x80], rax
mov byte [rax + 0x1d], 1
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x80]
mov qword [rax], rax
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x88], r12
lea rcx, [0x180006e10]
test rcx, rcx
je 0x180006a23
lea rdx, [rsp + 0x50]
call fcn.18002e4b8
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x80]
test rbp, rbp
je 0x180006a66
cmp rbp, qword [rsp + 0x50]
je 0x180006a6b
call fcn.180041018
cmp rbx, rdi
je 0x180006cfb
test rbp, rbp
jne 0x180006a83
call fcn.180041018
mov rdx, r12
jmp 0x180006a87
mov rdx, qword [rbp]
cmp rbx, qword [rdx + 0x30]
jne 0x180006a92
call fcn.180041018
mov rdi, qword [0x18007afb0]
mov rax, qword [rdi + 8]
cmp byte [rax + 0x1d], 0
jne 0x180006abd
mov ecx, dword [rbx + 0x18]
cmp dword [rax + 0x18], ecx
jae 0x180006ab1
mov rax, qword [rax + 0x10]
jmp 0x180006ab7
mov rdi, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
je 0x180006aa6
mov qword [rsp + 0x48], rdi
mov rcx, qword [0x18007af80]
mov qword [rsp + 0x40], rcx
mov rsi, qword [0x18007afb0]
test rcx, rcx
jne 0x180006adf
call fcn.180041018
cmp rdi, rsi
je 0x180006af3
mov eax, dword [rdi + 0x18]
cmp dword [rbx + 0x18], eax
jb 0x180006af3
lea rcx, [rsp + 0x40]
jmp 0x180006b10
mov rax, qword [0x18007afb0]
mov qword [rsp + 0x38], rax
mov rax, qword [0x18007af80]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rdi, qword [0x18007afb0]
mov rcx, qword [0x18007af80]
test rcx, rcx
je 0x180006b3d
cmp rcx, qword [rsp + 0x20]
je 0x180006b42
call fcn.180041018
cmp rdi, qword [rsp + 0x28]
jne 0x180006c8c
mov word [rsp + 0xc0], r12w
test rbp, rbp
jne 0x180006b65
call fcn.180041018
mov rdx, r12
jmp 0x180006b69
mov rdx, qword [rbp]
cmp rbx, qword [rdx + 0x30]
jne 0x180006b74
call fcn.180041018
mov r8d, dword [rbx + 0x18]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x180006bfc
cmp rax, 0xffffffffffffffff
je 0x180006c10
mov word [rsp + 0x2c0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2c2]
call fcn.1800432e0
mov r8d, 0x104
lea rdx, [rsp + 0x2c0]
mov rcx, rdi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x180006bf1
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x2c0]
call fcn.18002e2cc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180006c10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180006c10
cmp rax, 0xffffffffffffffff
je 0x180006c10
test rax, rax
je 0x180006c10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [rsp + 0xc0], 0
je 0x180006c8c
mov qword [rsp + 0xb0], 7
mov qword [rsp + 0xa8], r12
mov word [rsp + 0x98], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xc0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x90]
call fcn.18000a4d0
nop
lea rcx, [rsp + 0x90]
call fcn.180003d60
nop
cmp qword [rsp + 0xb0], 8
jb 0x180006c8c
mov rcx, qword [rsp + 0x98]
call fcn.180041070
test rbp, rbp
jne 0x180006c96
call fcn.180041018
cmp byte [rbx + 0x1d], 0
je 0x180006ca6
call fcn.180041018
jmp 0x180006a52
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x1d], 0
jne 0x180006cd1
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
jne 0x180006a52
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
je 0x180006cc0
jmp 0x180006a52
mov rax, qword [rbx + 8]
cmp byte [rax + 0x1d], 0
jne 0x180006cf3
nop dword [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x180006cf3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x1d], 0
je 0x180006ce0
mov rbx, rax
jmp 0x180006a52
mov rdi, qword [0x18007afb0]
mov qword [rsp + 0x28], rdi
mov rcx, qword [0x18007af80]
mov qword [rsp + 0x20], rcx
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm1
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.1800099c0
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.180009b70
nop
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm1
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1800099c0
mov rcx, qword [rsp + 0x80]
call fcn.180041070
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r12
mov rcx, qword [rsp + 0x50]
call fcn.180041070
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.180040bb0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret