Function at 0x140021f80
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov esi, r9d
mov edi, r8d
mov rbx, rdx
mov r14, rcx
mov bpl, byte [0x14012dd08]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, 1
je 0x140021fbc
mov ecx, edi
and ecx, 0x1000
je 0x140021fbc
test bpl, bpl
je 0x140021fbc
test rax, rax
je 0x140021fcb
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x140021fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x5ae]
cmp ecx, 2
jb 0x140021fe8
cmp eax, 0x27b
je 0x140021fe8
cmp eax, 8
jne 0x140021fc7
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
mov r9d, esi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140021fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x5ae]
cmp ecx, 2
jb 0x140022027
cmp eax, 0x27b
je 0x140022027
cmp eax, 8
jne 0x140021fc7
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
mov r9d, esi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140021fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x5ae]
cmp ecx, 2
jb 0x14002206e
cmp eax, 0x27b
je 0x14002206e
cmp eax, 8
jne 0x140021fc7
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
mov r9d, esi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140021fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x5ae]
cmp ecx, 2
jb 0x1400220b5
cmp eax, 0x27b
je 0x1400220b5
cmp eax, 8
jne 0x140021fc7
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
mov r9d, esi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140021fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x5ae]
cmp ecx, 2
jb 0x1400220fc
cmp eax, 0x27b
je 0x1400220fc
cmp eax, 8
jne 0x140021fc7
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
mov r9d, esi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140021fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x5ae]
cmp ecx, 2
jb 0x140022143
cmp eax, 0x27b
je 0x140022143
cmp eax, 8
jne 0x140021fc7
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
mov r9d, esi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140021fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x5ae]
cmp ecx, 2
jb 0x14002218a
cmp eax, 0x27b
je 0x14002218a
cmp eax, 8
jne 0x140021fc7
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
mov r9d, esi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140021fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x5ae]
cmp ecx, 2
jb 0x1400221d1
cmp eax, 0x27b
je 0x1400221d1
cmp eax, 8
jne 0x140021fc7
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
mov r9d, esi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140021fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x5ae]
cmp ecx, 2
jb 0x140022218
cmp eax, 0x27b
je 0x140022218
cmp eax, 8
jne 0x140021fc7
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
mov r9d, esi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140021fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x5ae]
cmp ecx, 2
jb 0x14002225f
cmp eax, 0x27b
je 0x14002225f
cmp eax, 8
jne 0x140021fc7
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140021fc7