Function at 0x41f23e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x140
mov eax, 0x569f10
call fcn.0053da79
and dword [ebp - 0x128], 0
mov edi, ecx
mov dword [ebp - 0x11c], edi
call fcn.00424016
test al, al
je 0x41f6f9
push 0xa
lea ecx, [ebp - 0x14c]
call fcn.00439570
and dword [ebp - 4], 0
lea eax, [ebp - 0x14c]
push eax
call fcn.00434a1f
mov esi, dword [ebp - 0x148]
and dword [ebp - 0x124], 0
pop ecx
call fcn.00438647
push eax
lea ecx, [ebp - 0x12c]
call fcn.0042a80d
mov byte [ebp - 4], 1
jmp 0x41f38b
mov eax, esi
test esi, esi
je 0x41f395
mov eax, dword [eax + 8]
mov esi, dword [esi]
sub eax, 0x10
push eax
call fcn.00402431
add eax, 0x10
pop ecx
mov dword [ebp - 0x120], eax
push 0
push 0x59cda0
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.00410289
mov ecx, eax
call fcn.0040f067
test eax, eax
js 0x41f379
mov eax, dword [ebp - 0x120]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x130], esp
mov ebx, esp
push eax
call fcn.00402431
add eax, 0x10
pop ecx
mov dword [ebx], eax
call fcn.00423a38
pop ecx
test al, al
je 0x41f34e
lea edi, [ebp - 0x118]
call fcn.0041f1b4
mov byte [ebp - 4], 3
push dword [ebp - 0x120]
or dword [ebp - 0x128], 1
mov ecx, eax
call fcn.00410e1f
mov edi, dword [ebp - 0x11c]
test eax, eax
jne 0x41f34e
mov bl, 1
jmp 0x41f350
xor bl, bl
mov dword [ebp - 4], 2
test byte [ebp - 0x128], 1
je 0x41f375
mov ecx, dword [ebp - 0x118]
and dword [ebp - 0x128], 0xfffffffe
add ecx, 0xfffffff0
call fcn.00402722
test bl, bl
jne 0x41f39a
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00402722
test esi, esi
jne 0x41f2ae
jmp 0x41f3c8
call fcn.00439394
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x124], 1
call fcn.0040248f
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00402722
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push 0x5990a0
call fcn.0040235d
lea ecx, [edi + 0xd80]
call fcn.0041775c
cmp dword [ebp - 0x124], 0
je 0x41f418
mov eax, dword [ebp - 0x12c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x130], esp
mov ebx, esp
push eax
call fcn.00402431
pop ecx
add eax, 0x10
lea ecx, [edi + 0xd80]
mov dword [ebx], eax
call fcn.0041775c
mov ebx, dword [ebp - 0x124]
xor esi, esi
cmp dword [edi + 0xd8c], ebx
je 0x41f42f
mov dword [edi + 0xd8c], ebx
inc esi
push edi
call fcn.0041f749
test esi, esi
je 0x41f539
test ebx, ebx
je 0x41f4f5
mov ecx, dword [ebp - 0x12c]
call fcn.004240cc
test eax, eax
jne 0x41f539
call fcn.00438647
push eax
lea ecx, [ebp - 0x11c]
call fcn.0042a80d
lea esi, [edi + 0x1e8]
push str.Message.ScannerConnectedUSB
lea ebx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0041752c
mov byte [ebp - 4], 5
mov eax, dword [eax]
push dword [ebp - 0x12c]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.0040a7c3
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x118]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402722
push str.Message.ScannerConnectedBody
lea ebx, [ebp - 0x118]
call fcn.0041752c
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x11c]
mov edx, dword [eax]
push 0x8c
push esi
lea ecx, [edi + 0x9a0]
call fcn.00435876
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.00402722
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
jmp 0x41f534
push str.Message.ScannerDisconnected
lea esi, [edi + 0x1e8]
lea ebx, [ebp - 0x118]
call fcn.0041752c
mov byte [ebp - 4], 7
mov eax, dword [eax]
push 0x8a
push eax
lea ecx, [edi + 0x9a0]
mov edx, 0x5990a0
call fcn.00435876
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.00402722
mov eax, dword [0x5d169c]
test eax, eax
jne 0x41f55a
push str.EPNWPSHDevFinder
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x5d169c], eax
test eax, eax
je 0x41f6dc
push str.ConfirmPushScanReady
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x41f6dc
lea eax, [ebp - 0x124]
push eax
push str.SoftwareEPSONEpsonScanManager
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41f6dc
push 0x40
pop esi
push esi
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x120], esi
call fcn.00539100
push esi
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00539100
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push str.LastConnectAddress
push dword [ebp - 0x124]
call esi
test eax, eax
jne 0x41f6d0
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push str.LastConnectDS
push dword [ebp - 0x124]
call esi
test eax, eax
jne 0x41f6d0
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040a16a
pop ecx
pop ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 8
call fcn.0040f17a
lea eax, [ebp - 0x11c]
lea ecx, [edi + 0xd84]
push eax
mov byte [ebp - 4], 9
call fcn.0040248f
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.00402722
lea eax, [ebp - 0x90]
push eax
call fcn.00538710
mov esi, dword [ebp - 0x128]
pop ecx
test eax, eax
je 0x41f6c8
lea eax, [ebp - 0x110]
push 3
mov dword [ebp - 0x114], eax
push esi
lea eax, [ebp - 0x114]
push eax
call fcn.0040b658
push 0x41f6ff
mov byte [ebp - 4], 0xa
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 0x41f6c8
push dword [ebp - 0x114]
call fcn.0053855f
pop ecx
lea ecx, [esi - 0x10]
call fcn.00402722
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x12c]
add ecx, 0xfffffff0
call fcn.00402722
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0043969e
call fcn.0053dafc
ret