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

Disassembly:
push 0xffffffffffffffff
push 0x458609
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d8]
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.0043f42c
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.00439d60
mov eax, dword [0x470dc4]
xor ebx, ebx
cmp eax, ebx
je 0x40c4f2
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 0x40c59a
lea edx, [esp + 0x48]
push edx
mov ebx, edi
call fcn.00406e80
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x29c], 3
call fcn.0040d0d0
push 0xffffffffffffffff
xor edi, edi
push edi
lea eax, [esp + 0x70]
lea ecx, [esp + 0x34]
call fcn.004040c0
mov esi, dword [esp + 0x30]
mov eax, 8
cmp dword [esp + 0x44], eax
jae 0x40c544
lea esi, [esp + 0x30]
mov byte [esp + 0x298], 2
cmp dword [esp + 0x80], eax
jb 0x40c562
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0043e965
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 0x40c58b
mov edx, dword [esp + 0x50]
push edx
call fcn.0043e965
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 0x40c690
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 0x40c690
push ebx
mov ecx, 0x20
mov edx, esi
call fcn.0040c7f0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40c5f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push ebx
push str.SoftwareIntelDifx64
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40c671
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 0x40c66d
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 reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp], edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x40c6ab
push ebx
push 0x40bb30
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 [0x470dc4]
cmp eax, ebx
je 0x40c6c2
push ebx
push ebx
push 0xbf3
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40c6e2
push eax
push str.Driver_uninstall_error_0x_X
push 0x46fa40
mov eax, 2
call fcn.00431730
add esp, 0xc
cmp dword [esp + 0x2b8], ebx
je 0x40c719
call fcn.00435990
cmp eax, 0x6010100
jb 0x40c719
cmp eax, 0xffffffff
ja 0x40c719
cmp dword [esp + 0x2bc], 8
mov ecx, dword [esp + 0x2a8]
jae 0x40c714
lea ecx, [esp + 0x2a8]
call fcn.00426e50
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov esi, dword [esp + 0x24]
je 0x40c72c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 8
cmp dword [esp + 0x44], edi
mov dword [esp + 0x1c], ebx
jb 0x40c748
mov eax, dword [esp + 0x30]
push eax
call fcn.0043e965
add esp, 4
cmp dword [esp + 0x2bc], edi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
jb 0x40c772
mov ecx, dword [esp + 0x2a8]
push ecx
call fcn.0043e965
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.0043d02a
add esp, 0x288
ret 0x20