Function at 0x588300
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 [0x7c2110]
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
jne 0x588375
mov ebx, esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x58835d
cmp eax, 0x27b
je 0x58835d
xor eax, eax
jmp 0x588375
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
je 0x58837d
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x588395
cmp eax, 0x27b
jne 0x588359
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 0x588375
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x5883c5
cmp eax, 0x27b
jne 0x588359
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 0x588375
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x5883f9
cmp eax, 0x27b
jne 0x588359
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 0x588375
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x588431
cmp eax, 0x27b
jne 0x588359
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 0x588375
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x588469
cmp eax, 0x27b
jne 0x588359
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 0x588375
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x5884a1
cmp eax, 0x27b
jne 0x588359
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 0x588375
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x5884d9
cmp eax, 0x27b
jne 0x588359
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 0x588375
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x588511
cmp eax, 0x27b
jne 0x588359
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 0x588375
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x588549
cmp eax, 0x27b
jne 0x588359
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x588359