Function at 0x1c518d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
lea ecx, [eax - 1]
cmp ecx, 5
jbe 0x1c51946
xor esi, esi
inc esi
mov dword [ebp - 0x14], 0
xor ebx, ebx
test eax, eax
setne bl
or ebx, 2
shl ebx, 0xc
mov al, byte [0x1d42cd0]
mov byte [ebp - 0xd], al
push esi
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c5192c
cmp byte [ebp - 0x14], 0
je 0x1c5192c
mov ecx, ebx
and ecx, 0x1000
je 0x1c5192c
cmp byte [ebp - 0xd], 0
jne 0x1c5196c
test eax, eax
jne 0x1c5193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x1d42cc4], eax
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, 2
mov dl, 1
mov dword [ebp - 0x14], edx
jmp dword [ecx*4 + 0x1d0ae7c]
mov esi, 4
jmp case.0x1c51950.1
mov esi, 0x20
jmp case.0x1c51950.1
mov esi, 0x40
jmp case.0x1c51950.1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c51984
cmp eax, 0x27b
jne 0x1c51930
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c5193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c519b8
cmp eax, 0x27b
jne 0x1c51930
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c5193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c519f0
cmp eax, 0x27b
jne 0x1c51930
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c5193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c51a28
cmp eax, 0x27b
jne 0x1c51930
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c5193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c51a60
cmp eax, 0x27b
jne 0x1c51930
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c5193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c51a98
cmp eax, 0x27b
jne 0x1c51930
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c5193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c51ad0
cmp eax, 0x27b
jne 0x1c51930
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c5193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c51b08
cmp eax, 0x27b
jne 0x1c51930
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c5193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c51b40
cmp eax, 0x27b
jne 0x1c51930
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1c5193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c51b78
cmp eax, 0x27b
jne 0x1c51930
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1c51930