Function at 0x4095cb
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 0x40962b
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 0x409624
cmp word [ebp - 2], 0xaa64
jne 0x409624
mov dword [0x41de60], 1
jmp 0x40962b
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 0x4096f3
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 0x40968e
and word [eax], 0
push str._skdlgs
push edi
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
je 0x40968e
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 0x4097e4
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 0x4097e4
and word [eax], 0
push edi
call sub.MSVCRT.dll_wcslen
cmp eax, 5
pop ecx
jbe 0x4097e4
mov dword [0x41de5c], 1
jmp 0x4097e4
push 9
pop ebx
push ebx
push str._instdriv
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x409710
push 1
jmp 0x409793
push ebx
push str._startdriv
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x409728
push eax
push 1
jmp 0x40973d
push ebx
push str._stopdriv
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40974c
push eax
push eax
call fcn.0040314e
pop ecx
pop ecx
push 1
pop eax
jmp 0x409adc
push ebx
push str._instlsp1
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x409768
push 1
call fcn.00403e47
jmp 0x409798
push ebx
push str._instlsp2
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40977e
push eax
jmp 0x409761
push 0xb
push str._uninstdriv
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40979e
push eax
call fcn.004039d1
pop ecx
jmp 0x409adc
push 0xa
push str._uninstlsp
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4097bc
call fcn.004022ba
jmp 0x409adc
push 0xa
push str._uninsttdi
push edi
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4097da
call fcn.00403a85
jmp 0x409adc
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.00409411
cmp eax, 0xffffffff
pop ecx
je 0x409ada
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 0x40985f
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 0x40991d
lea eax, [ebp - 0x238]
push 0x104
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x409893
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 0x40991d
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 0x4098cf
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 0x40991d
mov eax, dword [0x41de50]
cmp eax, edi
je 0x4098da
mov esi, ebx
push eax
push esi
mov ecx, 0x41cd68
call fcn.00407fb7
mov eax, dword [ebp + 8]
push edi
push 0x40c4f2
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 0x40992a
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 0x409ada
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.0040b490
test eax, eax
je 0x4099b7
xor esi, esi
cmp dword [0x41de50], esi
je 0x40998d
mov eax, dword [0x41ce38]
cmp eax, esi
je 0x409986
mov ecx, eax
jmp 0x40999d
mov ecx, 0x41ce3c
jmp 0x40999d
mov eax, dword [0x41cf38]
cmp eax, esi
mov ecx, eax
jne 0x40999d
mov ecx, 0x41cf3c
mov eax, dword [0x41cfe8]
cmp eax, esi
jne 0x4099ab
mov eax, 0x41cfec
push esi
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4099b9
xor esi, esi
push 5
push dword [0x41d00c]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41de50], esi
jne 0x409a53
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 0x409a47
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 0x409a3e
cmp dword [ebp + 8], 0xffffffff
jne 0x409a3e
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.0040b4f3
jmp 0x409a5d
push 0x41d00c
call fcn.0040b993
pop ecx
push 0x43
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [0x41d00c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [0x41d00c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
call edi
test eax, eax
je 0x409ac2
lea eax, [ebp - 0x30]
push eax
push dword [0x41d00c]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x409ab9
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 0x409a8b
cmp dword [0x41de5c], esi
je 0x409ad5
push 0x41da3c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040a884
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10