Function at 0x140036480
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 [0x1400e5ba8]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov esi, r9d
mov ebx, r8d
mov r14, rdx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400364cc
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, [0x1400a6d30]
lea rcx, [rbp - 0x60]
call fcn.14002ccc0
mov r12, qword [r14 + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r12
cmp rax, 9
jb 0x1400367b2
mov r13, r14
cmp qword [r14 + 0x18], 8
jb 0x14003652d
mov r13, qword [r14]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea r15, [r12 + 9]
mov ebx, 7
lea rdi, [rsp + 0x58]
lea eax, [rbx + 3]
cmp r15, rbx
jbe 0x140036583
mov rbx, r15
or rbx, 7
cmp rbx, rcx
jbe 0x140036566
mov rbx, rcx
jmp 0x14003656d
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x58]
call fcn.14002a860
mov rdi, rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], rbx
movups xmm0, xmmword [str..pipe_]
movups xmmword [rdi], xmm0
movzx ecx, word [0x1400aa8b8]
mov word [rdi + 0x10], cx
lea rcx, [rdi + 0x12]
lea r8, [r12 + r12]
mov rdx, r13
call fcn.14007c010
xor r12d, r12d
mov word [rdi + r15*2], r12w
lea rax, [rbp - 0x60]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400365c5
mov r15, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
sub rax, r15
cmp rdi, rax
ja 0x14003661d
lea rax, [rdi + r15]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x58]
cmp rcx, 8
cmovae rbx, qword [rsp + 0x58]
lea rcx, [rbx + r15*2]
lea r8, [rdi + rdi]
lea rdx, [rbp - 0x60]
call fcn.14007c010
lea rax, [r15 + rdi]
mov word [rbx + rax*2], r12w
lea rax, [rsp + 0x58]
jmp 0x140036639
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x60]
movzx r8d, byte [rsp + 0x40]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14002cb70
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400366ab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400366a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400367b8
call fcn.140079d08
mov ebx, 0xa
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 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 0x1400366e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400366e5
test esi, esi
jg 0x1400366b0
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
mov qword [rsp + 0x30], r12
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 0x140036768
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036763
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400367ac
call fcn.140079d08
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
mov rcx, r14
call fcn.14002a170
movzx eax, bl
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14007a190
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.14008066c
nop
call fcn.14002a5e0
int3
call fcn.14008066c
int3