Function at 0x402230
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x402eab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x110]
push 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x1c], ecx
call fcn.00401240
test eax, eax
je 0x4023a8
lea ebp, [esi + 0x104]
push 0
mov ecx, ebp
call fcn.00401240
test eax, eax
je 0x4023a8
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareHewlett_PackardButton_ManagerSettings
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4023a8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.Current_Scanner
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov edi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x402511
lea eax, [esp + 0x20]
test eax, eax
je 0x402511
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0xe0], eax
je 0x4024ee
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitializeDriver
push eax
call edi
mov edx, dword [esi + 0xe0]
push str.InitializeScanner
push edx
mov dword [esi + 0xf4], eax
call edi
mov dword [esi + 0xf8], eax
mov eax, dword [esi + 0xe0]
push str.SetLCD_String
push eax
call edi
mov ecx, dword [esi + 0xe0]
push str.TerminateDriver
push ecx
mov dword [esi + 0x100], eax
call edi
mov ecx, dword [esi + 0xf4]
mov dword [esi + 0xfc], eax
test ecx, ecx
je 0x40239b
mov edx, dword [esi + 0xf8]
test edx, edx
je 0x40239b
mov edx, dword [esi + 0x100]
test edx, edx
je 0x40239b
test eax, eax
je 0x40239b
call ecx
test eax, eax
jne 0x4023d6
mov edx, dword [esi + 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0xc]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00402650
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x124
ret
call dword [esi + pe_nt_image_headers32]
test eax, eax
jne 0x4023e9
mov eax, dword [esi + 0xe0]
push eax
jmp 0x4023a2
mov eax, dword [esi + 0xd8]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.Scan
push eax
call edi
add esp, 8
test eax, eax
jne 0x40240e
push 0x81
jmp 0x4024b7
mov eax, dword [esi + 0xd8]
push str.Copy
push eax
call edi
add esp, 8
test eax, eax
jne 0x40242d
push 0x83
jmp 0x4024b7
mov eax, dword [esi + 0xd8]
push str.HiddenEmail
push eax
call edi
add esp, 8
test eax, eax
jne 0x402449
push 0x85
jmp 0x4024b7
mov eax, dword [esi + 0xd8]
push str.EditText
push eax
call edi
add esp, 8
test eax, eax
jne 0x402465
push 0x84
jmp 0x4024b7
mov eax, dword [esi + 0xd8]
push str.File
push eax
call edi
add esp, 8
test eax, eax
jne 0x402481
push 0x82
jmp 0x4024b7
mov eax, dword [esi + 0xd8]
push 0x404144
push eax
call edi
add esp, 8
test eax, eax
jne 0x40249d
push 0x86
jmp 0x4024b7
mov eax, dword [esi + 0xd8]
push str.MoreOptions
push eax
call edi
add esp, 8
test eax, eax
jne 0x4024c0
push 0x87
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call dword [esi + 0x100]
test eax, eax
jne 0x4024ee
call dword [esi + 0xfc]
mov ecx, dword [esi + 0xe0]
push ecx
jmp 0x4023a2
call dword [esi + 0xfc]
mov eax, dword [esi + 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x18]
call fcn.00401270
mov ecx, ebp
call fcn.00401270
lea ecx, [esp + 0xc]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00402650
mov eax, 1
jmp 0x4023be