Function at 0x40b355
Capabilities:
Check if file exists
Delete file
Delete registry key
Get common file path
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.0040b231
push 2
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40b5fa
push esi
push edi
push dword [0x4041ec]
lea ecx, [ebp - 0x620]
mov dword [ebp - 0x620], ebx
call fcn.0040dd64
mov esi, dword [ebp - 0x620]
test esi, esi
je 0x40b3ae
push ebx
mov edx, 0xffefffff
jmp 0x40b3bb
call fcn.0040a99d
push 0x100000
or edx, 0xffffffff
call fcn.0040a84d
xor ecx, ecx
call fcn.00409aaf
push 0x10
pop ecx
call fcn.00409aaf
push esi
push 2
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edi, edi
inc edi
test eax, eax
je 0x40b470
call fcn.0040c712
test al, al
jne 0x40b416
push 0x4021c0
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
push esi
push 3
pop edx
lea ecx, [ebp - 0x414]
call fcn.0040a6ff
jmp 0x40b470
push ecx
push dword [0x402a30]
lea eax, [ebp - 0x414]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040eaa3
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0040e665
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b470
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0040adfe
test esi, esi
jne 0x40b541
push ebx
push 2
pop esi
push esi
lea edx, [ebp - 0x624]
mov dword [ebp - 0x624], 0x10
mov ecx, esi
mov dword [ebp - 0x620], 0x19
call fcn.0040aaab
push 0x17
pop ebx
push edi
push 3
lea edx, [ebp - 0x628]
mov dword [ebp - 0x628], esi
mov ecx, esi
mov dword [ebp - 0x624], ebx
mov dword [ebp - 0x620], 6
call fcn.0040aaab
push edi
push edi
push 4
lea edx, [ebp - 0x620]
mov dword [ebp - 0x620], ebx
pop ecx
call fcn.0040aaab
mov esi, 0x4033c0
lea edi, [ebp - 0x638]
push 0
push 1
lea edx, [ebp - 0x638]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040ab16
mov esi, 0x4033a0
lea edi, [ebp - 0x65c]
lea edx, [ebp - 0x65c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x4033e0
lea edi, [ebp - 0x64c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
inc edi
push edi
push 2
call fcn.0040ab16
push 2
pop ecx
call fcn.0040ab66
mov ecx, ebx
call fcn.0040ab66
xor ebx, ebx
push 0x402800
push ebx
push 0x1a
pop esi
push esi
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0040c712
test al, al
je 0x40b593
push edi
push edi
lea ecx, [ebp - 0x63c]
mov dword [ebp - 0x63c], esi
mov dword [ebp - 0x638], edi
mov dword [ebp - 0x634], edi
mov dword [ebp - 0x630], 0x4023a0
mov dword [ebp - 0x62c], ebx
call fcn.0040f4c9
call fcn.00409808
call fcn.004098e1
lea eax, [ebp - 0x624]
push eax
push ebx
push edi
call dword [sym.imp.iertutil.dll_Ordinal_281]
test eax, eax
jne 0x40b5c2
mov eax, dword [ebp - 0x624]
and eax, edi
or eax, ebx
je 0x40b5c2
push ebx
push edi
push ebx
push ebx
push edi
call dword [sym.imp.iertutil.dll_Ordinal_282]
push ecx
push ecx
lea ecx, [ebp - 0x61c]
call fcn.0040ca87
pop edi
pop esi
test al, al
je 0x40b5e0
lea ecx, [ebp - 0x61c]
call fcn.0040b17b
mov ecx, 0x402e48
call fcn.0040af89
mov ecx, 0x402a88
call fcn.0040af89
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00423440
mov esp, ebp
pop ebp
ret