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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451671
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x468738]
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 [0x4699b8]
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.004061c0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
mov dword [esi], 0
jae 0x40b0bb
lea eax, [ebp - 0x238]
push eax
push str.INF___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
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 0x40b25f
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 0x40b25f
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x40b128
lea ecx, [ebp - 0x238]
push 1
push 0x14
call fcn.0040b920
xor esi, esi
mov dword [ebp - 0x258], eax
cmp eax, esi
jne 0x40b23c
mov eax, dword [ebp - 0x264]
cmp eax, esi
je 0x40b152
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 0x40b31b
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.0042ccf0
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x40b21d
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 0x40b313
push eax
push str.Error_0x_X_launching_Drv64.exe
push 0x4699dc
mov eax, 2
call fcn.0042c820
mov eax, dword [ebp - 0x258]
add esp, 0xc
jmp 0x40b31b
push 0
push 0x40a9b0
call dword [sym.imp.DIFXAPI.dll_DIFXAPISetLogCallbackW]
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x40b281
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 0x40b2ab
cmp eax, 0xe000020b
je 0x40b2ab
cmp eax, 0x103
jne 0x40b319
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x268], 0x104
jae 0x40b2ca
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 0x40b319
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b2f2
mov esi, dword [ebp - 0x26c]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
call fcn.004065a0
mov eax, dword [ebp - 0x258]
xor esi, esi
cmp eax, 0x47e
ja 0x40b3ac
je 0x40b35a
cmp eax, esi
je 0x40b496
cmp eax, 0x103
jne 0x40b3c2
push str.Installed_driver_is_better_match_for_the_device
push 0x4699dc
mov eax, 1
call fcn.0042c820
mov dword [ebp - 0x258], esi
jmp 0x40b57d
push 0x7f01
push 1
push 0x80
push 0x7da
xor ecx, ecx
mov edx, 0x7e3
call fcn.00433220
mov eax, dword [ebp - 0x258]
push eax
push str.DriverPackageInstall___Platform_not_Vista_or_higher
push 0x4699dc
mov eax, 2
call fcn.0042c820
mov ecx, dword [ebp - 0x258]
add esp, 0x1c
mov dword [0x469a00], ecx
call fcn.0042c760
push esi
call fcn.00439f3f
cmp eax, 0xe000020b
je 0x40b47f
cmp eax, 0xe0000243
je 0x40b475
push eax
push str.DriverPackageInstall_error_0x_X
push 0x4699dc
mov eax, 2
call fcn.0042c820
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, 0x46aea8
mov byte [ebp - 4], 2
call fcn.0042d430
test al, al
jne 0x40b421
lea ecx, [ebp - 0x254]
push ecx
push 0xe
mov ecx, 0x46aea8
call fcn.0042d430
mov edx, dword [ebp - 0x254]
mov edi, 8
cmp dword [ebp - 0x240], edi
jae 0x40b43a
lea edx, [ebp - 0x254]
push 0x7f01
push 1
push 0x80
push 0x7da
xor ecx, ecx
call fcn.00433220
add esp, 0x10
cmp dword [ebp - 0x240], edi
jb 0x40b580
mov edx, dword [ebp - 0x254]
push edx
call fcn.00438b5b
add esp, 4
jmp 0x40b580
push str.Driver_install_was_cancelled__continuing_with_the_rest_of_the_installation.
jmp 0x40b340
push str.Device_was_not_found
push 0x4699dc
mov eax, 1
call fcn.0042c820
add esp, 8
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x40b4ab
lea eax, [ebp - 0x238]
push eax
push str.Installation_source___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov eax, dword [ebp - 0x26c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40b4ce
mov eax, dword [eax]
push eax
push str.DriverStore_location___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov eax, dword [ebp - 0x270]
add esp, 0xc
cmp dword [eax], esi
mov eax, 0x457de4
jne 0x40b4f7
mov eax, 0x457dec
push eax
push str.Package_Requires_Reboot___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov ecx, dword [0x4699cc]
sub ecx, dword [0x4699c8]
mov eax, 0x78787879
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add esp, 0xc
cmp ecx, ebx
jbe 0x40b569
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.004061c0
imul ebx, ebx, 0x110
add ebx, dword [0x4699c8]
mov ecx, ebx
call fcn.0040ab70
jmp 0x40b580
push str.No_devices_found_for_driver._Skipping_uninstall_of_previous_driver.
push 0x4699dc
mov eax, 2
call fcn.0042c820
add esp, 8
cmp dword [ebp - 0x224], 8
mov edi, dword [ebp - 0x258]
jb 0x40b59e
mov eax, dword [ebp - 0x238]
push eax
call fcn.00438b5b
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 0x40b5c8
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.004377d1
mov esp, ebp
pop ebp
ret 4