Function at 0x420970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, edi
shr ebx, 0xc
and bl, byte [0x4bdf68]
cmp esi, 1
setne byte [ebp - 0xd]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
sete cl
and cl, byte [ebp - 0xd]
and cl, bl
cmp cl, 1
je 0x4209b4
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4209d5
cmp eax, 0x27b
je 0x4209d5
xor eax, eax
jmp 0x4209ac
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4209ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x420a05
cmp eax, 0x27b
jne 0x4209d1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4209ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x420a35
cmp eax, 0x27b
jne 0x4209d1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4209ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x420a6d
cmp eax, 0x27b
jne 0x4209d1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4209ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x420aa5
cmp eax, 0x27b
jne 0x4209d1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4209ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x420add
cmp eax, 0x27b
jne 0x4209d1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4209ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x420b15
cmp eax, 0x27b
jne 0x4209d1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4209ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x420b4d
cmp eax, 0x27b
jne 0x4209d1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4209ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x420b85
cmp eax, 0x27b
jne 0x4209d1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4209ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x420bbd
cmp eax, 0x27b
jne 0x4209d1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4209d1