Function at 0x18004e000
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x8920
call fcn.180118c60
sub rsp, rax
mov rax, qword [0x1802d3040]
xor rax, rsp
mov qword [rsp + 0x8910], rax
mov rsi, qword [0x18030c2f8]
mov eax, dword [rsi + 8]
cmp eax, 3
je 0x18004e2e0
xor ebx, ebx
test eax, eax
jne 0x18004e16b
mov rdi, qword [rsi]
movups xmm0, xmmword [str._pipediscord_ipc_0]
movups xmmword [rsp + 0x88e0], xmm0
movups xmm1, xmmword [0x18029c888]
movups xmmword [rsp + 0x88f0], xmm1
movsd xmm0, qword [0x18029c898]
movsd qword [rsp + 0x8900], xmm0
mov eax, dword [0x18029c8a0]
mov dword [rsp + 0x8908], eax
movzx eax, word [0x18029c8a4]
mov word [rsp + 0x890c], ax
mov eax, 0x30
mov word [rsp + 0x890a], ax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x88e0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x18004e168
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18004e10a
movzx eax, word [rsp + 0x890a]
cmp ax, 0x39
jae 0x18004e2e0
inc ax
mov word [rsp + 0x890a], ax
jmp 0x18004e130
cmp eax, 0xe7
jne 0x18004e2e0
mov edx, 0x2710
lea rcx, [rsp + 0x88e0]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x18004e2e0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x88e0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x18004e0e0
mov byte [rdi], 1
cmp dword [rsi + 8], 1
jne 0x18004e268
xor edx, edx
mov r8d, 0x88a0
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x40]
call fcn.18004c300
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.18004e3c0
test al, al
je 0x18004e22b
xor r8d, r8d
lea rdx, [0x18029ce7c]
lea rcx, [rsp + 0x40]
call fcn.18004c5b0
mov rbp, rax
xor r8d, r8d
lea rdx, [0x18029ca60]
lea rcx, [rsp + 0x40]
call fcn.18004c5b0
mov rdi, rax
test rbp, rbp
je 0x18004e22b
test rax, rax
je 0x18004e22b
lea rdx, str.DISPATCH
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x18004e22b
lea rcx, str.READY
nop dword [rax]
movzx eax, byte [rdi + rbx]
inc rbx
cmp al, byte [rcx + rbx - 1]
jne 0x18004e22b
cmp rbx, 6
jne 0x18004e200
mov dword [rsi + 8], 3
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x18004e22b
lea rcx, [rsp + 0x40]
call rax
nop
lea rcx, [rsp + 0x80a8]
call fcn.18004d840
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x18004e257
mov rcx, rbx
call fcn.18004d840
mov edx, 0x28
mov rcx, rbx
call fcn.1801174d0
mov edx, 0x810
mov rcx, qword [rsp + 0x68]
call fcn.1801174d0
jmp 0x18004e2e0
mov dword [rsi + 0x164], ebx
lea r9, [rsi + 0x20]
lea rcx, [rsi + 0x16c]
call fcn.180051f50
mov dword [rsi + 0x168], eax
mov r8d, eax
add r8, 8
lea rdx, [rsi + 0x164]
mov rcx, qword [rsi]
call fcn.18004bca0
test al, al
je 0x18004e2a7
mov dword [rsi + 8], 1
jmp 0x18004e2e0
mov r8, qword [rsi + 0x18]
test r8, r8
je 0x18004e2c6
mov eax, dword [rsi + 8]
dec eax
test eax, 0xfffffffd
jne 0x18004e2c6
lea rdx, [rsi + 0x64]
mov ecx, dword [rsi + 0x60]
call r8
mov rdi, qword [rsi]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
mov byte [rdi], bl
mov dword [rsi + 8], ebx
mov rcx, qword [rsp + 0x8910]
xor rcx, rsp
call fcn.1801174b0
lea r11, [rsp + 0x8920]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret