Function at 0x4095b1
Capabilities:
Delete file
Query or enumerate registry value
Set current directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
and dword [0x41de50], 0
push ebx
push esi
push edi
push str.IsWow64Process2
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x409611
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 6]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x40960a
cmp word [ebp - 2], 0xaa64
jne 0x40960a
mov dword [0x41de60], 1
jmp 0x409611
and dword [0x41de60], 0
mov esi, 0x41d424
push str.C:Users_sansanAppDataLocalTempIDM_Setup_Temp_
push esi
call sub.MSVCRT.dll_wcscpy
mov edi, dword [ebp + 0x10]
push 4
push str._d__
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0x14
test eax, eax
jne 0x4096d9
lea ebx, [edi + 8]
push ebx
push esi
call sub.MSVCRT.dll_wcscpy
push 0x22
push esi
call sub.MSVCRT.dll_wcschr
add esp, 0x10
test eax, eax
je 0x409674
and word [eax], 0
push str._skdlgs
push edi
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
je 0x409674
mov dword [0x41de4c], 1
push str._rmsetup__
push edi
call sub.MSVCRT.dll_wcsstr
push 0x22
push ebx
mov edi, eax
call sub.MSVCRT.dll_wcschr
add esp, 0x10
cmp edi, eax
jbe 0x4097ca
add edi, 0x14
push edi
mov edi, 0x41da3c
push edi
call sub.MSVCRT.dll_wcscpy
push 0x22
push edi
call sub.MSVCRT.dll_wcsrchr
add esp, 0x10
test eax, eax
je 0x4097ca
and word [eax], 0
push edi
call sub.MSVCRT.dll_wcslen
cmp eax, 5
pop ecx
jbe 0x4097ca
mov dword [0x41de5c], 1
jmp 0x4097ca
push 9
pop ebx
push ebx
push str._instdriv
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4096f6
push 1
jmp 0x409779
push ebx
push str._startdriv
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40970e
push eax
push 1
jmp 0x409723
push ebx
push str._stopdriv
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x409732
push eax
push eax
call fcn.0040314e
pop ecx
pop ecx
push 1
pop eax
jmp 0x409aa2
push ebx
push str._instlsp1
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40974e
push 1
call fcn.00403e47
jmp 0x40977e
push ebx
push str._instlsp2
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x409764
push eax
jmp 0x409747
push 0xb
push str._uninstdriv
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x409784
push eax
call fcn.004039d1
pop ecx
jmp 0x409aa2
push 0xa
push str._uninstlsp
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4097a2
call fcn.004022ba
jmp 0x409aa2
push 0xa
push str._uninsttdi
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4097c0
call fcn.00403a85
jmp 0x409aa2
mov dword [0x41de50], 1
push str.setup_error.log
push esi
push 0x4156e4
push 0x41dc44
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x419058
push 0x41d010
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, 0x41d218
push ebx
call fcn.004093f7
cmp eax, 0xffffffff
pop ecx
je 0x409aa0
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], 8
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x20
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
jne 0x409845
push 0x4150b0
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_init_common_controls_in_WinMain
jmp 0x409903
lea eax, [ebp - 0x238]
push 0x104
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x409879
push 0x4150b0
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_get_module_file_name_in_WinMain
jmp 0x409903
lea eax, [ebp - 0x238]
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
pop ecx
mov word [eax], di
pop ecx
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4098b5
push 0x4150b0
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_set_current_directory_in_WinMain
jmp 0x409903
mov eax, dword [0x41de50]
cmp eax, edi
je 0x4098c0
mov esi, ebx
push eax
push esi
mov ecx, 0x41cd68
call fcn.00407f9d
mov eax, dword [ebp + 8]
push edi
push 0x40c4b8
push edi
push 0x6d
push eax
mov dword [0x41d420], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
cmp eax, edi
mov dword [0x41d00c], eax
jne 0x409910
push 0x4150b0
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_create_main_dialog_in_WinMain
call fcn.004063d0
add esp, 0x18
jmp 0x409aa0
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6e
push dword [0x41d420]
call esi
push eax
mov ebx, 0x80
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push dword [0x41d00c]
call edi
push 0x6e
push dword [0x41d420]
call esi
push eax
push 1
push ebx
push dword [0x41d00c]
call edi
call fcn.0040b456
test eax, eax
je 0x40999d
xor esi, esi
cmp dword [0x41de50], esi
je 0x409973
mov eax, dword [0x41ce38]
cmp eax, esi
je 0x40996c
mov ecx, eax
jmp 0x409983
mov ecx, 0x41ce3c
jmp 0x409983
mov eax, dword [0x41cf38]
cmp eax, esi
mov ecx, eax
jne 0x409983
mov ecx, 0x41cf3c
mov eax, dword [0x41cfe8]
cmp eax, esi
jne 0x409991
mov eax, 0x41cfec
push esi
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40999f
xor esi, esi
push 5
push dword [0x41d00c]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41de50], esi
jne 0x409a39
lea eax, [ebp + 0x10]
push eax
push 0xf003f
push esi
push str.SoftwareDownloadManagerConfigTime
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409a2d
push 4
lea eax, [ebp - 8]
pop ebx
mov edi, 0x41c4f4
push eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push edi
push dword [ebp + 0x10]
mov dword [ebp + 8], esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409a24
cmp dword [ebp + 8], 0xffffffff
jne 0x409a24
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_time
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x41d00c
call fcn.0040b4b9
jmp 0x409a43
push 0x41d00c
call fcn.0040b959
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
pop ecx
push esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
call edi
test eax, eax
je 0x409a88
lea eax, [ebp - 0x30]
push eax
push dword [0x41d00c]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x409a7f
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
jmp 0x409a51
cmp dword [0x41de5c], esi
je 0x409a9b
push 0x41da3c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040a84a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10