Function at 0x140035c50
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov r12d, r9d
mov r15, rcx
lea r8, [0x140117ca0]
lea r9, [rsp + 0x70]
lea rcx, [0x1400fe9b0]
lea rdx, [0x1400f9cb8]
xor ebx, ebx
mov qword [rsp + 0x70], rbx
call fcn.1400536e0
lea r9, [rsp + 0x70]
lea r8, [0x140117ca8]
lea rdx, [0x1400f9cb8]
lea rcx, [0x1400fe998]
call fcn.1400536e0
mov r14d, dword [rsp + 0x310]
mov r8, qword [fcn.140117a88]
xor eax, eax
and r14d, 0x10
mov word [rsp + 0x40], bx
mov qword [rsp + 0x42], rax
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
mov dword [rsp + 0x68], ebx
cmp r8, rbx
jne 0x140035cfb
mov eax, 3
jmp 0x140036293
mov rsi, qword [rsp + 0x300]
cmp r14d, ebx
je 0x140035d2a
cmp rsi, rbx
je 0x140035d2a
movzx eax, word [rsi]
cmp ax, 0x41
jb 0x140035d2a
cmp ax, 0x5a
ja 0x140035d2a
or ax, 0x20
mov word [rsi], ax
mov r8, qword [fcn.140117a88]
lea rdx, [0x1400fe970]
lea rcx, [rsp + 0x40]
call r8
mov r13d, 0xc0000000
lea rcx, [rsp + 0x40]
mov edx, r13d
call qword [0x140117f28]
or rdi, 0xffffffffffffffff
jmp 0x140035d85
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x140035db3
lea rcx, [0x1400fe5f8]
call qword [0x140117f48]
cmp eax, ebx
je 0x140035da3
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
lea rcx, [rsp + 0x40]
mov edx, r13d
call qword [0x140117f28]
mov rbp, rax
cmp rax, rdi
je 0x140035d53
mov rcx, rax
call fcn.14001a88c
cmp eax, ebx
jne 0x140035dbd
mov edi, 5
jmp 0x14003619f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, 4
jmp 0x140036293
mov eax, 6
jmp 0x140036293
mov r13d, r12d
mov ebx, r12d
xor r12d, r12d
and r13d, 0xf000
and ebx, 0xf00
mov edx, r12d
cmp r13d, 0x1000
mov ecx, r12d
mov eax, r12d
sete dl
cmp ebx, 0x100
sete cl
cmp ebx, r12d
sete al
or ecx, eax
test edx, ecx
je 0x140035e6f
lea rdx, [0x1400fe948]
lea rcx, [rsp + 0x58]
call qword [fcn.140117a88]
jmp 0x140035e3c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x140035eeb
lea rcx, [0x1400fe930]
call qword [0x140117f48]
cmp eax, r12d
je 0x140035e5f
lea rcx, [0x1400fe900]
call fcn.1400dedf0
lea rcx, [rsp + 0x58]
mov edx, 0xc0000000
call qword [0x140117f28]
cmp rax, rdi
je 0x140035e0f
mov rcx, rax
call qword [fcn.140117c78]
jmp 0x140035eeb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, 7
jmp 0x14003619f
cmp r13d, 0x2000
mov ecx, r12d
mov eax, r12d
sete cl
or ecx, edx
cmp ebx, 0x300
sete al
test eax, ecx
je 0x140035eeb
lea rcx, [0x1400fe8d8]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_WaitNamedPipeW]
cmp eax, r12d
jne 0x140035eeb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x140035eeb
lea rcx, [0x1400fe8c0]
call qword [0x140117f48]
cmp eax, r12d
je 0x140035e5f
jmp 0x140035ed7
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x140035eeb
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.DLL_Sleep]
lea rcx, [0x1400fe8d8]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_WaitNamedPipeW]
cmp eax, r12d
je 0x140035ec1
mov r12, qword [rsp + 0x2f0]
test r12, r12
jne 0x14003603b
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [fcn.140117a88]
xor r13d, r13d
movzx eax, word [rsp + 0x40]
lea rcx, [rsp + 0x50]
add eax, eax
movsxd rdx, eax
add rdx, 0x38
call fcn.140059ed8
mov rbx, qword [rsp + 0x50]
movzx r8d, word [rsp + 0x40]
add r8, 0x38
mov rcx, rbx
xor edx, edx
call fcn.1400dd9e0
mov edi, 0x3a
cmp rsi, r13
je 0x140035f79
cmp r14d, r13d
jne 0x140035f79
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 2
jne 0x140035f60
cmp word [rsi + 2], di
je 0x140035f72
cmp eax, 3
jne 0x140035f79
cmp word [rsi + 2], di
jne 0x140035f79
cmp word [rsi + 4], 0x5c
jne 0x140035f79
movzx eax, word [rsi]
mov word [rbx + 0x2c], ax
mov eax, dword [r15]
mov rcx, qword [rsp + 0x2d8]
mov dword [rbx], eax
mov rax, qword [rcx]
mov qword [rbx + 8], rax
mov rax, qword [rcx + 8]
mov qword [rbx + 0x10], rax
mov rax, qword [rcx + 0x10]
mov qword [rbx + 0x18], rax
mov rax, qword [rsp + 0x2e0]
mov rax, qword [rax]
mov qword [rbx + 0x20], rax
mov eax, dword [rsp + 0x2e8]
mov dword [rbx + 0x28], eax
movzx eax, word [rsp + 0x40]
mov word [rbx + 0x2e], ax
movzx eax, word [rsp + 0x40]
cmp ax, r13w
je 0x140035fe7
mov rdx, qword [rsp + 0x48]
lea rcx, [rbx + 0x30]
movzx r8d, ax
call fcn.1400de630
lea rcx, [rsp + 0x40]
call qword [0x140117ca8]
movzx r9d, word [rbx + 0x2e]
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
add r9d, 0x38
mov r8, rbx
mov dword [rsp + 0x28], r9d
mov edx, 0x8372e004
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov rcx, rbp
cmp eax, r13d
jne 0x1400361af
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.140052160
jmp 0x140035cf1
cmp dword [rsp + 0x2f8], 0
je 0x14003605b
lea rcx, [rsp + 0x40]
mov rdx, r12
call qword [0x140117ca0]
xor r13d, r13d
jmp 0x140036196
xor ecx, ecx
cmp r13d, 0x3000
sete cl
xor r13d, r13d
cmp ebx, 0x300
mov eax, r13d
sete al
xor r9d, r9d
test eax, ecx
je 0x140036168
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 1]
lea rcx, [0x1400fe8a8]
xor edx, edx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, r13d
cmp eax, 2
mov ecx, r13d
lea r13, [0x1400fe880]
sete dl
cmp rbx, rdi
lea rax, [0x1400fe848]
sete cl
test ecx, edx
cmove r13, rax
cmp rbx, rdi
je 0x1400360e6
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov rcx, r12
movsxd rbx, eax
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ecx, [rax + rbx + 2]
movsxd rdx, ecx
lea rcx, [rsp + 0x58]
call fcn.14005a1c4
mov rbx, qword [rsp + 0x58]
test rbx, rbx
jne 0x14003612b
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rcx, [rsp + 0x58]
call fcn.140052160
jmp 0x1400361a8
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call qword [0x140117ca0]
xor r13d, r13d
cmp eax, r13d
je 0x140036116
lea rcx, [rsp + 0x58]
call fcn.140052160
jmp 0x140035f0c
lea r8, [0x140117c98]
lea rdx, [0x1400f9cb8]
lea rcx, [0x1400fe828]
call fcn.1400536e0
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call qword [0x140117c98]
cmp eax, r13d
jne 0x140035f0c
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
jmp 0x140036293
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov r11d, dword [rbx]
mov dword [r15], r11d
cmp rsi, r13
je 0x140036270
mov r9d, dword [rbx]
lea r8, [0x1400fd950]
lea rcx, [rsp + 0x80]
mov edx, 0x103
mov word [rsp + 0x80], r13w
call fcn.1400ded08
mov word [rsp + 0x286], r13w
cmp word [rbx + 0x2c], r13w
jne 0x140036252
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [0x140117f50]
cmp eax, r13d
jne 0x140036270
call qword [sym.imp.KERNEL32.DLL_GetLastError]
sub eax, 1
je 0x14003624c
sub eax, 0x56
je 0x14003624c
sub eax, edi
je 0x14003624c
sub eax, 0x7a
je 0x14003624c
sub eax, 0x101b
je 0x14003624c
cmp eax, 2
jne 0x14003624c
call fcn.1400de970
lea rdx, [0x1400fe800]
mov r8, rsi
lea rcx, [rax + 0x60]
call fcn.14001a87c
mov word [rsi], r13w
jmp 0x140036270
lea rcx, [rsp + 0x80]
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov byte [rsp + 0x20], r13b
call fcn.14006a24c
mov r8, qword [rsp + 0x308]
cmp r8, r13
je 0x140036287
mov ecx, dword [rbx]
mov rdx, rsi
call fcn.140029bc4
lea rcx, [rsp + 0x50]
call fcn.140052160
xor eax, eax
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret