Function at 0x418050
Capabilities:
Delete directory
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x446044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x416]
push ecx
mov word [ebp - 0x418], ax
call fcn.00426670
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x61e]
push eax
mov word [ebp - 0x620], dx
call fcn.00426670
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.00426670
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x826]
push ecx
mov word [ebp - 0x828], ax
call fcn.00426670
add esp, 0xc
push 0x104
lea edx, [ebp - 0x620]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x418]
push str.C:Program_FilesWW2017CF
push eax
call esi
lea ecx, [ebp - 0x210]
push str.C:Program_FilesWW2017CFwmcSystem7.exe
push ecx
xor edi, edi
call esi
lea edx, [ebp - 0x210]
push edi
push edx
call fcn.0041ee1e
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esp, 0x18
test eax, eax
jne 0x41817b
mov edi, edi
cmp edi, 0x1e
je 0x41817b
push 0x434910
call fcn.00417430
add esp, 4
push 0x80
lea eax, [ebp - 0x210]
push eax
call ebx
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x64
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x210]
push 0
push edx
call fcn.0041ee1e
add esp, 8
test eax, eax
je 0x418130
push 0
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.00405640
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
call edi
lea edx, [ebp - 0x620]
push edx
lea eax, [ebp - 0x828]
push str._sWinNetDaily.dll
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x828]
push 0
push ecx
call fcn.0041ee1e
lea edx, [ebp - 0x620]
push edx
lea eax, [ebp - 0x210]
push str._spcinfo7.exe
push eax
call esi
add esp, 0x14
push 0x80
lea ecx, [ebp - 0x210]
push ecx
call ebx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41821a
lea ecx, [ebp - 0x84c]
push ecx
call eax
movzx eax, word [ebp - 0x84c]
test eax, eax
je 0x41826c
cmp eax, 9
jne 0x41826c
call fcn.004055a0
cmp eax, 1
jne 0x41826c
lea edx, [ebp - 0x620]
push edx
lea eax, [ebp - 0x210]
push str._spcinfo7.exe
push eax
call esi
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x210]
push ecx
call ebx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00405600
lea eax, [ebp - 0x210]
push str.C:Program_FilesWW2017CFwmcSystem7.exe
push eax
xor ebx, ebx
call esi
lea ecx, [ebp - 0x210]
push ebx
push ecx
call fcn.0041ee1e
add esp, 0x10
test eax, eax
jne 0x4182ee
cmp ebx, 0xa
je 0x4182e1
push 0x434910
call fcn.00417430
add esp, 4
push 0
lea edx, [ebp - 0x418]
push 0
push edx
call fcn.00405640
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call edi
push 0x3e8
inc ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x210]
push 0
push ecx
call fcn.0041ee1e
add esp, 8
test eax, eax
je 0x418290
jmp 0x4182ee
push 0x442618
call fcn.00403960
add esp, 4
push 0
lea edx, [ebp - 0x418]
push 0
push edx
call fcn.00405640
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e7be
mov esp, ebp
pop ebp
ret