Function at 0x436720
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 0x43678c
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 [0x55d334]
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 0x43677c
cmp byte [ebp - 0x14], 0
je 0x43677c
mov ecx, ebx
and ecx, 0x1000
je 0x43677c
cmp byte [ebp - 0xd], 0
jne 0x4367b2
test eax, eax
je 0x4369be
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 + 0x53a6f0]
mov esi, 4
jmp case.0x436796.1
mov esi, 0x20
jmp case.0x436796.1
mov esi, 0x40
jmp case.0x436796.1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4367ce
cmp eax, 0x27b
jne 0x4369be
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 0x436784
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436802
cmp eax, 0x27b
jne 0x4369be
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 0x436784
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x43683a
cmp eax, 0x27b
jne 0x4369be
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 0x436784
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436872
cmp eax, 0x27b
jne 0x4369be
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 0x436784
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4368aa
cmp eax, 0x27b
jne 0x4369be
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 0x436784
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4368e2
cmp eax, 0x27b
jne 0x4369be
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 0x436784
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x43691a
cmp eax, 0x27b
jne 0x4369be
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 0x436784
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x43694e
cmp eax, 0x27b
jne 0x4369be
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 0x436784
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436982
cmp eax, 0x27b
jne 0x4369be
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 0x436784
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4369b6
cmp eax, 0x27b
jne 0x4369be
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x55d328], eax
xor eax, eax
jmp 0x436784