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

Disassembly:
mov eax, 0x411568
call fcn.00410d60
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.0040c011
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 0x410695
lea eax, [ebp - 0x33c]
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
pop ecx
cmp eax, edi
pop ecx
je 0x41063e
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 0x4106a8
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 0x410682
mov word [eax + 2], di
lea eax, [ebp - 0x33c]
push str.IDMSetup.log
push eax
call sub.MSVCRT.dll_wcscat
jmp 0x4106a6
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 0x4107ee
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 0x4107ee
cmp dword [ebp - 0x18], edi
je 0x41073a
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 0x4107da
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 0x4107da
push ebx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push edi
push edi
call esi
test eax, eax
jne 0x41073d
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x14], edi
jmp 0x41073d
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], edi
je 0x4107da
mov ebx, 0x400
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.00410b6c
add esp, 0xc
cmp eax, edi
jne 0x4107cc
mov edi, 0x401
push edi
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.00410caf
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.00410a80
cmp dword [0x41e0a0], 0
pop ecx
pop ecx
je 0x4107ca
push edi
push dword [ebp + 8]
call fcn.0041090d
pop ecx
pop ecx
xor edi, edi
cmp dword [ebp - 0x18], edi
je 0x4107da
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.0040fea7
call fcn.00410564
call fcn.0040e74b
push 0xf003f
call fcn.0040e135
pop ecx
call fcn.00403110
cmp eax, edi
je 0x41081c
push 0xf013f
call fcn.0040e135
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 0x41085c
cmp dword [ebp - 0x124], 2
jne 0x41085c
cmp dword [ebp - 0x130], 6
jb 0x41085c
cmp dword [ebp - 0x130], 0xa
jb 0x41085c
push 1
pop esi
call fcn.0040d767
cmp dword [0x41e0a0], edi
je 0x410878
cmp esi, edi
je 0x41086e
push edi
call fcn.0040d7f5
call fcn.004101ca
call fcn.004104c4
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 0x4108b5
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.0040d5d3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret 4