Function at 0x401ef0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4499d7
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x45a770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x268]
call fcn.00404880
lea ecx, [ebp - 0x280]
mov dword [ebp - 4], 0
call fcn.00404710
push str.WifiHelper_
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.00402a60
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x26c], 8
jb 0x401f6e
push dword [ebp - 0x280]
call fcn.00430ba0
add esp, 4
xor eax, eax
mov dword [ebp - 0x26c], 7
cmp dword [ebp - 0x224], 8
mov word [ebp - 0x280], ax
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
mov dword [ebp - 0x270], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401faf
test al, 0x10
jne 0x401fc8
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
cmovae ecx, dword [ebp - 0x238]
call fcn.004010f0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00435c90
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.wfres__x.tmp
lea eax, [ebp - 0x218]
push 0xffffffffffffffff
push eax
call fcn.00402bf0
add esp, 0x10
cmp word [ebp - 0x218], 0
jne 0x402011
xor ecx, ecx
jmp 0x40202f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402020
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x268]
call fcn.004025a0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [ebp - 0x254], 8
lea esi, [ebp - 0x268]
push 0x450fe0
cmovae esi, dword [ebp - 0x268]
mov edi, eax
push 0x8a
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40215c
push eax
mov edx, esi
mov ecx, edi
call fcn.00405ef0
add esp, 4
test eax, eax
je 0x40215c
push ecx
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x250]
call fcn.00406180
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 4], 4
push 0
movq qword [ebp - 0x220], xmm0
push 0
mov dword [ebp - 0x21c], 0
call fcn.00402a20
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 5
lea edx, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x250]
cmovae edx, dword [ebp - 0x238]
cmp dword [ebp - 0x23c], 0x10
push eax
cmovae ecx, dword [ebp - 0x250]
call fcn.0040c9d0
add esp, 4
lea ecx, [ebp - 0x220]
lea esi, [eax - 1]
neg esi
sbb esi, esi
neg esi
call fcn.00402830
push dword [ebp - 0x220]
call fcn.00430ba0
add esp, 4
cmp dword [ebp - 0x23c], 0x10
jb 0x40213f
push dword [ebp - 0x250]
call fcn.00430ba0
add esp, 4
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
jmp 0x40215e
xor esi, esi
cmp dword [ebp - 0x224], 8
jb 0x402175
push dword [ebp - 0x238]
call fcn.00430ba0
add esp, 4
xor eax, eax
mov dword [ebp - 0x224], 7
cmp dword [ebp - 0x254], 8
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
jb 0x4021a9
push dword [ebp - 0x268]
call fcn.00430ba0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430ba5
mov esp, ebp
pop ebp
ret