Function at 0x412b65
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14c
mov eax, 0x46e443
call fcn.004517f7
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xac], edi
call fcn.0041794b
test al, al
je 0x412ffb
push 0xa
lea ecx, [ebp - 0xd4]
call fcn.0042ada0
lea eax, [ebp - 0xd4]
push eax
mov dword [ebp - 4], edi
call fcn.00426c16
mov esi, dword [ebp - 0xd0]
pop ecx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], edi
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0xb0]
call fcn.00402773
mov byte [ebp - 4], 1
cmp esi, edi
je 0x412ce7
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00407341
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040283c
push 0x479df0
lea edi, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.0040731b
mov esi, eax
call fcn.004068da
test eax, eax
jl 0x412c98
push ecx
mov eax, edi
mov dword [ebp - 0xb4], esp
mov ecx, esp
push eax
call fcn.0040283c
call fcn.00417393
pop ecx
test al, al
je 0x412c63
lea esi, [ebp - 0x9c]
call fcn.00412ae5
mov byte [ebp - 4], 3
push dword [ebp - 0xa8]
or dword [ebp - 0xac], 1
mov ecx, eax
call fcn.00408c1b
mov byte [ebp - 0x95], 1
test eax, eax
je 0x412c6a
mov byte [ebp - 0x95], 0
mov dword [ebp - 4], 2
test byte [ebp - 0xac], 1
je 0x412c8f
mov ecx, dword [ebp - 0x9c]
and dword [ebp - 0xac], 0xfffffffe
add ecx, 0xfffffff0
call fcn.0040285d
cmp byte [ebp - 0x95], 0
jne 0x412cb9
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
call fcn.0040285d
cmp dword [ebp - 0xa4], 0
jne 0x412bdd
jmp 0x412ce7
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xa0], 1
call fcn.0040270e
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
call fcn.0040285d
push ecx
mov ecx, esp
mov dword [ebp - 0xb4], esp
mov edi, 0x47741c
push edi
call fcn.004024c3
lea esi, [ebx + 0xd78]
mov ecx, esi
mov dword [ebp - 0xac], esi
call fcn.0040c36d
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x412d3a
push ecx
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb4], esp
mov ecx, esp
push eax
call fcn.0040283c
mov ecx, esi
call fcn.0040c36d
mov ecx, dword [ebp - 0xa0]
lea eax, [ebx + 0xd84]
xor esi, esi
cmp dword [eax], ecx
je 0x412d49
mov dword [eax], ecx
inc esi
mov ecx, ebx
call fcn.0041308a
test esi, esi
je 0x412e64
cmp dword [ebp - 0xa0], 0
je 0x412e1d
mov ecx, dword [ebp - 0xb0]
call fcn.00417a01
test eax, eax
jne 0x412e64
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0xa4]
call fcn.00402773
lea esi, [ebx + 0x1e0]
push str.Message.ScannerConnectedUSB
lea ebx, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.0040bf42
mov byte [ebp - 4], 5
mov eax, dword [eax]
push dword [ebp - 0xb0]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0040314f
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x9c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040285d
push str.Message.ScannerConnectedBody
lea ebx, [ebp - 0x9c]
call fcn.0040bf42
mov ecx, dword [ebp - 0xb8]
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov esi, dword [ebp - 0xa4]
push 0x8c
push esi
add ecx, 0x998
mov edx, eax
call fcn.004279f8
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff0
call fcn.0040285d
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
jmp 0x412e5f
lea esi, [ebx + 0x1e0]
push str.Message.ScannerDisconnected
lea ebx, [ebp - 0x9c]
call fcn.0040bf42
mov ecx, dword [ebp - 0xb8]
mov byte [ebp - 4], 7
mov eax, dword [eax]
push 0x8a
push eax
add ecx, 0x998
mov edx, edi
call fcn.004279f8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff0
call fcn.0040285d
mov eax, dword [0x490c54]
test eax, eax
jne 0x412e85
push str.EPNWPSHDevFinder
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x490c54], eax
test eax, eax
je 0x412fde
push str.ConfirmPushScanReady
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x412fde
lea eax, [ebp - 0xa0]
push eax
push str.SoftwareEPSONEpsonScanManager
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x412fde
push 0x40
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa8], esi
call fcn.0044de40
add esp, 0xc
push esi
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.0044de40
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xb4]
push eax
push edi
push str.LastConnectAddress
push dword [ebp - 0xa0]
call esi
test eax, eax
jne 0x412fd2
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xb4]
push eax
push edi
push str.LastConnectDS
push dword [ebp - 0xa0]
call esi
test eax, eax
jne 0x412fd2
push edi
lea esi, [ebp - 0xa4]
call fcn.00402a36
lea eax, [ebp - 0x94]
mov ecx, esp
mov dword [ebp - 0xb8], esp
push eax
mov byte [ebp - 4], 8
call fcn.00406a1b
mov ecx, dword [ebp - 0xac]
call fcn.0040c33e
lea eax, [ebp - 0x54]
push eax
call fcn.0044d7d0
pop ecx
test eax, eax
jbe 0x412fc4
push dword [ebp - 0xa4]
lea esi, [ebp - 0x158]
call fcn.00403b43
push 0x413001
mov byte [ebp - 4], 9
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x54]
push eax
call ebx
lea eax, [ebp - 0x154]
cmp dword [ebp - 0x158], eax
je 0x412fc4
push dword [ebp - 0x158]
call fcn.0044dba4
pop ecx
mov ecx, dword [ebp - 0xa4]
add ecx, 0xfffffff0
call fcn.0040285d
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xb0]
add ecx, 0xfffffff0
call fcn.0040285d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.0042aef0
call fcn.0045187a
ret