Function at 0x40b6da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41eafe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x360
mov dword [ebp - 0x35c], ecx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x40ba88
push 0x4287a4
push 0x4287b4
push 0x42a9c0
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, 0x42a9c0
call fcn.00401ea0
test eax, eax
je 0x40b938
mov dword [ebp - 0x11c], 0x104
mov byte [ebp - 0x220], 0
lea ecx, [ebp - 0x224]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
push 0x4287b8
lea ecx, [ebp - 0x224]
call fcn.0041ced6
lea ecx, [ebp - 0x224]
call fcn.00401ec0
push eax
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x32c]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40b82e
mov dword [ebp - 0x330], 0x104
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0
push 0x4287d0
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b802
lea eax, [ebp - 0x220]
push eax
push 0x4287e0
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b829
mov dword [ebp - 0x33c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x33c]
jmp 0x40ba98
jmp 0x40b924
lea ecx, [ebp - 0x334]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
push 0x4287e4
lea ecx, [ebp - 0x340]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
push 0x4288bc
lea ecx, [ebp - 0x344]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x344]
push ecx
lea edx, [ebp - 0x348]
push edx
mov ecx, 0x42a9a0
call fcn.00413b0f
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x364], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x364]
push ecx
lea ecx, [ebp - 0x334]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x348]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x344]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x340]
call sub.MFC42.DLL_CString::CString
push 0
push 0
lea ecx, [ebp - 0x334]
call fcn.00401ec0
push eax
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x34c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x334]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x34c]
jmp 0x40ba98
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call sub.MFC42.DLL_CString::CString
jmp 0x40b954
mov edx, dword [0x42a9c0]
push edx
push 0x4288d0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x35c]
mov eax, dword [edx + 0x20]
push eax
call sub.SATWAIN.dll_PMScan_SetDefaultDriver
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40b98c
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x35c]
mov eax, dword [edx + 0x20]
push eax
call sub.SATWAIN.dll_PMScan_SetDefaultDriver
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40ba81
cmp dword [0x42acf0], 0
jne 0x40ba7f
lea ecx, [ebp - 0x338]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 5
push 0x4288d4
lea ecx, [ebp - 0x350]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 6
push 0x4289ac
lea ecx, [ebp - 0x354]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x350]
push ecx
lea edx, [ebp - 0x354]
push edx
lea eax, [ebp - 0x358]
push eax
mov ecx, 0x42a9a0
call fcn.00413b0f
mov dword [ebp - 0x368], eax
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x36c], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x36c]
push edx
lea ecx, [ebp - 0x338]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x358]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x354]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x350]
call sub.MFC42.DLL_CString::CString
push 0
push 0
lea ecx, [ebp - 0x338]
call fcn.00401ec0
push eax
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x338]
call sub.MFC42.DLL_CString::CString
jmp 0x40ba88
mov dword [ebp - 0x10], 1
mov eax, dword [0x42acf0]
add eax, 1
mov dword [0x42acf0], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4