Function at 0x1c51c50
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 0x1c51e5c
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 0x1c51e72
mov dword [ebp - 0x1c], 0
xor ecx, ecx
inc ecx
mov bl, byte [0x1d42cd0]
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 0x1c51cdd
test bl, bl
je 0x1c51cdd
cmp byte [ebp - 0x1c], 0
je 0x1c51cdd
cmp dword [ebp - 0x2c], 0
jne 0x1c51ec3
test edi, edi
je 0x1c51d1b
mov eax, dword [ebp + 0xc]
lock add dword [0x1d42cd4], eax
mov eax, edi
and eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x14]
je 0x1c51e52
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x1c51e90
mov eax, dword [ebp + 0xc]
lock sub dword [0x1d42cd4], eax
jmp 0x1c51d31
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x1d42cc4], eax
xor edi, edi
test esi, esi
je 0x1c51e93
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 0x1c51c98
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea esi, [ecx + eax]
add esi, 0xffff0000
cmp esi, ecx
jb 0x1c5214a
add eax, 0xffff0000
mov dword [ebp - 0x20], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x24], 5
jbe 0x1c52129
mov dword [ebp - 0x1c], 0
mov ecx, eax
mov bl, byte [0x1d42cd0]
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 0x1c51db2
test bl, bl
je 0x1c51db2
cmp byte [ebp - 0x1c], 0
je 0x1c51db2
cmp dword [ebp - 0x2c], 0
jne 0x1c5214d
test edi, edi
jne 0x1c51de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x1d42cc4], eax
call fcn.01ce0000
sub esp, 8
push dword [ebp + 0x18]
push esi
push 0
call fcn.01c518d0
add esp, 0x14
mov edi, eax
test eax, eax
je 0x1c51eb5
lock add dword [0x1d42cd4], 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 0x1c51e52
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x1c52147
add ebx, edi
lock sub dword [0x1d42cd4], esi
sub esp, 8
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push ebx
call fcn.01c518d0
add esp, 0x14
mov edi, eax
test eax, eax
mov eax, 1
je 0x1c51d6f
mov eax, dword [ebp + 0xc]
lock add dword [0x1d42cd4], eax
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, eax
call fcn.01c85de0
mov esi, eax
mov eax, ebx
and esi, dword [ebp - 0x14]
add esi, dword [ebp + 0x14]
jmp 0x1c51c71
mov ecx, 2
mov al, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x1d0aeb0]
mov ecx, 4
jmp 0x1c5211f
int3
call fcn.01ce0000
sub esp, 8
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push 0
call fcn.01c518d0
add esp, 0x14
mov edi, eax
test eax, eax
jne 0x1c51ce1
xor edi, edi
jmp 0x1c51e52
mov ecx, 0x20
jmp 0x1c5211f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c51edf
cmp eax, 0x27b
jne 0x1c51d1b
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 0x1c51ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c51f1d
cmp eax, 0x27b
jne 0x1c51d1b
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 0x1c51ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c51f5b
cmp eax, 0x27b
jne 0x1c51d1b
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 0x1c51ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c51f99
cmp eax, 0x27b
jne 0x1c51d1b
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 0x1c51ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c51fd7
cmp eax, 0x27b
jne 0x1c51d1b
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 0x1c51ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c52015
cmp eax, 0x27b
jne 0x1c51d1b
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 0x1c51ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c52053
cmp eax, 0x27b
jne 0x1c51d1b
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 0x1c51ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c52091
cmp eax, 0x27b
jne 0x1c51d1b
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 0x1c51ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c520cf
cmp eax, 0x27b
jne 0x1c51d1b
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 0x1c51ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c5210d
cmp eax, 0x27b
jne 0x1c51d1b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1c51d1b
mov ecx, 0x40
mov al, 1
mov dword [ebp - 0x1c], eax
jmp case.0x1c51e7f.0
mov ecx, 2
mov al, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x1d0aec8]
mov ecx, 4
jmp case.0x1c52136.0
int3
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c52169
cmp eax, 0x27b
jne 0x1c51db6
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 0x1c51de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c521a6
cmp eax, 0x27b
jne 0x1c51db6
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 0x1c51de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c521e3
cmp eax, 0x27b
jne 0x1c51db6
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 0x1c51de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c52220
cmp eax, 0x27b
jne 0x1c51db6
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 0x1c51de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c5225d
cmp eax, 0x27b
jne 0x1c51db6
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 0x1c51de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c5229a
cmp eax, 0x27b
jne 0x1c51db6
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 0x1c51de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c522d7
cmp eax, 0x27b
jne 0x1c51db6
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 0x1c51de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c52314
cmp eax, 0x27b
jne 0x1c51db6
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 0x1c51de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c52351
cmp eax, 0x27b
jne 0x1c51db6
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 0x1c51de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x1c5238e
cmp eax, 0x27b
jne 0x1c51db6
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1c51db6
mov ecx, 0x20
jmp case.0x1c52136.0
mov ecx, 0x40
jmp case.0x1c52136.0