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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
mov eax, dword [0x42603c]
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.00414930
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0xa2e]
push eax
mov word [ebp - 0xa30], dx
call fcn.00414930
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x61e]
push edx
mov word [ebp - 0x620], cx
call fcn.00414930
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00414930
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x826]
push eax
mov word [ebp - 0x828], dx
call fcn.00414930
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x620]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x418]
push str.C:Program_FilesWW2017CF
push edx
call esi
lea eax, [ebp - 0xa30]
push str.C:Program_Files__x86_WW2017CF
push eax
call esi
add esp, 0x10
call fcn.004068e0
test al, al
je 0x4086b3
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040af80
add esp, 4
push 0xd
lea edx, [ebp - 0x418]
push 0x427864
push edx
call fcn.0040a8f0
add esp, 0xc
jmp 0x4086f1
lea eax, [ebp - 0x418]
push eax
call fcn.0040af80
add esp, 4
push 0
lea ecx, [ebp - 0x418]
push 0
push ecx
call fcn.0040a8f0
add esp, 0xc
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0xa30]
push eax
call fcn.0040af80
add esp, 4
lea ecx, [ebp - 0x620]
push ecx
lea edx, [ebp - 0x828]
push str._sWinNetDaily.dll
push edx
call esi
add esp, 0xc
lea eax, [ebp - 0x828]
push 0
push eax
call fcn.0040e7ad
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
cmp byte [0x429f56], 0
je 0x4087ec
lea ecx, [ebp - 0x620]
push ecx
lea edx, [ebp - 0x210]
push str._spcinfo7.exe
push edx
call esi
add esp, 0xc
push 0x80
lea eax, [ebp - 0x210]
push eax
call edi
lea ecx, [ebp - 0x210]
push ecx
call ebx
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 0x408786
lea edx, [ebp - 0xa60]
push edx
call eax
movzx eax, word [ebp - 0xa60]
test eax, eax
je 0x4087ec
cmp eax, 9
je 0x40879f
cmp byte [ebp - 0xa31], 1
jne 0x4087ec
call fcn.004038b0
cmp eax, 1
jne 0x4087df
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0x210]
push str._spcinfo7.exe
push ecx
call esi
add esp, 0xc
push 0x80
lea edx, [ebp - 0x210]
push edx
call edi
lea eax, [ebp - 0x210]
push eax
call ebx
call fcn.00403910
jmp 0x4087ec
push 0x41fb40
call fcn.004033d0
add esp, 4
lea ecx, [ebp - 0x620]
push ecx
lea edx, [ebp - 0x210]
push str._swmcUpdater.exe
push edx
call esi
add esp, 0xc
push 0x80
lea eax, [ebp - 0x210]
push eax
call edi
lea ecx, [ebp - 0x210]
push ecx
call ebx
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 0x40883f
lea edx, [ebp - 0xa60]
push edx
call eax
movzx eax, word [ebp - 0xa60]
test eax, eax
je 0x408909
cmp eax, 9
je 0x408860
cmp byte [ebp - 0xa31], 1
jne 0x408909
push str.Kernel32.dll
mov dword [ebp - 0xa3c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xa38], eax
test eax, eax
je 0x408909
push str.Wow64DisableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xa3c]
push ecx
call eax
test eax, eax
jne 0x4088a5
mov edx, dword [ebp - 0xa38]
push edx
jmp 0x408903
mov eax, dword [ebp - 0xa38]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x620]
push ecx
lea edx, [ebp - 0x210]
push str._swmcUpdater.exe
push edx
call esi
add esp, 0xc
push 0x80
lea eax, [ebp - 0x210]
push eax
call edi
lea ecx, [ebp - 0x210]
push ecx
call ebx
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x408909
push str.Wow64RevertWow64FsRedirection
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x418]
push str.C:Program_FilesWW2017CF
push edx
call esi
add esp, 8
call fcn.004068e0
test al, al
je 0x408959
lea eax, [ebp - 0x418]
push eax
call fcn.0040af80
add esp, 4
push 0xd
lea ecx, [ebp - 0x418]
push 0x427864
push ecx
call fcn.0040a8f0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x418]
push edx
call fcn.0040af80
add esp, 4
push 0
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.0040a8f0
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret