Function at 0x406900
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40cb75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push ebp
push esi
mov ebx, ecx
push edi
push str.The_following_conflicting_drivers_have_been_found__and_must_be_removed_before_the_installation_can_continue:_n_n
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x180]
xor ebp, ebp
mov dword [esp + 0x170], ebp
xor esi, esi
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x406976
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x406976
lea edx, [eax + esi*4]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_2
push 0x410eb8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
inc esi
jmp 0x406945
push str._nDo_you_want_to_remove_these_now_
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
cmp dword [esp + 0x17c], ebp
jne 0x4069c1
mov eax, dword [esp + 0x10]
push 0x24
push str.Notice
push eax
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 6
je 0x4069c1
push 0x10
push str.Error
push str.Installation_did_not_complete._n_nThe_installation_can_not_be_completed_until_the_conflicting_driver_sets_are_removed.
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
mov dword [esp + 0x14], ebp
jmp 0x406d48
mov edi, dword [esp + 0x184]
mov dword [esp + 0x14], 1
xor esi, esi
mov eax, dword [edi + 4]
test eax, eax
je 0x406d1a
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x406d1a
mov eax, dword [eax + esi*4]
push 0
push 2
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
cmp eax, 0xffffffff
je 0x406d14
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
lea edx, [esp + 0x60]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.inf_
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
push eax
lea eax, [esp + 0x64]
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x17c], 1
call sub.MFC42.DLL_operator_1
mov ebp, eax
push esi
mov ecx, edi
mov byte [esp + 0x174], 2
call fcn.004048b0
push ecx
mov edx, esp
mov dword [esp + 0x5c], esp
push eax
push ebp
push edx
call sub.MFC42.DLL_operator
call fcn.00404df0
add esp, 4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x170], 1
call fcn.0040b9d8
lea ecx, [esp + 0x24]
mov byte [esp + 0x170], 0
call fcn.0040b9d8
push 0x410e10
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString
mov ebp, eax
push esi
mov ecx, edi
mov byte [esp + 0x174], 3
call fcn.004048b0
mov ecx, eax
call fcn.00406d80
sub eax, 3
mov ecx, edi
push eax
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004048b0
mov ecx, eax
call sub.MFC42.DLL_CString::Left
mov ebx, eax
push str.inf_
lea ecx, [esp + 0x58]
mov byte [esp + 0x174], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov byte [esp + 0x17c], 5
call sub.MFC42.DLL_operator_1
push ebx
push eax
lea eax, [esp + 0x4c]
mov byte [esp + 0x178], 6
push eax
call sub.MFC42.DLL_operator
mov byte [esp + 0x170], 7
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push ebp
push eax
push ecx
call sub.MFC42.DLL_operator
call fcn.00404df0
add esp, 4
lea ecx, [esp + 0x44]
mov byte [esp + 0x170], 6
call fcn.0040b9d8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x170], 5
call fcn.0040b9d8
lea ecx, [esp + 0x54]
mov byte [esp + 0x170], 4
call fcn.0040b9d8
lea ecx, [esp + 0x34]
mov byte [esp + 0x170], 3
call fcn.0040b9d8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x170], 0
call fcn.0040b9d8
mov ebx, dword [edi + 4]
push str.inf_
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
push eax
lea edx, [esp + 0x64]
lea eax, [esp + 0x60]
push edx
push eax
mov byte [esp + 0x17c], 8
call sub.MFC42.DLL_operator_1
lea ecx, [ebx + esi*4]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x17c], 9
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
lea ecx, [esp + 0x1c]
sete bl
call fcn.0040b9d8
lea ecx, [esp + 0x5c]
mov byte [esp + 0x170], 8
call fcn.0040b9d8
lea ecx, [esp + 0x20]
mov byte [esp + 0x170], 0
call fcn.0040b9d8
test bl, bl
je 0x406c1f
mov ecx, dword [esp + 0x18]
push 0x30
push str.Error
push str.Some_of_the_inf_files_could_not_be_removed_from_the_system._Unplug_any_devices_using_this_type_of_driver_and_try_the_installation_again.
call sub.MFC42.DLL_CWnd::MessageBoxA
mov dword [esp + 0x14], 0
push 0x410e10
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::CString
mov ebx, eax
mov eax, dword [edi + 4]
lea edx, [esp + 0x48]
mov byte [esp + 0x170], 0xa
mov ecx, dword [eax + esi*4]
mov ecx, dword [ecx - 8]
add ecx, 0xfffffffd
push ecx
push edx
lea ecx, [eax + esi*4]
call sub.MFC42.DLL_CString::Left
mov ebp, eax
push str.inf_
lea ecx, [esp + 0x44]
mov byte [esp + 0x174], 0xb
call sub.MFC42.DLL_CString::CString
push eax
lea eax, [esp + 0x64]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x17c], 0xc
call sub.MFC42.DLL_operator_1
push ebp
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x17c], 0xd
call sub.MFC42.DLL_operator
push ebx
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x178], 0xe
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x28]
call fcn.0040b9d8
lea ecx, [esp + 0x30]
mov byte [esp + 0x170], 0xd
call fcn.0040b9d8
lea ecx, [esp + 0x38]
mov byte [esp + 0x170], 0xc
call fcn.0040b9d8
lea ecx, [esp + 0x40]
mov byte [esp + 0x170], 0xb
call fcn.0040b9d8
lea ecx, [esp + 0x48]
mov byte [esp + 0x170], 0xa
call fcn.0040b9d8
lea ecx, [esp + 0x50]
mov byte [esp + 0x170], 0
call fcn.0040b9d8
mov ebx, dword [esp + 0x18]
inc esi
jmp 0x4069d2
mov ecx, dword [esp + 0x178]
push ecx
mov ecx, ebx
call fcn.00406d90
test eax, eax
jne 0x406d48
push 0x10
push str.Error
push str.Unable_to_remove_old_devices_from_the_system._n_nPlease_remove_and_USBXpress_devices_from_your_system__reboot__and_try_the_installation_again.
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x170], 0xffffffff
call fcn.0040b9d8
mov ecx, dword [esp + 0x168]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x164
ret 0x10