Function at 0x1c502f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, eax
neg ecx
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x1c504fc
dec eax
mov dword [ebp - 0x28], eax
xor eax, eax
test edi, edi
setne al
or eax, 2
shl eax, 0xc
mov cl, 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], eax
and eax, 0x1000
mov dword [ebp - 0x2c], eax
lea eax, [edi - 1]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 5
jbe 0x1c50512
mov dword [ebp - 0x1c], 0
xor ecx, ecx
inc ecx
mov bl, byte [0x1d1bddc]
mov dword [ebp - 0x18], ecx
push ecx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c5037d
test bl, bl
je 0x1c5037d
cmp byte [ebp - 0x1c], 0
je 0x1c5037d
cmp dword [ebp - 0x2c], 0
jne 0x1c50563
test edi, edi
je 0x1c503bb
mov eax, dword [ebp + 0xc]
lock add dword [0x1d1bde0], eax
mov eax, edi
and eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x14]
je 0x1c504f2
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x1c50530
mov eax, dword [ebp + 0xc]
lock sub dword [0x1d1bde0], eax
jmp 0x1c503d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x1d1bdd0], eax
xor edi, edi
test esi, esi
je 0x1c50533
add edi, dword [ebp - 0x28]
and edi, dword [ebp - 0x14]
add edi, dword [ebp + 0x14]
mov esi, edi
test byte [ebp - 0x20], 1
mov dword [ebp - 0x20], 0
jne 0x1c50338
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea esi, [ecx + eax]
add esi, 0xffff0000
cmp esi, ecx
jb 0x1c507ea
add eax, 0xffff0000
mov dword [ebp - 0x20], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x24], 5
jbe 0x1c507cc
mov dword [ebp - 0x1c], 0
mov ecx, eax
mov bl, byte [0x1d1bddc]
mov dword [ebp - 0x14], ecx
push ecx
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50452
test bl, bl
je 0x1c50452
cmp byte [ebp - 0x1c], 0
je 0x1c50452
cmp dword [ebp - 0x2c], 0
jne 0x1c507ed
test edi, edi
jne 0x1c50482
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x1d1bdd0], eax
call fcn.01cd8990
sub esp, 8
push dword [ebp + 0x18]
push esi
push 0
call fcn.01c4ff70
add esp, 0x14
mov edi, eax
test eax, eax
je 0x1c50555
lock add dword [0x1d1bde0], esi
mov eax, edi
and eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x14]
sub ecx, eax
mov eax, 0
cmovb eax, dword [ebp + 0x10]
lea ebx, [ecx + eax]
mov eax, dword [ebp - 0x20]
sub eax, ebx
or eax, ebx
je 0x1c504f2
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x1c507c9
add ebx, edi
lock sub dword [0x1d1bde0], esi
sub esp, 8
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push ebx
call fcn.01c4ff70
add esp, 0x14
mov edi, eax
test eax, eax
mov eax, 1
je 0x1c5040f
mov eax, dword [ebp + 0xc]
lock add dword [0x1d1bde0], eax
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, eax
call fcn.01c81c70
mov esi, eax
mov eax, ebx
and esi, dword [ebp - 0x14]
add esi, dword [ebp + 0x14]
jmp 0x1c50311
mov ecx, 2
mov al, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x1cfc4f8]
mov ecx, 4
jmp 0x1c507bf
int3
call fcn.01cd8990
sub esp, 8
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push 0
call fcn.01c4ff70
add esp, 0x14
mov edi, eax
test eax, eax
jne 0x1c50381
xor edi, edi
jmp 0x1c504f2
mov ecx, 0x20
jmp 0x1c507bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c5057f
cmp eax, 0x27b
jne 0x1c503bb
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50381
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c505bd
cmp eax, 0x27b
jne 0x1c503bb
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50381
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c505fb
cmp eax, 0x27b
jne 0x1c503bb
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50381
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c50639
cmp eax, 0x27b
jne 0x1c503bb
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50381
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c50677
cmp eax, 0x27b
jne 0x1c503bb
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50381
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c506b5
cmp eax, 0x27b
jne 0x1c503bb
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50381
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c506f3
cmp eax, 0x27b
jne 0x1c503bb
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50381
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c50731
cmp eax, 0x27b
jne 0x1c503bb
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50381
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c5076f
cmp eax, 0x27b
jne 0x1c503bb
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50381
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c507ad
cmp eax, 0x27b
jne 0x1c503bb
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1c503bb
mov ecx, 0x40
mov al, 1
mov dword [ebp - 0x1c], eax
jmp case.0x1c5051f.0
int3
mov ecx, 2
mov al, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x1cfc510]
mov ecx, 4
jmp case.0x1c507d9.0
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c50809
cmp eax, 0x27b
jne 0x1c50456
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50482
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c50846
cmp eax, 0x27b
jne 0x1c50456
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50482
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c50883
cmp eax, 0x27b
jne 0x1c50456
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50482
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c508c0
cmp eax, 0x27b
jne 0x1c50456
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50482
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c508fd
cmp eax, 0x27b
jne 0x1c50456
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50482
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c5093a
cmp eax, 0x27b
jne 0x1c50456
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50482
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c50977
cmp eax, 0x27b
jne 0x1c50456
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50482
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c509b4
cmp eax, 0x27b
jne 0x1c50456
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50482
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c509f1
cmp eax, 0x27b
jne 0x1c50456
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x1c50482
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c50a2e
cmp eax, 0x27b
jne 0x1c50456
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1c50456
mov ecx, 0x20
jmp case.0x1c507d9.0
mov ecx, 0x40
jmp case.0x1c507d9.0