Function at 0x401464
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push 0x648
mov eax, 0x5647d9
call fcn.0053d749
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, ecx
mov ecx, dword [ebx]
push ecx
push dword [esi]
mov dword [ebp - 0x630], eax
mov eax, dword [eax]
push str.JobDeviceType
push eax
call edi
mov ecx, dword [ebp - 0x630]
mov dword [esi], eax
mov eax, dword [ebx]
mov ecx, dword [ecx]
push eax
push dword [esi + 4]
push str.NumJobEvents
push ecx
call edi
mov ecx, dword [ebp - 0x630]
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov ecx, dword [ecx]
push eax
push dword [esi + 8]
push str.ModelDependency
push ecx
call edi
mov ecx, dword [ebp - 0x630]
mov dword [esi + 8], eax
mov eax, dword [ebx]
mov ecx, dword [ecx]
push eax
push dword [esi + 0xc]
push str.DCUSupport
push ecx
call edi
mov ecx, dword [ebp - 0x630]
mov dword [esi + 0xc], eax
mov eax, dword [ebx]
mov ecx, dword [ecx]
push eax
push dword [esi + 0x10]
push str.minimumMajorVersion
push ecx
call edi
cmp dword [esi + 0xc], 0
mov dword [esi + 0x10], eax
jne 0x40173a
test eax, eax
je 0x40173a
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x630]
mov ecx, dword [ecx]
push eax
push dword [esi + 0x14]
push str.minimumMinorVersion
push ecx
call edi
mov ecx, dword [ebp - 0x630]
mov dword [esi + 0x14], eax
mov eax, dword [ebx]
mov ecx, dword [ecx]
push eax
push dword [esi + 0x18]
push str.minimumBuildVersion
push ecx
call edi
and dword [ebp - 0x634], 0
push 0x208
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x420]
push 0
push eax
mov byte [ebp - 0x629], 0
mov dword [ebp - 0x654], 1
call fcn.00538860
add esp, 0xc
lea eax, [ebp - 0x634]
push eax
push 0x20219
push 0
push str.SOFTWAREEPSONDocument_Capture
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x64c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4015e3
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x654]
push eax
push 0
push str.Version
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4015ca
mov byte [ebp - 0x629], 1
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x629], 0
jne 0x40166d
lea eax, [ebp - 0x634]
push eax
push 0x20119
push 0
push str.SOFTWAREEPSONDocument_Capture
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40166d
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
mov dword [ebp - 0x654], 1
call fcn.00538860
add esp, 0xc
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x654]
push eax
push 0
push str.Version
push dword [ebp - 0x634]
mov dword [ebp - 0x64c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401661
mov byte [ebp - 0x629], 1
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x640], eax
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00538860
add esp, 0xc
cmp byte [ebp - 0x629], 0
je 0x401710
and dword [ebp - 0x644], 0
mov eax, dword [ebp - 0x644]
movzx eax, word [ebp + eax*2 - 0x420]
cmp eax, 0x2e
jne 0x401972
mov eax, dword [ebp - 0x648]
sub eax, 0
je 0x401928
dec eax
je 0x4018eb
dec eax
jne 0x401963
lea eax, [ebp - 0x218]
push eax
call fcn.005388f0
mov dword [ebp - 0x650], eax
mov dword [esp], 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00538860
add esp, 0xc
mov eax, dword [esi + 0x10]
cmp dword [ebp - 0x63c], eax
jne 0x401731
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x638], eax
jne 0x401731
mov eax, dword [esi + 0x18]
cmp dword [ebp - 0x650], eax
je 0x401733
jle 0x40173a
mov dword [esi + 0xc], 1
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x630]
mov ecx, dword [ecx]
push eax
push dword [esi + 0x1c]
push str.DisablePanelJobEdit
push ecx
call edi
mov ecx, dword [ebp - 0x630]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx]
mov ecx, dword [ecx]
push eax
push dword [esi + 0x20]
push str.OfficeSupported
push ecx
call edi
mov ecx, dword [ebp - 0x630]
mov dword [esi + 0x20], eax
mov eax, dword [ebx]
mov ecx, dword [ecx]
push eax
push dword [esi + 0x24]
push str.NumUsbEvents
push ecx
call edi
mov ecx, dword [ebp - 0x630]
mov dword [esi + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ecx]
push eax
push dword [esi + 0x28]
push str.PasswordHashEnabled
push ecx
call edi
mov ecx, dword [ebp - 0x630]
mov dword [esi + 0x28], eax
mov eax, dword [ebx]
mov ecx, dword [ecx]
push eax
push dword [esi + 0x2c]
push str.SimpleScanButtonAssignEnabled
push ecx
call edi
mov ecx, dword [ebp - 0x630]
mov dword [esi + 0x2c], eax
mov eax, dword [ebx]
mov ecx, dword [ecx]
push eax
push dword [esi + 0x34]
push str.ADFOrigin
push ecx
call edi
mov ecx, dword [ebp - 0x630]
mov dword [esi + 0x34], eax
mov eax, dword [ebx]
mov ecx, dword [ecx]
push eax
push dword [esi + 0x38]
push str.DocumentTableOrigin
push ecx
call edi
mov ecx, dword [esi + 0x30]
mov edx, dword [ebp - 0x630]
mov dword [esi + 0x38], eax
mov eax, dword [ebx]
mov edx, dword [edx]
push eax
push 0x104
lea eax, [ebp - 0x628]
push eax
push ecx
push str.DeviceSettingAlias
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x63c]
call fcn.0040266d
and dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x30]
call fcn.0040279f
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x63c]
add ecx, 0xfffffff0
call fcn.00402a50
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x630]
mov ecx, dword [ecx]
push eax
push dword [esi + 0x3c]
push str.DefaultSetting
push ecx
call edi
mov ecx, dword [ebp - 0x630]
mov dword [esi + 0x3c], eax
mov eax, dword [ebx]
mov ecx, dword [ecx]
push eax
push dword [esi + 0x40]
push str.SupportShowPanelFunction
push ecx
call edi
mov ecx, dword [esi + 0x44]
mov edx, dword [ebp - 0x630]
mov dword [esi + 0x40], eax
mov eax, dword [ebx]
mov edx, dword [edx]
push eax
push 0x104
lea eax, [ebp - 0x628]
push eax
push ecx
push str.Premium
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x638]
call fcn.0040266d
push eax
lea ecx, [esi + 0x44]
mov dword [ebp - 4], 1
call fcn.0040279f
mov ecx, dword [ebp - 0x638]
add ecx, 0xfffffff0
call fcn.00402a50
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x630]
mov eax, dword [eax]
push ebx
push dword [esi + 0x48]
push str.IsLargeFormatModel
push eax
call edi
mov dword [esi + 0x48], eax
call fcn.0053d7cc
ret 4
lea eax, [ebp - 0x218]
push eax
call fcn.005388f0
mov dword [ebp - 0x638], eax
mov dword [esp], 0x208
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x648], 2
call fcn.00538860
add esp, 0xc
and dword [ebp - 0x640], 0
jmp 0x401986
lea eax, [ebp - 0x218]
push eax
call fcn.005388f0
mov dword [ebp - 0x63c], eax
mov dword [esp], 0x208
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x648], 1
call fcn.00538860
add esp, 0xc
and dword [ebp - 0x640], 0
cmp dword [ebp - 0x648], 3
je 0x401710
jmp 0x401986
mov ecx, dword [ebp - 0x640]
inc dword [ebp - 0x640]
mov word [ebp + ecx*2 - 0x218], ax
inc dword [ebp - 0x644]
cmp dword [ebp - 0x644], 0x104
jl 0x4016b2
jmp 0x401710