Function at 0x416280
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 0x416328
cmp edi, 7
ja 0x4167c4
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 eax, 5
jbe 0x4164bf
mov ecx, 0x2000
xor ebx, ebx
xor eax, eax
inc eax
mov dl, byte [0x46e688]
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 0x416306
test bl, bl
je 0x416306
mov eax, dword [ebp - 0x14]
and eax, 0x1000
je 0x416306
cmp byte [ebp - 0x18], 0
jne 0x416533
test edi, edi
je 0x41635c
mov eax, dword [ebp + 0xc]
lock add dword [0x46e68c], eax
mov eax, edi
and eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x14]
jne 0x41633a
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0040d050
mov esi, eax
and esi, dword [ebp - 0x10]
add esi, dword [ebp + 0x14]
jmp 0x41629f
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x4167c7
mov eax, dword [ebp + 0xc]
lock sub dword [0x46e68c], eax
jmp 0x416372
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x46e67c], eax
xor edi, edi
test esi, esi
je 0x4164de
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
mov eax, dword [ebp - 0x20]
jne 0x4162ba
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea esi, [ecx + eax]
add esi, 0xffff0000
cmp esi, ecx
jb 0x4167ca
add eax, 0xffff0000
mov dword [ebp - 0x24], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x20], 5
jbe 0x416511
mov ecx, 0x2000
mov dword [ebp - 0x14], 0
mov bl, byte [0x46e688]
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 0x4163fe
cmp byte [ebp - 0x14], 0
je 0x4163fe
mov eax, dword [ebp - 0x10]
and eax, 0x1000
je 0x4163fe
test bl, bl
jne 0x416576
test edi, edi
je 0x41647b
lock add dword [0x46e68c], 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 0x41631e
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x4167cd
add ebx, edi
lock sub dword [0x46e68c], esi
sub esp, 8
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push ebx
call fcn.0040cc50
add esp, 0x14
mov edi, eax
test eax, eax
mov eax, 1
je 0x4163b3
mov eax, dword [ebp + 0xc]
lock add dword [0x46e68c], eax
jmp 0x41631e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x46e67c], eax
call fcn.0044d900
sub esp, 8
push dword [ebp + 0x18]
push esi
push 0
call fcn.0040cc50
add esp, 0x14
mov edi, eax
test eax, eax
jne 0x416402
xor edi, edi
jmp 0x41631e
mov eax, 0x20
mov bl, 1
mov ecx, 0x3000
jmp 0x4162cd
mov eax, dword [ebp - 0x20]
jmp dword [eax*4 + 0x458cc8]
mov eax, 4
jmp 0x4164b3
mov eax, 0x40
jmp 0x4164b3
mov bl, 1
mov eax, dword [ebp + 0x18]
jmp 0x4164b5
call fcn.0044d900
sub esp, 8
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push 0
call fcn.0040cc50
add esp, 0x14
mov edi, eax
test eax, eax
jne 0x41630a
jmp 0x4164a7
mov eax, 0x40
mov ecx, 0x3000
jmp 0x4163c9
mov al, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
jmp dword [eax*4 + 0x458ce0]
mov eax, 4
jmp 0x416507
mov eax, 0x20
jmp 0x416507
mov eax, dword [ebp + 0x18]
jmp 0x416507
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41654f
cmp eax, 0x27b
jne 0x41635c
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 0x41630a
jmp 0x4167d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x416592
cmp eax, 0x27b
jne 0x41647b
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 0x416402
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4165cf
cmp eax, 0x27b
jne 0x41647b
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 0x416402
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41660c
cmp eax, 0x27b
jne 0x41647b
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 0x416402
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x416649
cmp eax, 0x27b
jne 0x41647b
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 0x416402
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x416686
cmp eax, 0x27b
jne 0x41647b
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 0x416402
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4166c3
cmp eax, 0x27b
jne 0x41647b
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 0x416402
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x416700
cmp eax, 0x27b
jne 0x41647b
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 0x416402
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41673d
cmp eax, 0x27b
jne 0x41647b
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 0x416402
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41677a
cmp eax, 0x27b
jne 0x41647b
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 0x416402
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4167b7
cmp eax, 0x27b
jne 0x41647b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41647b
int3
int3
int3
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4167ec
cmp eax, 0x27b
jne 0x41635c
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 0x41630a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41682a
cmp eax, 0x27b
jne 0x41635c
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 0x41630a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x416868
cmp eax, 0x27b
jne 0x41635c
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 0x41630a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4168a6
cmp eax, 0x27b
jne 0x41635c
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 0x41630a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4168e4
cmp eax, 0x27b
jne 0x41635c
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 0x41630a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x416922
cmp eax, 0x27b
jne 0x41635c
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 0x41630a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x416960
cmp eax, 0x27b
jne 0x41635c
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 0x41630a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x41699e
cmp eax, 0x27b
jne 0x41635c
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 0x41630a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4169dc
cmp eax, 0x27b
jne 0x41635c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41635c