Function at 0x14000f150
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
push rbp
push r14
push r15
lea rbp, [rax - 0x8838]
mov eax, 0x8920
call fcn.140381490
sub rsp, rax
mov rax, qword [0x140451040]
xor rax, rsp
mov qword [rbp + 0x8810], rax
mov rdi, qword [0x1404e3640]
mov r14d, 3
cmp dword [rdi + 8], r14d
je 0x14000f488
or rsi, 0xffffffffffffffff
lea r13d, [r14 - 2]
cmp dword [rdi + 8], 0
jne 0x14000f291
mov rbx, qword [rdi]
movups xmm0, xmmword [str._pipediscord_ipc_0]
movups xmmword [rbp + 0x87e0], xmm0
movups xmm1, xmmword [0x14043eb40]
movups xmmword [rbp + 0x87f0], xmm1
movsd xmm0, qword [0x14043eb50]
movsd qword [rbp + 0x8800], xmm0
mov eax, dword [0x14043eb58]
mov dword [rbp + 0x8808], eax
movzx eax, word [0x14043eb5c]
mov word [rbp + 0x880c], ax
lea eax, [rsi + 0x31]
mov word [rbp + 0x880a], ax
mov r15d, 0xc0000000
jmp 0x14000f25f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000f23a
movzx eax, word [rbp + 0x880a]
cmp ax, 0x39
jae 0x14000f488
add ax, r13w
mov word [rbp + 0x880a], ax
jmp 0x14000f25f
cmp eax, 0xe7
jne 0x14000f488
mov edx, 0x2710
lea rcx, [rbp + 0x87e0]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x14000f488
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
lea rcx, [rbp + 0x87e0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, rsi
mov qword [rbx + 8], rax
je 0x14000f211
mov byte [rbx], r13b
xor edx, edx
cmp dword [rdi + 8], r13d
jne 0x14000f34b
mov r8d, 0x88a0
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x40]
call fcn.14000d9dc
nop
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000f574
test al, al
je 0x14000f33c
xor r8d, r8d
lea rdx, [0x14043ed58]
lea rcx, [rsp + 0x40]
call fcn.14000db50
mov rsi, rax
xor r8d, r8d
lea rdx, [0x14043eca8]
lea rcx, [rsp + 0x40]
call fcn.14000db50
mov rbx, rax
test rsi, rsi
je 0x14000f33c
test rax, rax
je 0x14000f33c
lea rdx, str.DISPATCH
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14000f33c
lea rdx, str.READY
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14000f33c
mov dword [rdi + 8], r14d
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14000f33c
lea rcx, [rsp + 0x40]
call rax
nop
lea rcx, [rsp + 0x40]
call fcn.14000e324
jmp 0x14000f488
lea r15, [rdi + 0x164]
and dword [r15], 0
lea rbx, [rdi + 0x16c]
mov r8d, 0x868
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], 0x800
mov dword [rsp + 0x78], 0x144
mov byte [rsp + 0x7c], 0
mov qword [rbp - 0x80], rbx
lea rax, [rbx + 0xfff8]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rbx
lea rax, [rbp - 0x58]
mov qword [rbp - 0x68], rax
lea rax, [rbp + 0x7a8]
mov qword [rbp - 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.140012598
mov r8d, r13d
lea rdx, [0x14043f93c]
lea rcx, [rsp + 0x40]
call fcn.140012994
mov edx, r13d
lea rcx, [rsp + 0x40]
call fcn.1400127c4
mov r8d, 9
lea rdx, str.client_id
lea rcx, [rsp + 0x40]
call fcn.140012994
inc rsi
cmp byte [rdi + rsi + 0x20], 0
jne 0x14000f40f
mov r8d, esi
lea rdx, [rdi + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140012994
sub qword [rsp + 0x60], 0x10
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 8]
jae 0x14000f446
mov byte [rcx], 0x7d
add qword [rax + 0x10], r13
mov rbx, qword [rbp - 0x70]
sub rbx, qword [rbp - 0x80]
mov edx, 0x810
mov rcx, qword [rsp + 0x50]
call fcn.1403805b0
mov r8d, ebx
mov dword [rdi + 0x168], r8d
add r8, 8
mov rdx, r15
mov rcx, qword [rdi]
call fcn.14000d478
test al, al
je 0x14000f480
mov dword [rdi + 8], r13d
jmp 0x14000f488
mov rcx, rdi
call fcn.14000f4b8
mov rcx, qword [rbp + 0x8810]
xor rcx, rsp
call fcn.140380350
lea r11, [rsp + 0x8920]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret