Function at 0x140006120
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.1402a90d0
sub rsp, rax
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x11b8], rbx
mov rax, qword [0x1403eaa10]
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 0x1400068e9
nop dword [rax]
lea r9, [rbp - 0x80]
mov r8d, ebx
mov rdx, r15
mov ecx, 0x10
call qword [0x1403fd7f0]
mov ebx, eax
test eax, eax
je 0x140006229
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp ebx, 0xc0000004
jne 0x1400068e9
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 0x1400061c0
jmp 0x1400068e9
test r15, r15
je 0x1400068e9
mov ecx, 0x10
call fcn.14029806c
mov r13, rax
mov qword [rbp - 0x68], rax
test rax, rax
je 0x14000625d
xor eax, eax
mov qword [r13], rax
mov qword [r13 + 8], rax
call fcn.14000a290
mov qword [r13], rax
jmp 0x140006260
xor r13d, r13d
mov rax, qword [rsi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400063c3
xor r15d, r15d
movzx edi, word [rbx + 0x28]
cmp di, 4
jne 0x140006284
mov r14b, 1
jmp 0x140006366
lea rdx, [rbx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140006920
nop
cmp di, 3
jne 0x1400062a4
mov word [rsp + 0x30], r12w
mov r14b, 1
jmp 0x1400062aa
mov word [rsp + 0x30], r15w
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x20]
lea rcx, [rbp - 0x20]
call fcn.14000a350
nop
mov rdx, rax
mov rcx, r13
call fcn.14000a680
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x38]
mov rcx, r13
call fcn.14000a6e0
nop
mov r8, qword [rbp + 0x18]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x18]
call fcn.140009220
mov rcx, qword [rbp + 0x18]
call fcn.1402012c0
cmp dword [rbp + 0x10], 0
jle 0x14000630d
mov rcx, qword [rbp + 8]
call fcn.140298600
cmp dword [rbp], 0
jle 0x14000631d
mov rcx, qword [rbp - 8]
call fcn.140298600
nop
mov r8, qword [rsp + 0x60]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x60]
call fcn.140009220
mov rcx, qword [rsp + 0x60]
call fcn.1402012c0
cmp dword [rsp + 0x58], 0
jle 0x140006351
mov rcx, qword [rsp + 0x50]
call fcn.140298600
cmp dword [rsp + 0x48], 0
jle 0x140006362
mov rcx, qword [rsp + 0x40]
call fcn.140298600
mov rsi, qword [rbp - 0x78]
cmp byte [rbx + 0x19], 0
jne 0x1400063b6
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140006390
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400063b6
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140006382
jmp 0x1400063b6
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400063b3
nop word [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x1400063b3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400063a0
mov rbx, rax
cmp rbx, qword [rsi]
jne 0x140006272
mov r15, qword [rbp - 0x70]
or edx, 0xffffffff
xor eax, eax
mov r12d, eax
cmp dword [r15], eax
jbe 0x140006855
lea r9d, [rax + 1]
lea r8, [0x140323de0]
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 0x140006847
mov rcx, qword [rsi]
mov rax, qword [rcx + 8]
mov rdx, rcx
cmp byte [rax + 0x19], 0
jne 0x14000641f
cmp dword [rax + 0x20], edi
jae 0x140006413
mov rax, qword [rax + 0x10]
jmp 0x140006419
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140006408
cmp rdx, rcx
je 0x140006433
cmp edi, dword [rdx + 0x20]
jb 0x140006433
mov qword [rbp - 0x28], rdx
lea rax, [rbp - 0x28]
jmp 0x14000643b
mov qword [rbp - 0x40], rcx
lea rax, [rbp - 0x40]
mov rax, qword [rax]
cmp rax, rcx
je 0x1400064cf
movzx r8d, word [rax + 0x28]
mov rdx, qword [r13]
mov rax, qword [rdx + 8]
mov rcx, rdx
cmp byte [rax + 0x19], 0
jne 0x140006477
nop dword [rax]
cmp dword [rax + 0x20], edi
jae 0x14000646b
mov rax, qword [rax + 0x10]
jmp 0x140006471
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140006460
cmp rcx, rdx
je 0x14000648b
cmp edi, dword [rcx + 0x20]
jb 0x14000648b
mov qword [rbp - 0x58], rcx
lea rax, [rbp - 0x58]
jmp 0x140006493
mov qword [rbp - 0x68], rdx
lea rax, [rbp - 0x68]
mov rax, qword [rax]
cmp rax, rdx
je 0x140006840
cmp r8w, 1
jne 0x1400064b0
mov word [rax + 0x28], r9w
jmp 0x140006840
cmp r8w, 2
lea r8, [0x140323de0]
jne 0x140006847
mov r14b, 1
mov word [rax + 0x28], r9w
jmp 0x140006847
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.14000a210
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 0x140006553
lea edx, [rdi + 2]
lea rcx, [rsp + 0x40]
call fcn.1401e9030
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.14029b4d8
lea edx, [rdi + 2]
lea rcx, [rsp + 0x40]
call fcn.1401ea290
jmp 0x140006780
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x14000659f
mov r8d, edi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x14000659f
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.140298d38
jmp 0x14000677c
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 [0x1403fd7e8]
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 0x140006762
lea rax, [rbp + 0x50]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400065f2
mov qword [rsp + 0x78], r14
test ebx, ebx
jne 0x140006613
lea rax, [0x140323de0]
mov qword [rsp + 0x70], rax
jmp 0x140006639
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x50]
mov rcx, qword [rsp + 0x70]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401ea290
nop
lea rdx, [rsp + 0x70]
mov rcx, qword [rbp - 0x50]
mov rcx, qword [rcx + 0xa8]
call fcn.1400f9a30
mov edx, dword [rsp + 0x7c]
lea rcx, [rsp + 0x50]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rsp + 0x7c]
lea rcx, [rsp + 0x50]
call fcn.1401ea290
mov edx, dword [rsp + 0x5c]
test edx, edx
je 0x14000671b
mov edx, 0x5c
mov rcx, qword [rsp + 0x50]
call fcn.14029aea8
test rax, rax
je 0x140006717
sub rax, qword [rsp + 0x50]
sar rax, 1
test eax, eax
jle 0x140006717
lea r8d, [rax + 1]
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x50]
call fcn.1401eaef0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x40]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x40]
call fcn.1401ea290
nop
cmp dword [rbp - 0x30], 0
jle 0x140006751
mov rcx, qword [rbp - 0x38]
call fcn.140298600
jmp 0x140006751
mov edx, dword [rsp + 0x5c]
lea rcx, [rsp + 0x40]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rsp + 0x5c]
lea rcx, [rsp + 0x40]
call fcn.1401ea290
nop
cmp dword [rsp + 0x78], 0
jle 0x140006762
mov rcx, qword [rsp + 0x70]
call fcn.140298600
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, qword [rbp - 0x50]
call fcn.140006a10
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.14000a350
nop
mov rdx, rax
mov rcx, r13
call fcn.14000a680
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x40]
mov rcx, r13
call fcn.14000a6e0
nop
mov r8, qword [rbp + 0x18]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x18]
call fcn.140009220
mov rcx, qword [rbp + 0x18]
call fcn.1402012c0
cmp dword [rbp + 0x10], 0
jle 0x1400067e3
mov rcx, qword [rbp + 8]
call fcn.140298600
cmp dword [rbp], 0
jle 0x1400067f2
mov rcx, qword [rbp - 8]
call fcn.140298600
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.140009220
mov rcx, qword [rsp + 0x60]
call fcn.1402012c0
cmp dword [rsp + 0x58], 0
jle 0x140006829
mov rcx, qword [rsp + 0x50]
call fcn.140298600
cmp dword [rsp + 0x48], 0
jle 0x14000683a
mov rcx, qword [rsp + 0x40]
call fcn.140298600
mov r9d, 1
lea r8, [0x140323de0]
mov edx, edi
inc r12d
cmp r12d, dword [r15]
jb 0x1400063e0
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 0x1400068dc
mov edx, 3
cmp word [rax + 0x28], 0
jne 0x140006885
mov word [rax + 0x28], dx
mov r14b, 1
cmp byte [rax + 0x19], 0
jne 0x1400068d6
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x1400068af
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1400068d6
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1400068a1
jmp 0x1400068d6
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x1400068d3
nop dword [rax]
cmp rax, qword [rcx + 0x10]
jne 0x1400068d3
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1400068c0
mov rax, rcx
cmp rax, qword [r13]
jne 0x140006877
mov rax, qword [rbp - 0x48]
mov qword [rax], r13
movzx eax, r14b
jmp 0x1400068eb
xor al, al
mov rcx, qword [rbp + 0x1050]
xor rcx, rsp
call fcn.140297ff0
mov rbx, qword [rsp + 0x11b8]
add rsp, 0x1160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret