Function at 0x18004ae50
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 [0x180111b10]
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.180063680
nop
mov rbx, qword [rbp + 0x228]
test rbx, rbx
je 0x18004b07a
cmp qword [rbx], r14
je 0x18004b07a
mov word [rbp + 0x240], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x242]
call fcn.18008c290
mov r8d, 0x104
lea rdx, [rbp + 0x240]
mov rcx, qword [rbx]
call qword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jne 0x18004afb6
call fcn.18004b2c0
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.1800071b0
nop
lea rdx, [rbp + 0x220]
mov rcx, rax
call fcn.18003fac0
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.180007370
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.18004c380
nop
cmp qword [rax + 0x18], 0x10
jb 0x18004af64
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x48]
call fcn.180085490
nop
cmp qword [rbp - 0x70], 0x10
jb 0x18004af89
mov rcx, qword [rsp + 0x78]
call fcn.180085648
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, [0x18010f350]
lea rcx, [rbp - 0x48]
call fcn.18008aed8
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 0x18004afe7
mov r8, r14
jmp 0x18004affc
lea rax, [rbp + 0x240]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x18004aff1
lea rdx, [rbp + 0x240]
lea rcx, [rsp + 0x28]
call fcn.180005f10
nop
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.18004ad50
mov dword [rsp + 0x20], 1
cmp qword [rsp + 0x40], 8
jb 0x18004b035
mov rcx, qword [rsp + 0x28]
call fcn.180085648
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
mov rbx, qword [rbp + 0x230]
test rbx, rbx
je 0x18004b072
lock dec dword [rbx + 8]
jne 0x18004b072
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x18004b072
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + ioctlsocket]
mov rax, rsi
jmp 0x18004b172
call fcn.18004b1a0
mov rdx, rax
lea rcx, [rbp + 0x120]
call fcn.1800071b0
mov rbx, rax
cmp byte [rax + 0x44], 0
je 0x18004b09f
mov rcx, rax
call fcn.180009010
lea rdx, [rbp + 0x220]
mov rcx, rbx
call fcn.180040940
inc dword [rbx + 0x3c]
mov r8d, dword [rbx + 0x3c]
cmp qword [rbx + 0x30], 0
je 0x18004b0f8
mov r9d, dword [rbx + 0x40]
cmp r8d, r9d
jge 0x18004b0f8
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 0x18004b0f8
inc r8d
mov dword [rbx + 0x3c], r8d
cmp r8d, r9d
jl 0x18004b0d0
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.180007370
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.18004c380
nop
cmp qword [rax + 0x18], 0x10
jb 0x18004b11d
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.180085490
nop
cmp qword [rsp + 0x70], 0x10
jb 0x18004b143
mov rcx, qword [rsp + 0x58]
call fcn.180085648
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, [0x18010f350]
lea rcx, [rbp - 0x68]
call fcn.18008aed8
nop
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.180085420
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret