Function at 0x1400503f0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14012a098]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov ebx, r8d
mov rsi, rdx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
mov r14d, 0x2710
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14005043f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov r8d, ebx
lea rdx, [0x14010c700]
lea rcx, [rbp - 0x60]
call fcn.14004b760
mov r15, qword [rsi + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r15
cmp rax, 9
jb 0x140050765
mov r13, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400504a0
mov r13, qword [rsi]
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea r12, [r15 + 9]
mov ebx, 7
lea rdi, [rsp + 0x58]
lea eax, [rbx + 3]
cmp r12, rbx
jbe 0x1400504f5
mov rbx, r12
or rbx, 7
cmp rbx, rcx
jbe 0x1400504d8
mov rbx, rcx
jmp 0x1400504df
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x58]
call fcn.14001dd60
mov rdi, rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], rbx
movups xmm0, xmmword [str..pipe_]
movups xmmword [rdi], xmm0
movzx ecx, word [0x1401101f0]
mov word [rdi + 0x10], cx
lea rcx, [rdi + 0x12]
lea r8, [r15 + r15]
mov rdx, r13
call fcn.14009bcc0
xor r15d, r15d
mov word [rdi + r12*2], r15w
lea rax, [rbp - 0x60]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140050540
mov rcx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x140050594
lea rdi, [rcx + rdx]
mov qword [rsp + 0x68], rdi
lea rbx, [rsp + 0x58]
cmp r8, 8
cmovae rbx, qword [rsp + 0x58]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
lea rdx, [rbp - 0x60]
call fcn.14009bcc0
mov word [rbx + rdi*2], r15w
lea rax, [rsp + 0x58]
jmp 0x1400505ad
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x60]
movzx r8d, byte [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14004bfd0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14005060f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005060a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005076b
call fcn.1400998c0
mov ebx, 0xa
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
sub r14d, ebx
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x14005064b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14005064b
test r14d, r14d
jg 0x140050614
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 8], rax
cmp rax, 0xffffffffffffffff
setne bl
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400506d2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400506cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050759
call fcn.1400998c0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r15w
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14005071f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14005071a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005075f
mov rcx, r8
call fcn.1400998c0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
movzx eax, bl
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400998a0
mov rbx, qword [rsp + 0x188]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400a03a4
nop
call fcn.1400a03a4
nop
call fcn.140002380
int3
call fcn.1400a03a4
int3