Function at 0x40b060
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452331
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x26c], eax
mov esi, edx
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x264], eax
mov edi, ebx
imul edi, edi, 0x114
mov dword [ebp - 4], eax
add edi, dword [0x46a9b0]
xor ecx, ecx
push eax
lea edx, [edi + 0x20]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x228], eax
mov word [ebp - 0x238], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 7
call fcn.004061d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
mov dword [esi], 0
jae 0x40b10b
lea eax, [ebp - 0x238]
push eax
push str.INF___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40b2af
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x25c], 0
setne al
test al, al
je 0x40b2af
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x40b178
lea ecx, [ebp - 0x238]
push 1
push 0x14
call fcn.0040b970
xor esi, esi
mov dword [ebp - 0x258], eax
cmp eax, esi
jne 0x40b28c
mov eax, dword [ebp - 0x264]
cmp eax, esi
je 0x40b1a2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x264]
push ecx
push 0xf003f
push esi
push str.SoftwareIntelDifx64
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x258], eax
cmp eax, esi
jne 0x40b36b
mov ecx, dword [ebp - 0x264]
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x258]
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.Code
push ecx
mov dword [ebp - 0x25c], 4
call esi
mov ecx, dword [ebp - 0x264]
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x268]
push eax
push 0
push 0
push str.Reboot
push ecx
mov dword [ebp - 0x25c], 4
call esi
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x26c]
xor edx, edx
cmp dword [ebp - 0x268], 1
push ecx
sete dl
lea ecx, [ebp - 0x264]
mov dword [eax], edx
mov eax, str.StorePath
call fcn.0042d620
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x40b26d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareIntelDifx64
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x264], 0
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x40b363
push eax
push str.Error_0x_X_launching_Drv64.exe
push 0x46a9d4
mov eax, 2
call fcn.0042d150
mov eax, dword [ebp - 0x258]
add esp, 0xc
jmp 0x40b36b
push 0
push 0x40aa00
call dword [sym.imp.DIFXAPI.dll_DIFXAPISetLogCallbackW]
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x40b2d1
lea eax, [ebp - 0x238]
mov edx, dword [ebp - 0x270]
push edx
push 0
push 0x14
push eax
call dword [sym.imp.DIFXAPI.dll_DriverPackageInstallW]
mov dword [ebp - 0x258], eax
test eax, eax
je 0x40b2fb
cmp eax, 0xe000020b
je 0x40b2fb
cmp eax, 0x103
jne 0x40b369
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x268], 0x104
jae 0x40b31a
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x268]
push ecx
lea edx, [ebp - 0x21c]
push edx
push eax
call dword [sym.imp.DIFXAPI.dll_DriverPackageGetPathW]
mov dword [ebp - 0x258], eax
test eax, eax
jne 0x40b369
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b342
mov esi, dword [ebp - 0x26c]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
call fcn.004065b0
mov eax, dword [ebp - 0x258]
xor esi, esi
cmp eax, 0x47e
ja 0x40b3fc
je 0x40b3aa
cmp eax, esi
je 0x40b4e6
cmp eax, 0x103
jne 0x40b412
push str.Installed_driver_is_better_match_for_the_device
push 0x46a9d4
mov eax, 1
call fcn.0042d150
mov dword [ebp - 0x258], esi
jmp 0x40b5cd
push 0x7f01
push 1
push 0x80
push 0x7da
xor ecx, ecx
mov edx, 0x7e3
call fcn.00433c70
mov eax, dword [ebp - 0x258]
push eax
push str.DriverPackageInstall___Platform_not_Vista_or_higher
push 0x46a9d4
mov eax, 2
call fcn.0042d150
mov ecx, dword [ebp - 0x258]
add esp, 0x1c
mov dword [0x46a9f8], ecx
call fcn.0042d090
push esi
call fcn.0043aabf
cmp eax, 0xe000020b
je 0x40b4cf
cmp eax, 0xe0000243
je 0x40b4c5
push eax
push str.DriverPackageInstall_error_0x_X
push 0x46a9d4
mov eax, 2
call fcn.0042d150
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], esi
mov word [ebp - 0x254], dx
lea eax, [ebp - 0x254]
push eax
push 0x41
mov ecx, 0x46be88
mov byte [ebp - 4], 2
call fcn.0042dd60
test al, al
jne 0x40b471
lea ecx, [ebp - 0x254]
push ecx
push 0xe
mov ecx, 0x46be88
call fcn.0042dd60
mov edx, dword [ebp - 0x254]
mov edi, 8
cmp dword [ebp - 0x240], edi
jae 0x40b48a
lea edx, [ebp - 0x254]
push 0x7f01
push 1
push 0x80
push 0x7da
xor ecx, ecx
call fcn.00433c70
add esp, 0x10
cmp dword [ebp - 0x240], edi
jb 0x40b5d0
mov edx, dword [ebp - 0x254]
push edx
call fcn.004396db
add esp, 4
jmp 0x40b5d0
push str.Driver_install_was_cancelled__continuing_with_the_rest_of_the_installation.
jmp 0x40b390
push str.Device_was_not_found
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 8
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x40b4fb
lea eax, [ebp - 0x238]
push eax
push str.Installation_source___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [ebp - 0x26c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40b51e
mov eax, dword [eax]
push eax
push str.DriverStore_location___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [ebp - 0x270]
add esp, 0xc
cmp dword [eax], esi
mov eax, 0x458de4
jne 0x40b547
mov eax, 0x458dec
push eax
push str.Package_Requires_Reboot___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov ecx, dword [0x46a9c4]
sub ecx, dword [0x46a9c0]
mov eax, 0x78787879
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add esp, 0xc
cmp ecx, ebx
jbe 0x40b5b9
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x268], esp
push esi
xor edx, edx
add edi, 0x58
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
push edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.004061d0
imul ebx, ebx, 0x110
add ebx, dword [0x46a9c0]
mov ecx, ebx
call fcn.0040abc0
jmp 0x40b5d0
push str.No_devices_found_for_driver._Skipping_uninstall_of_previous_driver.
push 0x46a9d4
mov eax, 2
call fcn.0042d150
add esp, 8
cmp dword [ebp - 0x224], 8
mov edi, dword [ebp - 0x258]
jb 0x40b5ee
mov eax, dword [ebp - 0x238]
push eax
call fcn.004396db
add esp, 4
mov eax, dword [ebp - 0x264]
xor ecx, ecx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], esi
mov word [ebp - 0x238], cx
cmp eax, esi
je 0x40b618
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret 4