Function at 0x18004ac40
Capabilities:
Get process image filename

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x478]
sub rsp, 0x560
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov rsi, rcx
mov qword [rbp - 0x50], rcx
mov dword [rbp + 0x220], edx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor eax, eax
mov qword [rbp + 0x228], rax
mov qword [rbp + 0x230], rax
mov r8d, edx
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdx, rax
lea rcx, [rbp + 0x228]
call fcn.180065ac0
nop
mov rbx, qword [rbp + 0x228]
test rbx, rbx
je 0x18004ae6a
cmp qword [rbx], r14
je 0x18004ae6a
mov word [rbp + 0x240], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x242]
call fcn.180090d70
mov r8d, 0x104
lea rdx, [rbp + 0x240]
mov rcx, qword [rbx]
call qword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jne 0x18004ada6
call fcn.18004b0b0
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.180007420
nop
lea rdx, [rbp + 0x220]
mov rcx, rax
call fcn.18003fba0
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.1800075e0
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.18004c170
nop
cmp qword [rax + 0x18], 0x10
jb 0x18004ad54
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x48]
call fcn.180089d40
nop
cmp qword [rbp - 0x70], 0x10
jb 0x18004ad79
mov rcx, qword [rsp + 0x78]
call fcn.180089ef8
mov qword [rbp - 0x70], setsockopt
mov qword [rbp - 0x78], r14
mov byte [rsp + 0x78], 0
lea rax, vtable.message_exception.0
mov qword [rbp - 0x48], rax
lea rdx, [0x180115d10]
lea rcx, [rbp - 0x48]
call fcn.18008f9b8
nop
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
or rdi, 0xffffffffffffffff
cmp word [rbp + 0x240], 0
jne 0x18004add7
mov r8, r14
jmp 0x18004adec
lea rax, [rbp + 0x240]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x18004ade1
lea rdx, [rbp + 0x240]
lea rcx, [rsp + 0x28]
call fcn.180006180
nop
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.18004ab40
mov dword [rsp + 0x20], 1
cmp qword [rsp + 0x40], 8
jb 0x18004ae25
mov rcx, qword [rsp + 0x28]
call fcn.180089ef8
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
mov rbx, qword [rbp + 0x230]
test rbx, rbx
je 0x18004ae62
lock dec dword [rbx + 8]
jne 0x18004ae62
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x18004ae62
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + ioctlsocket]
mov rax, rsi
jmp 0x18004af62
call fcn.18004af90
mov rdx, rax
lea rcx, [rbp + 0x120]
call fcn.180007420
mov rbx, rax
cmp byte [rax + 0x44], 0
je 0x18004ae8f
mov rcx, rax
call fcn.180009280
lea rdx, [rbp + 0x220]
mov rcx, rbx
call fcn.180040aa0
inc dword [rbx + 0x3c]
mov r8d, dword [rbx + 0x3c]
cmp qword [rbx + 0x30], 0
je 0x18004aee8
mov r9d, dword [rbx + 0x40]
cmp r8d, r9d
jge 0x18004aee8
mov r10, qword [rbx + 0x18]
nop dword [rax]
movsxd rcx, r8d
mov rax, rcx
shr rax, 5
lea rdx, [r10 + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [rdx], eax
je 0x18004aee8
inc r8d
mov dword [rbx + 0x3c], r8d
cmp r8d, r9d
jl 0x18004aec0
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.1800075e0
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.18004c170
nop
cmp qword [rax + 0x18], 0x10
jb 0x18004af0d
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.180089d40
nop
cmp qword [rsp + 0x70], 0x10
jb 0x18004af33
mov rcx, qword [rsp + 0x58]
call fcn.180089ef8
mov qword [rsp + 0x70], setsockopt
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x58], 0
lea rax, vtable.message_exception.0
mov qword [rbp - 0x68], rax
lea rdx, [0x180115d10]
lea rcx, [rbp - 0x68]
call fcn.18008f9b8
nop
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.180089cd0
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret