Function at 0x419f90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
neg eax
mov dword [ebp - 0x10], eax
test esi, esi
je 0x41a039
cmp edi, 7
ja 0x41a4d5
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp - 0x28], eax
mov al, 1
mov dword [ebp - 0x24], eax
lea eax, [edi - 2]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 5
jbe 0x41a1bc
mov ecx, 0x2000
xor ebx, ebx
xor eax, eax
inc eax
mov dl, byte [0x567724]
mov byte [ebp - 0x18], dl
mov dword [ebp - 0x1c], eax
push eax
mov dword [ebp - 0x14], ecx
push ecx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a017
test bl, bl
je 0x41a017
mov eax, dword [ebp - 0x14]
and eax, 0x1000
je 0x41a017
cmp byte [ebp - 0x18], 0
jne 0x41a241
test edi, edi
je 0x41a06d
mov eax, dword [ebp + 0xc]
lock add dword [0x567728], eax
mov eax, edi
and eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x14]
jne 0x41a04b
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0045cd40
mov esi, eax
and esi, dword [ebp - 0x10]
add esi, dword [ebp + 0x14]
jmp 0x419faf
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x41a4d2
mov eax, dword [ebp + 0xc]
lock sub dword [0x567728], eax
jmp 0x41a083
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x567718], eax
xor edi, edi
test esi, esi
je 0x41a1ec
add edi, dword [ebp - 0x28]
and edi, dword [ebp - 0x10]
add edi, dword [ebp + 0x14]
mov esi, edi
test byte [ebp - 0x24], 1
mov dword [ebp - 0x24], 0
jne 0x419fca
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea esi, [ecx + eax]
add esi, 0xffff0000
cmp esi, ecx
jb 0x41a4d8
add eax, 0xffff0000
mov dword [ebp - 0x24], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x20], 5
jbe 0x41a21d
mov ecx, 0x2000
mov dword [ebp - 0x14], 0
mov bl, byte [0x567724]
mov dword [ebp - 0x18], eax
push eax
mov dword [ebp - 0x10], ecx
push ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a10c
cmp byte [ebp - 0x14], 0
je 0x41a10c
mov eax, dword [ebp - 0x10]
and eax, 0x1000
je 0x41a10c
test bl, bl
jne 0x41a284
test edi, edi
je 0x41a189
lock add dword [0x567728], 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 - 0x24]
sub eax, ebx
or eax, ebx
je 0x41a02f
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x41a4db
add ebx, edi
lock sub dword [0x567728], esi
sub esp, 8
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push ebx
call fcn.00419c10
add esp, 0x14
mov edi, eax
test eax, eax
mov eax, 1
je 0x41a0c1
mov eax, dword [ebp + 0xc]
lock add dword [0x567728], eax
jmp 0x41a02f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x567718], eax
call fcn.004d69d0
sub esp, 8
push dword [ebp + 0x18]
push esi
push 0
call fcn.00419c10
add esp, 0x14
mov edi, eax
test eax, eax
jne 0x41a110
xor edi, edi
jmp 0x41a02f
mov eax, dword [ebp - 0x20]
jmp dword [eax*4 + 0x53e288]
mov eax, 4
jmp 0x41a1e0
mov eax, 0x40
jmp 0x41a1e0
mov bl, 1
mov eax, dword [ebp + 0x18]
jmp 0x41a1e2
mov eax, 0x20
mov bl, 1
mov ecx, 0x3000
jmp 0x419fde
call fcn.004d69d0
sub esp, 8
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push 0
call fcn.00419c10
add esp, 0x14
mov edi, eax
test eax, eax
jne 0x41a01b
jmp 0x41a1b5
mov eax, dword [ebp + 0x18]
mov ecx, 0x3000
jmp 0x41a0d7
mov al, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
jmp dword [eax*4 + 0x53e2a0]
mov eax, 0x20
jmp 0x41a213
mov eax, 4
jmp 0x41a213
mov eax, 0x40
jmp 0x41a213
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a25d
cmp eax, 0x27b
jne 0x41a06d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a01b
jmp 0x41a4de
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a2a0
cmp eax, 0x27b
jne 0x41a189
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a110
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a2dd
cmp eax, 0x27b
jne 0x41a189
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a110
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a31a
cmp eax, 0x27b
jne 0x41a189
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a110
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a357
cmp eax, 0x27b
jne 0x41a189
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a110
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a394
cmp eax, 0x27b
jne 0x41a189
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a110
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a3d1
cmp eax, 0x27b
jne 0x41a189
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a110
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a40e
cmp eax, 0x27b
jne 0x41a189
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a110
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a44b
cmp eax, 0x27b
jne 0x41a189
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a110
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a488
cmp eax, 0x27b
jne 0x41a189
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a110
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a4c5
cmp eax, 0x27b
jne 0x41a189
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41a189
int3
int3
int3
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a4fa
cmp eax, 0x27b
jne 0x41a06d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a01b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a538
cmp eax, 0x27b
jne 0x41a06d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a01b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a576
cmp eax, 0x27b
jne 0x41a06d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a01b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a5b4
cmp eax, 0x27b
jne 0x41a06d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a01b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a5f2
cmp eax, 0x27b
jne 0x41a06d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a01b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a630
cmp eax, 0x27b
jne 0x41a06d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a01b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a66e
cmp eax, 0x27b
jne 0x41a06d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a01b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a6ac
cmp eax, 0x27b
jne 0x41a06d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x41a01b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41a6ea
cmp eax, 0x27b
jne 0x41a06d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41a06d