Function at 0x1c7db60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov al, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
lea ecx, [eax - 2]
cmp ecx, 2
jae 0x1c7dbb1
mov esi, 4
movzx ebx, byte [0x1d1bddc]
push esi
push 0x1000
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp byte [ebp - 0x10], 0
je 0x1c7dba4
test bl, bl
je 0x1c7dba4
test eax, eax
je 0x1c7dbcd
test eax, eax
setne al
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 6
ja case.0x1c7dbbf.2
mov esi, 2
jmp dword [eax*4 + 0x1cfc528]
mov esi, 0x40
jmp case.0x1c7dbbf.1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c7dbe9
cmp eax, 0x27b
jne 0x1c7ddfd
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x1000
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c7dba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c7dc21
cmp eax, 0x27b
jne 0x1c7ddfd
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x1000
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c7dba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c7dc5d
cmp eax, 0x27b
jne 0x1c7ddfd
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x1000
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c7dba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c7dc99
cmp eax, 0x27b
jne 0x1c7ddfd
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x1000
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c7dba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c7dcd5
cmp eax, 0x27b
jne 0x1c7ddfd
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x1000
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c7dba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c7dd11
cmp eax, 0x27b
jne 0x1c7ddfd
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x1000
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c7dba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c7dd4d
cmp eax, 0x27b
jne 0x1c7ddfd
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x1000
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c7dba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c7dd85
cmp eax, 0x27b
jne 0x1c7ddfd
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x1000
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c7dba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c7ddbd
cmp eax, 0x27b
jne 0x1c7ddfd
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x1000
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c7dba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c7ddf5
cmp eax, 0x27b
jne 0x1c7ddfd
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x1c7dba4
xor esi, esi
inc esi
mov dword [ebp - 0x10], 0
jmp case.0x1c7dbbf.1
mov esi, 0x20
jmp case.0x1c7dbbf.1
push 0x4000
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1c7dba4