Function at 0x403ff0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40c6a0
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x38]
xor ebx, ebx
push esi
cmp ebp, ebx
mov esi, ecx
jne 0x40402d
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp + 0x78]
lea ecx, [esp + 0xc]
push eax
mov al, byte [ebp]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x40], ebx
call fcn.00404510
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.0040b9de
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 0
call fcn.0040b9d8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4044dd
mov edx, dword [ebp + 8]
lea ecx, [ebp + 8]
mov eax, 0x20004
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [edx - 8]
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
mov eax, dword [esp + 0x48]
push 1
push ebx
push str.CompanyName
push eax
call edi
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
mov esi, eax
mov eax, dword [edx - 8]
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x48]
push 1
push ebx
push str.DeviceHardwareID
push eax
call edi
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
or esi, eax
mov eax, dword [edx - 8]
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x48]
push 1
push ebx
push str.ProductName
push eax
call edi
mov edx, dword [ebp + 4]
lea ecx, [ebp + 4]
or esi, eax
mov eax, dword [edx - 8]
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x48]
push 1
push ebx
push str.DriverVersion
push eax
call edi
mov ecx, dword [ebp + 0x14]
lea ebx, [ebp + 0x14]
or esi, eax
mov eax, dword [ecx - 8]
mov ecx, ebx
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x44]
push eax
push 1
push 0
push 0x410704
push edx
call edi
lea ecx, [ebp + 0x18]
or esi, eax
mov eax, dword [ecx]
mov eax, dword [eax - 8]
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x44]
push eax
push 1
push 0
push 0x410700
push ecx
call edi
lea edx, [ebp + 0x2c]
push 4
push edx
or esi, eax
mov eax, dword [esp + 0x48]
push 4
push 0
push str.QuietUninstallMode
push eax
call edi
mov edx, dword [esp + 0x40]
lea ecx, [ebp + 0x34]
push 4
push ecx
push 4
push 0
push str.RemoveDriversOnUninstall
push edx
or esi, eax
call edi
lea ecx, [ebp + 0x88]
or esi, eax
mov eax, dword [ecx]
mov eax, dword [eax - 8]
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x44]
push eax
push 1
push 0
push str.InfUninstallList
push ecx
call edi
mov edx, dword [ebp + 0x80]
lea ecx, [ebp + 0x80]
or esi, eax
mov eax, dword [edx - 8]
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x48]
push 1
push 0
push str.CopiedFilesUninstallList
push eax
call edi
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push 0
push str.DriverInstallerVersion
push edx
or esi, eax
call edi
mov ecx, dword [esp + 0x40]
or esi, eax
lea eax, [esp + 0x20]
push 4
push eax
push 4
push 0
push str.DriverUninstallerVersion
push ecx
call edi
mov ecx, dword [ebp + 0x8c]
or esi, eax
lea eax, [ebp + 0x8c]
test ecx, ecx
je 0x4042e9
mov edx, dword [esp + 0x40]
push 4
push eax
push 4
push 0
push str.IgnoreSerialNumbers
push edx
call edi
or esi, eax
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetControlUsbFlags
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
or esi, eax
jne 0x4042e9
push str.IgnoreHWSerNum
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
push ebx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_operator
lea ecx, [ebp + 0x18]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [ebp + 0x8c]
push 1
push ecx
push 3
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call edi
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.0040b9d8
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 2
call fcn.0040b9d8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 0
call fcn.0040b9d8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x40433c
mov edx, dword [ebp + 0x24]
lea ecx, [ebp + 0x24]
mov eax, dword [edx - 8]
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x48]
push 1
push 0
push str.InstallDirectory
push eax
call edi
mov edx, dword [ebp + 0x84]
lea ecx, [ebp + 0x84]
or esi, eax
mov eax, dword [edx - 8]
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x48]
push 1
push 0
push str.InstallSubdirectories
push eax
jmp 0x40436a
mov ecx, dword [esp + 0x40]
push 0
push 0x41144c
push 1
push 0
push str.InstallDirectory
push ecx
call edi
mov edx, dword [esp + 0x40]
push 0
push 0x41144c
push 1
push 0
push str.InstallSubdirectories
or esi, eax
push edx
call edi
push 0xffffffffffffffff
lea ecx, [ebp + 8]
or esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [ebp + 4]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [ebp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
mov ecx, ebx
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [ebp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [ebp + 0x88]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [ebp + 0x80]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [ebp + 0x84]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x78]
lea edx, [esp + 0x14]
push ecx
push 0x410098
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push str._s_s_s
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
add esp, 0x14
lea eax, [esp + 0x40]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4044ce
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp + 0x10]
push str.__Driver_Removal_
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 5
call fcn.0040b9de
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 4
call fcn.0040b9d8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [eax - 8]
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x44]
push eax
push 1
push 0
push str.DisplayName
push ecx
call edi
mov edx, dword [ebp + 0x7c]
add ebp, 0x7c
or esi, eax
mov ecx, ebp
mov eax, dword [edx - 8]
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x48]
push 1
push 0
push str.UninstallString
push eax
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
or esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
mov ecx, ebp
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.0040b9d8
test esi, esi
pop edi
je 0x4044e1
mov dword [esp + 0x14], 0
jmp 0x4044e1
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040b9d8
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4