Function at 0x40b830
Capabilities:
Check if file exists
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45243e
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x469744]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x370], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
xor ecx, ecx
mov dword [ebp - 0x368], ebx
mov dword [ebp - 0x36c], ebx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
mov dword [ebp - 0x364], ebx
push esi
lea edx, [ebp - 0x218]
push 0x104
push edx
mov byte [ebp - 4], 2
call fcn.0043a583
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea edi, [ebp - 0x218]
mov ecx, 0xbc2
call fcn.004357d0
mov eax, dword [0x46c058]
cmp eax, ebx
je 0x40b8e6
push ebx
push ebx
push 0xbf2
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x40ba08
lea ecx, [ebp - 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x35c], ebx
setne al
cmp al, bl
je 0x40ba08
push ebx
push ebx
push 0x20
mov ecx, esi
call fcn.0040bb60
mov eax, dword [ebp - 0x364]
cmp eax, ebx
je 0x40b94b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x364]
push edx
push 0xf003f
push ebx
push str.SoftwareIntelDifx64
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x364], ebx
mov dword [ebp - 0x360], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40b9e2
mov edx, dword [ebp - 0x364]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x368]
push ecx
push ebx
push ebx
push str.Code
mov edi, 4
push edx
mov dword [ebp - 0x35c], edi
call esi
mov edx, dword [ebp - 0x364]
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x36c]
push ecx
push ebx
push ebx
push str.Reboot
push edx
mov dword [ebp - 0x35c], edi
call esi
mov eax, dword [ebp - 0x364]
cmp eax, ebx
je 0x40b9dc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x364], ebx
mov ecx, dword [ebp - 0x370]
xor eax, eax
cmp dword [ebp - 0x36c], 1
push str.SoftwareIntelDifx64
sete al
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ecx], eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x40ba2b
push ebx
push 0x40aaf0
call dword [sym.imp.DIFXAPI.dll_DIFXAPISetLogCallbackW]
mov edx, dword [ebp - 0x370]
push edx
push ebx
push 0x20
push esi
call dword [sym.imp.DIFXAPI.dll_DriverPackageUninstallW]
mov dword [ebp - 0x368], eax
mov eax, dword [0x46c058]
cmp eax, ebx
je 0x40ba42
push ebx
push ebx
push 0xbf3
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x368]
cmp eax, ebx
je 0x40ba64
push eax
push str.Driver_uninstall_error_0x_X
push 0x46a9d4
mov eax, 2
call fcn.0042d150
add esp, 0xc
mov edi, 8
cmp dword [ebp + 0x1c], ebx
je 0x40bae1
push 0x11c
lea eax, [ebp - 0x358]
push ebx
push eax
call fcn.0043d4f0
add esp, 0xc
lea ecx, [ebp - 0x358]
push ecx
mov dword [ebp - 0x358], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, byte [ebp - 0x354]
movzx edx, byte [ebp - 0x350]
movzx ecx, byte [ebp - 0x23e]
shl eax, 8
or eax, edx
movzx edx, byte [ebp - 0x244]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
cmp eax, 0x6010100
jb 0x40bae1
cmp eax, 0xffffffff
ja 0x40bae1
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], edi
jae 0x40badc
lea ecx, [ebp + 0xc]
call fcn.00424a00
mov eax, dword [ebp - 0x364]
mov esi, dword [ebp - 0x368]
cmp eax, ebx
je 0x40baf8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x364], ebx
cmp dword [ebp - 0x220], edi
jb 0x40bb15
mov eax, dword [ebp - 0x234]
push eax
call fcn.00439c00
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
cmp dword [ebp + 0x20], edi
jb 0x40bb3f
mov edx, dword [ebp + 0xc]
push edx
call fcn.00439c00
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438876
mov esp, ebp
pop ebp
ret 0x20