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

Disassembly:
push 0xffffffffffffffff
push 0x452749
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663e0]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2a0]
mov esi, ecx
mov edi, edx
xor eax, eax
mov dword [esp + 0x298], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], eax
mov word [esp + 0x30], ax
mov dword [esp + 0x1c], eax
push esi
lea eax, [esp + 0x88]
push 0x104
push eax
mov byte [esp + 0x2a4], 2
call fcn.00439323
add esp, 0xc
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea ebx, [esp + 0x84]
mov ecx, 0xbc2
call fcn.00434620
mov eax, dword [0x468d34]
xor ebx, ebx
cmp eax, ebx
je 0x40bb92
push ebx
push ebx
push 0xbf2
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bc3a
lea edx, [esp + 0x48]
push edx
mov ebx, edi
call fcn.00406e20
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x29c], 3
call fcn.0040c770
push 0xffffffffffffffff
xor edi, edi
push edi
lea eax, [esp + 0x70]
lea ecx, [esp + 0x34]
call fcn.004040b0
mov esi, dword [esp + 0x30]
mov eax, 8
cmp dword [esp + 0x44], eax
jae 0x40bbe4
lea esi, [esp + 0x30]
mov byte [esp + 0x298], 2
cmp dword [esp + 0x80], eax
jb 0x40bc02
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00439059
add esp, 4
cmp dword [esp + 0x64], 8
mov ebx, 7
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], di
jb 0x40bc2b
mov edx, dword [esp + 0x50]
push edx
call fcn.00439059
add esp, 4
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
xor ebx, ebx
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 0x40bd30
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [esp + 0x18], ebx
setne al
cmp al, bl
je 0x40bd30
push ebx
mov ecx, 0x20
mov edx, esi
call fcn.0040be90
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40bc94
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push ebx
push str.SoftwareIntelDifx64
push 0x80000002
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40bd11
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push str.Code
mov edi, 4
push ecx
mov dword [esp + 0x30], edi
call esi
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push str.Reboot
push ecx
mov dword [esp + 0x30], edi
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40bd0d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebx
xor edx, edx
cmp dword [esp + 0x28], 1
push str.SoftwareIntelDifx64
sete dl
push 0x80000002
mov dword [ebp], edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x40bd4b
push ebx
push 0x40b1f0
call dword [sym.imp.DIFXAPI.dll_DIFXAPISetLogCallbackW]
push ebp
push ebx
push 0x20
push esi
call dword [sym.imp.DIFXAPI.dll_DriverPackageUninstallW]
mov dword [esp + 0x24], eax
mov eax, dword [0x468d34]
cmp eax, ebx
je 0x40bd62
push ebx
push ebx
push 0xbf3
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40bd82
push eax
push str.Driver_uninstall_error_0x_X
push 0x4676a0
mov eax, 2
call fcn.0042cad0
add esp, 0xc
cmp dword [esp + 0x2b8], ebx
je 0x40bdb9
call fcn.00430be0
cmp eax, 0x6010100
jb 0x40bdb9
cmp eax, 0xffffffff
ja 0x40bdb9
cmp dword [esp + 0x2bc], 8
mov ecx, dword [esp + 0x2a8]
jae 0x40bdb4
lea ecx, [esp + 0x2a8]
call fcn.00426550
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov esi, dword [esp + 0x24]
je 0x40bdcc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 8
cmp dword [esp + 0x44], edi
mov dword [esp + 0x1c], ebx
jb 0x40bde8
mov eax, dword [esp + 0x30]
push eax
call fcn.00439059
add esp, 4
cmp dword [esp + 0x2bc], edi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
jb 0x40be12
mov ecx, dword [esp + 0x2a8]
push ecx
call fcn.00439059
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0043782a
add esp, 0x288
ret 0x20