Function at 0x41ea99
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x13c
mov eax, 0x5697c5
call fcn.0053d399
call fcn.004235ab
test al, al
je 0x41eea7
push 0xa
lea ecx, [ebp - 0x148]
call fcn.00438e87
and dword [ebp - 4], 0
lea eax, [ebp - 0x148]
push eax
call fcn.00434338
mov esi, dword [ebp - 0x144]
and dword [ebp - 0x11c], 0
pop ecx
call fcn.00437f60
push eax
lea ecx, [ebp - 0x120]
call fcn.0042a551
mov byte [ebp - 4], 1
jmp 0x41eb70
mov eax, esi
test esi, esi
je 0x41eb76
mov eax, dword [eax + 8]
mov esi, dword [esi]
sub eax, 0x10
push eax
call fcn.0040242c
add eax, 0x10
pop ecx
mov dword [ebp - 0x118], eax
push 0
push 0x59cde8
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.004100b7
mov ecx, eax
call fcn.0040ef12
test eax, eax
js 0x41eb5e
mov eax, dword [ebp - 0x118]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x124], esp
mov ebx, esp
push eax
call fcn.0040242c
add eax, 0x10
pop ecx
mov dword [ebx], eax
call fcn.004233dc
pop ecx
test al, al
jne 0x41eb7b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.00402728
test esi, esi
jne 0x41eaf7
jmp 0x41eba9
call fcn.00438caa
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x11c], 1
call fcn.0040248a
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.00402728
push ecx
mov ecx, esp
mov dword [ebp - 0x124], esp
push 0x5990a0
call fcn.00402358
lea ecx, [edi + 0xda4]
call fcn.0041755e
cmp dword [ebp - 0x11c], 0
je 0x41ebf9
mov eax, dword [ebp - 0x120]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x124], esp
mov ebx, esp
push eax
call fcn.0040242c
pop ecx
add eax, 0x10
lea ecx, [edi + 0xda4]
mov dword [ebx], eax
call fcn.0041755e
mov edx, dword [ebp - 0x11c]
cmp dword [edi + 0xdb0], edx
je 0x41ed0e
mov dword [edi + 0xdb0], edx
test edx, edx
je 0x41ecca
mov ecx, dword [ebp - 0x120]
call fcn.00423e47
cmp eax, 3
jne 0x41ed0e
call fcn.00437f60
push eax
lea ecx, [ebp - 0x11c]
call fcn.0042a551
lea esi, [edi + 0x1e8]
push str.Message.ScannerConnectedUSB
lea ebx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.00417310
mov byte [ebp - 4], 4
mov eax, dword [eax]
push dword [ebp - 0x120]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.0040a7ee
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x118]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402728
push str.Message.ScannerConnectedBody
lea ebx, [ebp - 0x118]
call fcn.00417310
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x11c]
mov edx, dword [eax]
push 0x90
push esi
lea ecx, [edi + 0x9a0]
call fcn.0043518f
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.00402728
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
jmp 0x41ed09
push str.Message.ScannerDisconnected
lea esi, [edi + 0x1e8]
lea ebx, [ebp - 0x11c]
call fcn.00417310
mov byte [ebp - 4], 6
mov eax, dword [eax]
push 0x94
push eax
lea ecx, [edi + 0x9a0]
mov edx, 0x5990a0
call fcn.0043518f
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.00402728
push edi
call fcn.0041f442
mov eax, dword [0x5d169c]
test eax, eax
jne 0x41ed35
push str.EPNWPSHDevFinder
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x5d169c], eax
test eax, eax
je 0x41ee8a
push str.ConfirmPushScanReady
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x41ee8a
lea eax, [ebp - 0x11c]
push eax
push str.SoftwareEPSONFastFoto
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41ee8a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x40
pop eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push str.LastConnectAddress
push dword [ebp - 0x11c]
call esi
test eax, eax
jne 0x41ee7e
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push str.LastConnectDS
push dword [ebp - 0x11c]
call esi
test eax, eax
jne 0x41ee7e
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x118]
call fcn.0040f025
lea eax, [ebp - 0x118]
lea ecx, [edi + 0xda8]
push eax
mov byte [ebp - 4], 7
call fcn.0040248a
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.00402728
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0040a195
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x110]
push 3
mov dword [ebp - 0x114], eax
push esi
lea eax, [ebp - 0x114]
push eax
call fcn.0040b67d
push 0x41f41d
mov byte [ebp - 4], 9
push dword [ebp - 0x114]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x90]
push eax
call ebx
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x41ee76
push dword [ebp - 0x114]
call fcn.00537e71
pop ecx
lea ecx, [esi - 0x10]
call fcn.00402728
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00402728
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.00438fb5
call fcn.0053d41c
ret