Function at 0x4053d0
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40c880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
push eax
lea eax, [esp + 0x84]
mov dl, byte [ecx]
mov ecx, edi
push edx
push eax
mov dword [esp + 0x80], 0
call fcn.00404510
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 1
call fcn.0040b9de
lea ecx, [esp + 0x80]
mov byte [esp + 0x74], 0
call fcn.0040b9d8
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40587e
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x5c]
push eax
push ecx
push 0
push 0
push str.DriverVersion
push edx
mov dword [esp + 0x48], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40586c
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.0040bab0
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x78], 2
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push str.Are_you_sure_you_want_to_update_version
push ecx
mov byte [esp + 0x80], 3
call sub.MFC42.DLL_operator_1
push str._to_version
lea edx, [esp + 0x3c]
push eax
push edx
mov byte [esp + 0x80], 4
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
mov byte [esp + 0x80], 5
call sub.MFC42.DLL_operator
push 0x41099c
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x7c], 6
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], 0xa
call fcn.0040b9d8
lea ecx, [esp + 0x38]
mov byte [esp + 0x74], 9
call fcn.0040b9d8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 8
call fcn.0040b9d8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
push str.A_newer_driver_version
push edx
call sub.MFC42.DLL_operator_1
push str._has_been_found_on_the_system._To_remove_this_driver_go_to_Add_Remove_Programs_in_the_Control_Panel
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x7c], 0xb
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x74], 0xd
call fcn.0040b9d8
mov ebx, 1
push 0x4101a8
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::operator_1
push 0x4101a8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], ebx
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4057d8
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx - 8]
test edx, edx
je 0x405770
test ebx, ebx
je 0x4057e9
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
push 0x2e
lea ecx, [esp + 0x18]
mov esi, eax
call sub.MFC42.DLL_CString::Find
test esi, esi
mov edi, eax
jle 0x40575d
test edi, edi
jle 0x40575d
lea edx, [esp + 0x48]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov ebx, dword [eax]
lea eax, [esp + 0x44]
push edi
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 0xe
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push eax
call ebp
mov edx, eax
push ebx
mov dword [esp + 0x88], edx
call ebp
mov ecx, dword [esp + 0x88]
add esp, 8
cmp eax, ecx
lea ecx, [esp + 0x44]
setl bl
call fcn.0040b9d8
lea ecx, [esp + 0x48]
mov byte [esp + 0x74], 0xd
call fcn.0040b9d8
test bl, bl
je 0x405670
xor ebx, ebx
mov dword [esp + 0x84], ebx
jmp 0x40575d
lea edx, [esp + 0x50]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov ebx, dword [eax]
lea eax, [esp + 0x4c]
push edi
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 0xf
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push eax
call ebp
mov edx, eax
push ebx
mov dword [esp + 0x88], edx
call ebp
mov ecx, dword [esp + 0x88]
add esp, 8
cmp eax, ecx
lea ecx, [esp + 0x4c]
setg byte [esp + 0x80]
call fcn.0040b9d8
mov bl, 0xd
lea ecx, [esp + 0x50]
mov byte [esp + 0x74], bl
call fcn.0040b9d8
mov al, byte [esp + 0x80]
test al, al
je 0x4056ec
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x84], ebx
jmp 0x40575d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x58]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 0x10
call fcn.0040b9de
lea ecx, [esp + 0x54]
mov byte [esp + 0x74], bl
call fcn.0040b9d8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x58]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
sub eax, edi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 0x11
call fcn.0040b9de
lea ecx, [esp + 0x58]
mov byte [esp + 0x74], bl
call fcn.0040b9d8
mov ebx, dword [esp + 0x84]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4055c1
test ebx, ebx
je 0x4057e9
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x4057d8
xor ebx, ebx
mov ecx, dword [esp + 0x24]
push 0x40
push str.Notice
push ecx
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], 8
call fcn.0040b9d8
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 3
call fcn.0040b9d8
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.0040b9d8
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 0
call fcn.0040b9d8
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405883
test ebx, ebx
je 0x4057e9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x405790
xor ebx, ebx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40577d
mov esi, dword [esp + 0x8c]
test esi, esi
jne 0x405818
mov ecx, dword [esp + 0x28]
push 0x24
push str.Update
push ecx
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 6
jne 0x405790
mov ebp, dword [esp + 0x7c]
push esi
push 1
lea esi, [ebp + 0x7c]
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x88], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.004058b0
test eax, eax
je 0x40585e
mov al, byte [ebp]
mov ebx, 1
cmp al, bl
jne 0x40585e
mov eax, dword [esp + 0x88]
mov dword [eax], ebx
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42.DLL_CString::ReleaseBuffer
jmp 0x405790
mov edx, dword [esp + 0x2c]
mov ebx, 1
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405883
mov ebx, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x74], 0xffffffff
call fcn.0040b9d8
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret 0x14