Function at 0x414759
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x140
mov eax, 0x558710
call fcn.0052faf2
call fcn.00418f11
test al, al
je 0x414b6a
push 0xa
lea ecx, [ebp - 0x14c]
call fcn.0042c48a
and dword [ebp - 4], 0
lea eax, [ebp - 0x14c]
push eax
call fcn.00427ca7
mov esi, dword [ebp - 0x148]
and dword [ebp - 0x118], 0
pop ecx
call fcn.0042b589
push eax
lea ecx, [ebp - 0x124]
call fcn.0040217f
mov byte [ebp - 4], 1
jmp 0x414830
mov eax, esi
test esi, esi
je 0x414836
mov eax, dword [eax + 8]
mov esi, dword [esi]
sub eax, 0x10
push eax
call fcn.00401e83
add eax, 0x10
pop ecx
mov dword [ebp - 0x120], eax
push 0
push 0x58a868
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.00407c89
mov ecx, eax
call fcn.00406fa0
test eax, eax
js 0x41481e
mov eax, dword [ebp - 0x120]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x128], esp
mov ebx, esp
push eax
call fcn.00401e83
add eax, 0x10
pop ecx
mov dword [ebx], eax
call fcn.00418d42
pop ecx
test al, al
jne 0x41483b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.004021a7
test esi, esi
jne 0x4147b7
jmp 0x414869
call fcn.0042c2ad
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x118], 1
call fcn.00401ee1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.004021a7
push ecx
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x587cac
call fcn.00401daf
lea ecx, [edi + 0xda4]
call fcn.0040dcbf
cmp dword [ebp - 0x118], 0
je 0x4148b9
mov eax, dword [ebp - 0x124]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x128], esp
mov ebx, esp
push eax
call fcn.00401e83
pop ecx
add eax, 0x10
lea ecx, [edi + 0xda4]
mov dword [ebx], eax
call fcn.0040dcbf
mov edx, dword [ebp - 0x118]
cmp dword [edi + 0xdb0], edx
je 0x4149ce
mov dword [edi + 0xdb0], edx
test edx, edx
je 0x41498a
mov ecx, dword [ebp - 0x124]
call fcn.004197ad
cmp eax, 3
jne 0x4149ce
call fcn.0042b589
push eax
lea ecx, [ebp - 0x118]
call fcn.0040217f
lea esi, [edi + 0x1e8]
push str.Message.ScannerConnectedUSB
lea ebx, [ebp - 0x11c]
mov byte [ebp - 4], 3
call fcn.0040da71
mov byte [ebp - 4], 4
mov eax, dword [eax]
push dword [ebp - 0x124]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004034f1
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x11c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004021a7
push str.Message.ScannerConnectedBody
lea ebx, [ebp - 0x11c]
call fcn.0040da71
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x118]
mov edx, dword [eax]
push 0x90
push esi
lea ecx, [edi + 0x9a0]
call fcn.00428afe
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.004021a7
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
jmp 0x4149c9
push str.Message.ScannerDisconnected
lea esi, [edi + 0x1e8]
lea ebx, [ebp - 0x11c]
call fcn.0040da71
mov byte [ebp - 4], 6
mov eax, dword [eax]
push 0x94
push eax
lea ecx, [edi + 0x9a0]
mov edx, 0x587cac
call fcn.00428afe
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.004021a7
push edi
call fcn.00415108
mov eax, dword [0x5bc16c]
test eax, eax
jne 0x4149f5
push str.EPNWPSHDevFinder
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x5bc16c], eax
test eax, eax
je 0x414b4d
push str.ConfirmPushScanReady
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x414b4d
lea eax, [ebp - 0x118]
push eax
push str.SoftwareEPSONFastFoto
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x414b4d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x40
pop eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push str.LastConnectAddress
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x414b41
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push str.LastConnectDS
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x414b41
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x120]
call fcn.004070b3
lea eax, [ebp - 0x120]
lea ecx, [edi + 0xda8]
push eax
mov byte [ebp - 4], 7
call fcn.00401ee1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.004021a7
push 0
lea esi, [ebp - 0x11c]
call fcn.00402e46
pop ecx
push 3
mov byte [ebp - 4], 8
push dword [ebp - 0x11c]
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
call fcn.00404273
push 0x4150e3
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 0x414b33
push dword [ebp - 0x114]
call fcn.0052b484
pop ecx
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.004021a7
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x124]
add ecx, 0xfffffff0
call fcn.004021a7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0042c5b8
call fcn.0052fb75
ret