Function at 0x4126e8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x144
mov eax, 0x46e4ce
call fcn.004517f7
mov ebx, ecx
mov dword [ebp - 0xa4], ebx
call fcn.0041716f
test al, al
je 0x412adf
push 0xa
lea ecx, [ebp - 0xcc]
call fcn.0042ada0
and dword [ebp - 4], 0
lea eax, [ebp - 0xcc]
push eax
call fcn.00426c16
mov esi, dword [ebp - 0xc8]
and dword [ebp - 0x98], 0
pop ecx
mov dword [ebp - 0x94], esi
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0xa0]
call fcn.00402773
mov byte [ebp - 4], 1
test esi, esi
je 0x4127fd
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00407341
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040283c
push 0x479df0
lea edi, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.0040731b
mov esi, eax
call fcn.004068da
test eax, eax
jl 0x4127b2
push ecx
mov eax, edi
mov dword [ebp - 0xa8], esp
mov ecx, esp
push eax
call fcn.0040283c
call fcn.00416fb0
pop ecx
test al, al
jne 0x4127cf
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff0
call fcn.0040285d
cmp dword [ebp - 0x94], 0
jne 0x41275a
jmp 0x4127fd
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x98], 1
call fcn.0040270e
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff0
call fcn.0040285d
push ecx
mov ecx, esp
mov dword [ebp - 0xa8], esp
mov edi, 0x47741c
push edi
call fcn.004024c3
lea esi, [ebx + 0xd9c]
mov ecx, esi
mov dword [ebp - 0xa8], esi
call fcn.0040c36d
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x412850
push ecx
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xac], esp
mov ecx, esp
push eax
call fcn.0040283c
mov ecx, esi
call fcn.0040c36d
mov ecx, dword [ebp - 0x98]
lea eax, [ebx + 0xda8]
cmp dword [eax], ecx
je 0x41296e
mov dword [eax], ecx
test ecx, ecx
je 0x412921
mov ecx, dword [ebp - 0xa0]
call fcn.00417a01
cmp eax, 3
jne 0x41296e
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x94]
call fcn.00402773
lea esi, [ebx + 0x1e0]
push str.Message.ScannerConnectedUSB
lea ebx, [ebp - 0x98]
mov byte [ebp - 4], 3
call fcn.0040bf42
mov byte [ebp - 4], 4
mov eax, dword [eax]
push dword [ebp - 0xa0]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0040314f
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x98]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040285d
push str.Message.ScannerConnectedBody
lea ebx, [ebp - 0x98]
call fcn.0040bf42
mov ecx, dword [ebp - 0xa4]
mov byte [ebp - 4], 5
mov eax, dword [eax]
mov esi, dword [ebp - 0x94]
push 0x90
push esi
add ecx, 0x998
mov edx, eax
call fcn.004279f8
mov ecx, dword [ebp - 0x98]
add ecx, 0xfffffff0
call fcn.0040285d
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
jmp 0x412963
lea esi, [ebx + 0x1e0]
push str.Message.ScannerDisconnected
lea ebx, [ebp - 0x94]
call fcn.0040bf42
mov ecx, dword [ebp - 0xa4]
mov byte [ebp - 4], 6
mov eax, dword [eax]
push 0x94
push eax
add ecx, 0x998
mov edx, edi
call fcn.004279f8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff0
call fcn.0040285d
mov ebx, dword [ebp - 0xa4]
mov ecx, ebx
call fcn.0041308a
mov eax, dword [0x490c54]
test eax, eax
jne 0x412996
push str.EPNWPSHDevFinder
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x490c54], eax
test eax, eax
je 0x412ac2
push str.ConfirmPushScanReady
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x412ac2
lea eax, [ebp - 0x98]
push eax
push str.SoftwareEPSONFastFoto
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x412ac2
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x40
pop eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xac]
push eax
push 0
push str.LastConnectAddress
push dword [ebp - 0x98]
call esi
test eax, eax
jne 0x412ab6
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xac]
push eax
push 0
push str.LastConnectDS
push dword [ebp - 0x98]
call esi
test eax, eax
jne 0x412ab6
push ecx
lea eax, [ebp - 0x50]
mov ecx, esp
mov dword [ebp - 0x94], esp
push eax
call fcn.00406a1b
mov ecx, dword [ebp - 0xa8]
call fcn.0040c33e
push 0
lea esi, [ebp - 0x94]
call fcn.00402a36
pop ecx
mov byte [ebp - 4], 7
push dword [ebp - 0x94]
lea esi, [ebp - 0x150]
call fcn.00403b43
push 0x413028
mov byte [ebp - 4], 8
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x90]
push eax
call edi
lea eax, [ebp - 0x14c]
cmp dword [ebp - 0x150], eax
je 0x412aa8
push dword [ebp - 0x150]
call fcn.0044dba4
pop ecx
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff0
call fcn.0040285d
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xa0]
add ecx, 0xfffffff0
call fcn.0040285d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.0042aef0
call fcn.0045187a
ret