Function at 0x41e162
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x557a47
mov eax, dword fs:[0]
push eax
sub esp, 0x8b0
mov eax, dword [0x5b3db0]
xor eax, esp
mov dword [esp + 0x8a8], eax
push ebx
push esi
push edi
mov eax, dword [0x5b3db0]
xor eax, esp
push eax
lea eax, [esp + 0x8c0]
mov dword fs:[0], eax
and dword [esp + 0x44], 0
mov edi, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x40], vtable.CLcMgrStub.0
and dword [esp + 0x8c8], 0
call fcn.0042b589
push eax
lea ecx, [esp + 0x5c]
call fcn.0040217f
mov byte [esp + 0x8c8], 1
call fcn.00409b98
mov eax, dword [eax]
push str.Resources
push eax
lea eax, [esp + 0x60]
push 0x588938
push eax
call fcn.004034f1
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.string
call fcn.00401daf
mov byte [esp + 0x8cc], 2
mov eax, dword [esp + 0x5c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
mov dword [esp + 0x60], eax
call fcn.00401e83
add eax, 0x10
mov dword [esi], eax
pop ecx
lea esi, [esp + 0x48]
mov byte [esp + 0x8d0], 1
call fcn.0040da1c
mov eax, dword [edi + 4]
mov edi, 0x587b60
mov ebx, 0x587cac
test eax, eax
jne 0x41e2fd
mov esi, 0x800
push esi
lea eax, [esp + 0xb8]
push 0
push eax
call fcn.0052bfd0
add esp, 0xc
lea eax, [esp + 0x50]
push eax
push 0x20019
push 0
push str.SOFTWAREEPSONDocument_Capture
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e2bc
and dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push str.InstallFolder
push dword [esp + 0x64]
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xb4]
push eax
call fcn.0052ba99
pop ecx
test eax, eax
je 0x41e7ae
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 4]
push str.EPSON_Event_Manager_Job_Deploy
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x18], eax
test esi, esi
je 0x41e79d
jmp 0x41e5e9
mov eax, dword [esp + 0x34]
test eax, eax
je 0x41e5e0
mov ecx, dword [eax]
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
mov dword [esp + 0x38], ecx
call fcn.00401e83
add eax, 0x10
pop ecx
mov dword [esp + 0x4c], eax
lea esi, [eax - 0x10]
mov byte [esp + 0x8c8], 3
push esi
mov dword [esp + 0x2c], esi
call fcn.00401e83
add eax, 0x10
mov dword [esp + 0x3c], eax
mov byte [esp + 0x8cc], 4
mov dword [esp], str.Model
push edi
lea ecx, [esp + 0x40]
call fcn.004087b6
push esi
mov byte [esp + 0x1b], 0
call fcn.00401e83
add eax, 0x10
pop ecx
mov dword [esp + 0x18], eax
push ebx
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x8d0], 5
call fcn.004087b6
push 0x10
push 0
push dword [esp + 0x20]
call fcn.0052dad7
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp eax, 0xffff
jge 0x41e424
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push ebx
call fcn.00401daf
push dword [esp + 0x20]
lea eax, [esp + 0x64]
push eax
call fcn.00407ddf
lea ecx, [esp + 0x5c]
mov byte [esp + 0x8c8], 6
call fcn.00408146
test al, al
je 0x41e41b
lea eax, [esp + 0x40]
push eax
push ecx
mov edx, esp
lea ecx, [esp + 0x64]
mov dword [esp + 0x50], esp
call fcn.004084a7
push ecx
mov byte [esp + 0x8d4], 7
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], esp
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
push eax
call fcn.00401e83
pop ecx
mov ecx, dword [esp + 0x28]
add eax, 0x10
mov dword [ecx], eax
mov byte [esp + 0x8d4], 6
call fcn.0041ee87
add esp, 0xc
mov byte [esp + 0x17], 1
lea ecx, [esp + 0x5c]
call fcn.00407f3e
mov byte [esp + 0x8c8], 4
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004021a7
cmp byte [esp + 0x17], 0
jne 0x41e5b5
lea eax, [esp + 0x5c]
push eax
call fcn.00401136
push esi
mov byte [esp + 0x8cc], 8
call fcn.00401e83
add eax, 0x10
pop ecx
mov dword [esp + 0x18], eax
push ebx
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x8d0], 9
call fcn.004087b6
call fcn.0042b589
push eax
lea ecx, [esp + 0x28]
call fcn.0040217f
mov byte [esp + 0x8c8], 0xa
call fcn.00409b98
push dword [eax]
lea eax, [esp + 0x28]
push str._sAssistantsScan_AssistantScannerDevCap.ini
push eax
call fcn.004034f1
add esp, 0xc
call fcn.0042b589
push eax
lea ecx, [esp + 0x30]
call fcn.0040217f
lea esi, [esp + 0x3c]
mov byte [esp + 0x8c8], 0xb
call fcn.00409aa7
mov byte [esp + 0x8c8], 0xc
push dword [eax]
lea eax, [esp + 0x30]
push str._sEpson_SoftwareDocument_CaptureDCPALL.ini
push eax
call fcn.004034f1
mov byte [esp + 0x8d4], 0xb
mov ecx, dword [esp + 0x48]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004021a7
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x20]
lea ecx, [esp + 0x64]
call fcn.00401402
lea esi, [esp + 0x30]
lea eax, [esp + 0x5c]
call fcn.00401662
lea eax, [esp + 0x40]
mov byte [esp + 0x8c8], 0xd
mov esi, dword [esp + 0x30]
push eax
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x50], esp
mov dword [esp + 0x24], esp
push esi
call fcn.00401e83
mov ecx, dword [esp + 0x28]
add eax, 0x10
mov dword [ecx], eax
mov byte [esp + 0x8d4], 0xe
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], esp
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
push eax
call fcn.00401e83
pop ecx
mov ecx, dword [esp + 0x28]
add eax, 0x10
mov dword [ecx], eax
mov byte [esp + 0x8d4], 0xd
call fcn.0041ee87
add esp, 0xc
mov ecx, esi
call fcn.004021a7
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004021a7
lea esi, [esp + 0x5c]
call fcn.00401178
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, esi
mov byte [esp + 0x8c8], 1
call fcn.004021a7
cmp dword [esp + 0x34], 0
jne 0x41e2f9
jmp 0x41e24f
call fcn.0042c2ad
mov esi, dword [esp + 0x34]
mov eax, esi
test esi, esi
je 0x41e5e0
mov eax, dword [eax + 8]
mov ecx, dword [esi]
sub eax, 0x10
push eax
mov dword [esp + 0x38], ecx
call fcn.00401e83
add eax, 0x10
pop ecx
mov dword [esp + 0x48], eax
lea esi, [eax - 0x10]
mov byte [esp + 0x8c8], 0xf
push esi
mov dword [esp + 0x40], esi
call fcn.00401e83
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x8cc], 0x10
mov dword [esp], str.Model
push edi
lea ecx, [esp + 0x2c]
call fcn.004087b6
lea eax, [esp + 0x5c]
push eax
call fcn.00401136
push esi
mov byte [esp + 0x8cc], 0x11
call fcn.00401e83
add eax, 0x10
pop ecx
mov dword [esp + 0x4c], eax
lea esi, [eax - 0x10]
push esi
mov byte [esp + 0x8cc], 0x12
call fcn.00401e83
add eax, 0x10
pop ecx
mov dword [esp + 0x2c], eax
push ebx
push edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x8d0], 0x13
call fcn.004087b6
mov eax, dword [esp + 0x2c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov dword [esp + 0x24], esp
push eax
mov dword [esp + 0x30], eax
call fcn.00401e83
pop ecx
mov ecx, dword [esp + 0x24]
add eax, 0x10
mov dword [ecx], eax
lea eax, [esp + 0x60]
push eax
call fcn.00407ccc
pop ecx
pop ecx
mov ecx, dword [esp + 0x28]
call fcn.004021a7
mov ecx, esi
mov byte [esp + 0x8c8], 0x11
call fcn.004021a7
lea esi, [esp + 0x30]
lea eax, [esp + 0x5c]
call fcn.00401662
mov byte [esp + 0x8c8], 0x14
cmp dword [esp + 0x68], 0
mov esi, dword [esp + 0x30]
jle 0x41e764
push ecx
lea eax, [esp + 0xb8]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call fcn.00401daf
push ecx
mov byte [esp + 0x8d0], 0x15
lea eax, [esi - 0x10]
mov dword [esp + 0x30], esp
mov dword [esp + 0x28], esp
push eax
call fcn.00401e83
mov ecx, dword [esp + 0x2c]
add eax, 0x10
mov dword [ecx], eax
mov byte [esp + 0x8d4], 0x16
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], esp
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
push eax
call fcn.00401e83
pop ecx
mov ecx, dword [esp + 0x2c]
add eax, 0x10
mov dword [ecx], eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8d4], 0x14
call fcn.0041ebd3
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.004021a7
lea esi, [esp + 0x5c]
call fcn.00401178
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004021a7
mov byte [esp + 0x8c8], 1
mov ecx, dword [esp + 0x3c]
call fcn.004021a7
cmp dword [esp + 0x34], 0
jne 0x41e5e5
cmp dword [esp + 0x18], 0
je 0x41e7ae
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x54]
call fcn.004021a7
or dword [esp + 0x8c8], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.0040da0b
mov ecx, dword [esp + 0x8c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8a8]
xor ecx, esp
call fcn.0052b424
mov esp, ebp
pop ebp
ret