Function at 0x418e20
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca40b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x502770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x40]
push 0x3e
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallWifiHelper
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
call fcn.0041aaf0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
push eax
cmovae edx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
push eax
mov ecx, reloc.WS2_32.dll_bind
call fcn.00418c50
add esp, 8
test eax, eax
jne 0x41904b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp eax, 0xffffffff
je 0x41904b
test al, 0x10
je 0x41904b
push str.WifiHelper.exe
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x8c]
call fcn.00419c60
add esp, 4
push str.WifiHelperUpd.exe
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00419c60
add esp, 4
push str.Uninstall.exe
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.00419c60
add esp, 4
push 0x7d0
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x78], 8
lea esi, [ebp - 0x8c]
cmovae esi, dword [ebp - 0x8c]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x418f69
test cl, 0x10
jne 0x418f69
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x418f69
push 4
push eax
push esi
call ebx
cmp dword [ebp - 0x5c], 8
lea esi, [ebp - 0x70]
cmovae esi, dword [ebp - 0x70]
push esi
call edi
cmp eax, 0xffffffff
je 0x418f9d
test al, 0x10
jne 0x418f9d
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x418f9d
push 4
push eax
push esi
call ebx
cmp dword [ebp - 0x44], 8
lea esi, [ebp - 0x58]
cmovae esi, dword [ebp - 0x58]
push esi
call edi
cmp eax, 0xffffffff
je 0x418fd1
test al, 0x10
jne 0x418fd1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x418fd1
push 4
push eax
push esi
call ebx
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, 1
cmovae ecx, dword [ebp - 0x28]
call fcn.0041c930
cmp dword [ebp - 0x44], 8
jb 0x418ff7
push dword [ebp - 0x58]
call fcn.00454ef7
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x41901c
push dword [ebp - 0x70]
call fcn.00454ef7
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x78], 8
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x419044
push dword [ebp - 0x8c]
call fcn.00454ef7
add esp, 4
mov esi, 1
jmp 0x41904d
xor esi, esi
cmp dword [ebp - 0x2c], 8
jb 0x41905e
push dword [ebp - 0x40]
call fcn.00454ef7
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x419083
push dword [ebp - 0x28]
call fcn.00454ef7
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00454efc
mov esp, ebp
pop ebp
ret