Function at 0x410479
Capabilities:
Check if file exists
Check os version
Delete file
Delete registry key
Get file attributes

Disassembly:
mov eax, 0x4113fc
call fcn.00410c00
sub esp, 0x330
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
call fcn.0040bead
call fcn.0040158c
lea eax, [ebp - 0x33c]
push 0x104
push eax
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x410531
lea eax, [ebp - 0x33c]
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
pop ecx
cmp eax, edi
pop ecx
je 0x4104da
mov word [eax + 2], di
lea eax, [ebp - 0x33c]
push str.IDMSetup2.log
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
lea eax, [ebp - 0x33c]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x410544
lea eax, [ebp - 0x33c]
push 0x5c
push eax
mov dword [ebp - 0x18], 1
call sub.MSVCRT.dll_wcsrchr
pop ecx
cmp eax, edi
pop ecx
je 0x41051e
mov word [eax + 2], di
lea eax, [ebp - 0x33c]
push str.IDMSetup.log
push eax
call sub.MSVCRT.dll_wcscat
jmp 0x410542
lea eax, [ebp - 0x33c]
push str.IDMSetup2.log
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41068a
push 1
push edi
push edi
push 3
lea eax, [ebp - 0x1c]
push 0xc0000000
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.00405959
add esp, 0x1c
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x41068a
cmp dword [ebp - 0x18], edi
je 0x4105d6
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push dword [ebp - 0x1c]
push eax
push edi
push edi
call esi
mov ebx, eax
cmp ebx, edi
je 0x410676
lea eax, [ebx + ebx + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
mov dword [ebp - 0x14], eax
je 0x410676
push ebx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push edi
push edi
call esi
test eax, eax
jne 0x4105d9
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x14], edi
jmp 0x4105d9
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], edi
je 0x410676
mov ebx, 0x400
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.00410a08
add esp, 0xc
cmp eax, edi
jne 0x410668
mov edi, 0x401
push edi
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.00410b4b
mov esi, dword [0x41e0a8]
add esp, 0xc
mov eax, esi
xor edx, edx
push 0x64
pop ecx
div ecx
xor edx, edx
mov ecx, eax
mov eax, esi
inc ecx
div ecx
mov dword [0x41e0a4], ecx
movzx eax, ax
shl eax, 0x10
push eax
push 0
push edi
push 0x407
push dword [0x41de68]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push ebx
push dword [ebp + 8]
call fcn.0041091c
cmp dword [0x41e0a0], 0
pop ecx
pop ecx
je 0x410666
push edi
push dword [ebp + 8]
call fcn.004107a9
pop ecx
pop ecx
xor edi, edi
cmp dword [ebp - 0x18], edi
je 0x410676
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push str.IDMSetup2.log
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040fd43
call fcn.00410400
call fcn.0040e483
push 0xf003f
call fcn.0040dfd1
pop ecx
call fcn.00403110
cmp eax, edi
je 0x4106b8
push 0xf013f
call fcn.0040dfd1
pop ecx
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 0x114
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4106f8
cmp dword [ebp - 0x124], 2
jne 0x4106f8
cmp dword [ebp - 0x130], 6
jb 0x4106f8
cmp dword [ebp - 0x130], 0xa
jb 0x4106f8
push 1
pop esi
call fcn.0040d603
cmp dword [0x41e0a0], edi
je 0x410714
cmp esi, edi
je 0x41070a
push edi
call fcn.0040d691
call fcn.00410066
call fcn.00410360
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, str.SOFTWAREMICROSOFTWINDOWSCURRENTVERSIONUNINSTALLInternet_Download_Manager
mov ebx, 0x80000002
push edi
push ebx
call esi
push edi
mov edi, 0x80000001
push edi
call esi
xor esi, esi
cmp dword [0x41e0a0], esi
je 0x410751
push str.SoftwareDownloadManager
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
call edi
push str.SOFTWAREInternet_Download_Manager
push ebx
call edi
push esi
push esi
push 0x10
push dword [0x41d00c]
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.0040d46f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret 4