Function at 0x140006250
Capabilities:
Get process image filename

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1060]
mov eax, 0x1160
call fcn.1402cec90
sub rsp, rax
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x11b8], rbx
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x1050], rax
mov qword [rbp - 0x48], r8
mov rsi, rdx
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x50], rcx
xor r14b, r14b
xor r13d, r13d
mov eax, r13d
cmp qword [rdx + 8], rax
setne al
inc eax
mov dword [rbp - 0x60], eax
mov edi, 0x4e20
mov ebx, 0x9c400
mov dword [rbp - 0x80], r13d
mov r12d, 4
mov r9d, r12d
mov r8d, 0x1000
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x140006a19
nop dword [rax]
lea r9, [rbp - 0x80]
mov r8d, ebx
mov rdx, r15
mov ecx, 0x10
call qword [0x140430cb8]
mov ebx, eax
test eax, eax
je 0x140006359
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp ebx, 0xc0000004
jne 0x140006a19
add edi, edi
mov eax, edi
shl eax, 5
mov ebx, eax
mov dword [rbp - 0x80], r13d
mov edx, eax
mov r9d, r12d
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
mov qword [rbp - 0x70], rax
test rax, rax
jne 0x1400062f0
jmp 0x140006a19
test r15, r15
je 0x140006a19
mov ecx, 0x10
call fcn.1402bcb4c
mov r13, rax
mov qword [rbp - 0x68], rax
test rax, rax
je 0x14000638d
xor eax, eax
mov qword [r13], rax
mov qword [r13 + 8], rax
call fcn.14000a3c0
mov qword [r13], rax
jmp 0x140006390
xor r13d, r13d
mov rax, qword [rsi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400064f3
xor r15d, r15d
movzx edi, word [rbx + 0x28]
cmp di, 4
jne 0x1400063b4
mov r14b, 1
jmp 0x140006496
lea rdx, [rbx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140006a50
nop
cmp di, 3
jne 0x1400063d4
mov word [rsp + 0x30], r12w
mov r14b, 1
jmp 0x1400063da
mov word [rsp + 0x30], r15w
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x20]
lea rcx, [rbp - 0x20]
call fcn.14000a480
nop
mov rdx, rax
mov rcx, r13
call fcn.14000a7b0
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x38]
mov rcx, r13
call fcn.14000a810
nop
mov r8, qword [rbp + 0x18]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x18]
call fcn.140009350
mov rcx, qword [rbp + 0x18]
call fcn.14021ae20
cmp dword [rbp + 0x10], 0
jle 0x14000643d
mov rcx, qword [rbp + 8]
call fcn.1402bd0e0
cmp dword [rbp], 0
jle 0x14000644d
mov rcx, qword [rbp - 8]
call fcn.1402bd0e0
nop
mov r8, qword [rsp + 0x60]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x60]
call fcn.140009350
mov rcx, qword [rsp + 0x60]
call fcn.14021ae20
cmp dword [rsp + 0x58], 0
jle 0x140006481
mov rcx, qword [rsp + 0x50]
call fcn.1402bd0e0
cmp dword [rsp + 0x48], 0
jle 0x140006492
mov rcx, qword [rsp + 0x40]
call fcn.1402bd0e0
mov rsi, qword [rbp - 0x78]
cmp byte [rbx + 0x19], 0
jne 0x1400064e6
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400064c0
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400064e6
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400064b2
jmp 0x1400064e6
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400064e3
nop word [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x1400064e3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400064d0
mov rbx, rax
cmp rbx, qword [rsi]
jne 0x1400063a2
mov r15, qword [rbp - 0x70]
or edx, 0xffffffff
xor eax, eax
mov r12d, eax
cmp dword [r15], eax
jbe 0x140006985
lea r9d, [rax + 1]
lea r8, [0x14034d1a0]
nop
mov eax, r12d
lea rcx, [rax + rax*2]
movzx edi, word [r15 + rcx*8 + 8]
mov dword [rbp - 0x70], edi
cmp edx, edi
je 0x140006977
mov rcx, qword [rsi]
mov rax, qword [rcx + 8]
mov rdx, rcx
cmp byte [rax + 0x19], 0
jne 0x14000654f
cmp dword [rax + 0x20], edi
jae 0x140006543
mov rax, qword [rax + 0x10]
jmp 0x140006549
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140006538
cmp rdx, rcx
je 0x140006563
cmp edi, dword [rdx + 0x20]
jb 0x140006563
mov qword [rbp - 0x28], rdx
lea rax, [rbp - 0x28]
jmp 0x14000656b
mov qword [rbp - 0x40], rcx
lea rax, [rbp - 0x40]
mov rax, qword [rax]
cmp rax, rcx
je 0x1400065ff
movzx r8d, word [rax + 0x28]
mov rdx, qword [r13]
mov rax, qword [rdx + 8]
mov rcx, rdx
cmp byte [rax + 0x19], 0
jne 0x1400065a7
nop dword [rax]
cmp dword [rax + 0x20], edi
jae 0x14000659b
mov rax, qword [rax + 0x10]
jmp 0x1400065a1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140006590
cmp rcx, rdx
je 0x1400065bb
cmp edi, dword [rcx + 0x20]
jb 0x1400065bb
mov qword [rbp - 0x58], rcx
lea rax, [rbp - 0x58]
jmp 0x1400065c3
mov qword [rbp - 0x68], rdx
lea rax, [rbp - 0x68]
mov rax, qword [rax]
cmp rax, rdx
je 0x140006970
cmp r8w, 1
jne 0x1400065e0
mov word [rax + 0x28], r9w
jmp 0x140006970
cmp r8w, 2
lea r8, [0x14034d1a0]
jne 0x140006977
mov r14b, 1
mov word [rax + 0x28], r9w
jmp 0x140006977
mov qword [rsp + 0x40], r8
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
call fcn.14000a340
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x38], r14d
mov eax, dword [rbp - 0x60]
mov word [rsp + 0x30], ax
mov word [rsp + 0x32], r14w
cmp edi, 4
jne 0x140006683
lea edx, [rdi + 2]
lea rcx, [rsp + 0x40]
call fcn.1402028a0
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r9d, [r14 + 6]
lea r8, str.System
mov rcx, qword [rsp + 0x40]
call fcn.1402c06dc
lea edx, [rdi + 2]
lea rcx, [rsp + 0x40]
call fcn.140203bb0
jmp 0x1400068b0
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x1400066cf
mov r8d, edi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x1400066cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r8d, edi
lea rcx, str.Error__d_for_PID__d_r_n
call fcn.1402bd818
jmp 0x1400068ac
mov dword [rbp - 0x5c], r14d
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp - 0x20]
xor edx, edx
mov rcx, rsi
call qword [0x140430cb0]
mov ecx, dword [rsp + 0x38]
test eax, eax
cmove ecx, dword [rbp + 8]
mov dword [rsp + 0x38], ecx
mov r8d, 0x800
lea rdx, [rbp + 0x50]
mov rcx, rsi
call qword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x140006892
lea rax, [rbp + 0x50]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140006722
mov qword [rsp + 0x78], r14
test ebx, ebx
jne 0x140006743
lea rax, [0x14034d1a0]
mov qword [rsp + 0x70], rax
jmp 0x140006769
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x50]
mov rcx, qword [rsp + 0x70]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.140203bb0
nop
lea rdx, [rsp + 0x70]
mov rcx, qword [rbp - 0x50]
mov rcx, qword [rcx + 0xa8]
call fcn.1400fa450
mov edx, dword [rsp + 0x7c]
lea rcx, [rsp + 0x50]
call fcn.1402028a0
movsxd r9, dword [rsp + 0x7c]
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
call fcn.1402c06dc
mov edx, dword [rsp + 0x7c]
lea rcx, [rsp + 0x50]
call fcn.140203bb0
mov edx, dword [rsp + 0x5c]
test edx, edx
je 0x14000684b
mov edx, 0x5c
mov rcx, qword [rsp + 0x50]
call fcn.1402c00ac
test rax, rax
je 0x140006847
sub rax, qword [rsp + 0x50]
sar rax, 1
test eax, eax
jle 0x140006847
lea r8d, [rax + 1]
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x50]
call fcn.140204810
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x40]
call fcn.1402028a0
movsxd r9, dword [rbx + 0xc]
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x40]
call fcn.1402c06dc
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x40]
call fcn.140203bb0
nop
cmp dword [rbp - 0x30], 0
jle 0x140006881
mov rcx, qword [rbp - 0x38]
call fcn.1402bd0e0
jmp 0x140006881
mov edx, dword [rsp + 0x5c]
lea rcx, [rsp + 0x40]
call fcn.1402028a0
movsxd r9, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.1402c06dc
mov edx, dword [rsp + 0x5c]
lea rcx, [rsp + 0x40]
call fcn.140203bb0
nop
cmp dword [rsp + 0x78], 0
jle 0x140006892
mov rcx, qword [rsp + 0x70]
call fcn.1402bd0e0
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, qword [rbp - 0x50]
call fcn.140006b40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rbp - 0x78]
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x20]
call fcn.14000a480
nop
mov rdx, rax
mov rcx, r13
call fcn.14000a7b0
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x40]
mov rcx, r13
call fcn.14000a810
nop
mov r8, qword [rbp + 0x18]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x18]
call fcn.140009350
mov rcx, qword [rbp + 0x18]
call fcn.14021ae20
cmp dword [rbp + 0x10], 0
jle 0x140006913
mov rcx, qword [rbp + 8]
call fcn.1402bd0e0
cmp dword [rbp], 0
jle 0x140006922
mov rcx, qword [rbp - 8]
call fcn.1402bd0e0
mov r14b, 1
mov r8, qword [rsp + 0x60]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140009350
mov rcx, qword [rsp + 0x60]
call fcn.14021ae20
cmp dword [rsp + 0x58], 0
jle 0x140006959
mov rcx, qword [rsp + 0x50]
call fcn.1402bd0e0
cmp dword [rsp + 0x48], 0
jle 0x14000696a
mov rcx, qword [rsp + 0x40]
call fcn.1402bd0e0
mov r9d, 1
lea r8, [0x14034d1a0]
mov edx, edi
inc r12d
cmp r12d, dword [r15]
jb 0x140006510
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [r13]
mov rax, qword [rcx]
cmp rax, rcx
je 0x140006a0c
mov edx, 3
cmp word [rax + 0x28], 0
jne 0x1400069b5
mov word [rax + 0x28], dx
mov r14b, 1
cmp byte [rax + 0x19], 0
jne 0x140006a06
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x1400069df
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x140006a06
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1400069d1
jmp 0x140006a06
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x140006a03
nop dword [rax]
cmp rax, qword [rcx + 0x10]
jne 0x140006a03
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1400069f0
mov rax, rcx
cmp rax, qword [r13]
jne 0x1400069a7
mov rax, qword [rbp - 0x48]
mov qword [rax], r13
movzx eax, r14b
jmp 0x140006a1b
xor al, al
mov rcx, qword [rbp + 0x1050]
xor rcx, rsp
call fcn.1402bcad0
mov rbx, qword [rsp + 0x11b8]
add rsp, 0x1160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret