Function at 0x40d030
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 0x40d09c
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 [0x46e4a0]
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 0x40d08c
cmp byte [ebp - 0x14], 0
je 0x40d08c
mov ecx, ebx
and ecx, 0x1000
je 0x40d08c
cmp byte [ebp - 0xd], 0
jne 0x40d0c2
test eax, eax
je 0x40d2ce
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 + 0x458c00]
mov esi, 4
jmp case.0x40d0a6.1
mov esi, 0x20
jmp case.0x40d0a6.1
mov esi, 0x40
jmp case.0x40d0a6.1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x40d0de
cmp eax, 0x27b
jne 0x40d2ce
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 0x40d094
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x40d112
cmp eax, 0x27b
jne 0x40d2ce
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 0x40d094
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x40d14a
cmp eax, 0x27b
jne 0x40d2ce
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 0x40d094
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x40d182
cmp eax, 0x27b
jne 0x40d2ce
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 0x40d094
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x40d1ba
cmp eax, 0x27b
jne 0x40d2ce
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 0x40d094
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x40d1f2
cmp eax, 0x27b
jne 0x40d2ce
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 0x40d094
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x40d22a
cmp eax, 0x27b
jne 0x40d2ce
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 0x40d094
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x40d25e
cmp eax, 0x27b
jne 0x40d2ce
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 0x40d094
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x40d292
cmp eax, 0x27b
jne 0x40d2ce
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 0x40d094
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x40d2c6
cmp eax, 0x27b
jne 0x40d2ce
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x46e494], eax
xor eax, eax
jmp 0x40d094