Function at 0x407b10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b6287
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x84c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x864]
mov dword fs:[0], eax
mov esi, ecx
push str.CESInstallerApp::LoadSetupIni
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], esi
call fcn.00405a40
mov dword [esp + 0x86c], 0
call fcn.0045a356
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407b84
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [0x4ed0cc]
push str.setup.ini
push ecx
lea edx, [esp + 0x1c]
push str._s_s
push edx
mov byte [esp + 0x87c], 1
call fcn.00404ae0
mov edi, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x10
push edi
push 0x200
lea eax, [esp + 0x460]
push eax
push 0x4c1644
push str.Setup
push str.General
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x458]
push ecx
call ebp
test eax, eax
jle 0x407ff1
lea eax, [esp + 0x458]
add esi, 0xe8
lea edx, [eax + 2]
jmp 0x407c10
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407c10
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x45c]
push edx
mov ecx, esi
call fcn.00401700
mov eax, dword [esi]
push eax
push str._INFO_SETUP.INI:Setup_s
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
push edi
push 0x200
lea ecx, [esp + 0x260]
push ecx
push 0x4c1644
push 0x4c15f4
push str.General
call ebx
lea edx, [esp + 0x258]
push edx
call ebp
test eax, eax
jle 0x407dd3
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x2c]
call fcn.00405b00
lea ecx, [esp + 0x18]
push ecx
push 0x4c15f0
lea edx, [esp + 0x2c]
xor ebp, ebp
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x878], 2
xor edi, edi
mov dword [esp + 0x24], ebp
call fcn.004063d0
cmp dword [esp + 0x18], 0xffffffff
mov bl, 3
mov byte [esp + 0x86c], bl
je 0x407d48
mov esi, 0x30
cmp esi, 0xfffffff0
jle 0x407d48
mov eax, dword [esp + 0x24]
push 0xa
push 0
push eax
call fcn.00489758
movzx eax, ax
cdq
add esp, 0xc
mov ecx, esi
call fcn.00489850
lea ecx, [esp + 0x18]
push ecx
add edi, eax
adc ebp, edx
push 0x4c15f0
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x34]
call fcn.004063d0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x870], 4
call fcn.004047c0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x86c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub esi, 0x10
cmp dword [esp + 0x18], 0xffffffff
jne 0x407cc8
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x258]
push ecx
push str._INFO_SETUP.INI:Version_s
mov dword [eax + 0xf0], edi
mov dword [eax + 0xf4], ebp
call fcn.0044f300
push eax
call fcn.0044fb20
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x86c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407d9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x86c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407dc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esp + 0x1c]
push edi
lea ecx, [esi + 0xf8]
push ecx
mov ecx, esi
call fcn.00406260
test al, al
jne 0x407e06
mov byte [esp + 0x86c], al
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40801c
push edi
push 0x20
lea ecx, [esp + 0x38]
push ecx
push str.0x0809
push str.DefaultLocale
push str.General
call ebx
lea edx, [esp + 0x30]
push edx
call ebp
test eax, eax
jle 0x407e59
push 0x10
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00489758
movzx ecx, ax
add esp, 0xc
push ecx
push str._INFO_SETUP.INI:DefaultLocale_x
mov word [esi + 0x104], ax
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
push edi
push 0x208
lea edx, [esp + 0x58]
push edx
push str.EPSON_Scanner
push str.UninstRegKey
push str.General
call ebx
lea eax, [esp + 0x50]
push eax
call ebp
test eax, eax
jle 0x407ee7
lea eax, [esp + 0x50]
add esi, 0x108
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e90
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.00401700
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x50]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
add eax, 0x10c
push str._s_s
push eax
call fcn.00404ae0
mov ecx, dword [esi]
add esp, 0x10
push ecx
push str._INFO_SETUP.INI:UninstallRegKey_s
call fcn.0044f300
push eax
call fcn.0044fb20
mov esi, dword [esp + 0x28]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0
push str.SkipSvcReqCheck
push str.General
call ebx
test eax, eax
jbe 0x407f07
mov byte [esi + 0x110], 1
push edi
push 0
push str.SkipModelSelect
push str.General
call ebx
test eax, eax
jbe 0x407f21
mov byte [esi + 0x111], 1
push edi
lea edx, [esi + 0x114]
push edx
mov ecx, esi
call fcn.00407070
mov ecx, dword [0x4ed0b4]
push 0
push 0x208
lea eax, [esp + 0x660]
push eax
push str.UninstallString
push ecx
push SysFreeString
call fcn.004553b0
add esp, 0x18
test eax, eax
jbe 0x407fb5
lea edx, [esp + 0x658]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x658]
add esi, 0x12c
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407f80
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x65c]
push eax
mov ecx, esi
call fcn.00401700
mov ecx, dword [esi]
push ecx
push str._INFO_Already_installed_to:_s
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
lea eax, [edi - 0x10]
mov byte [esp + 0x86c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407fd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x86c], 0xffffffff
call fcn.00403f90
mov al, 1
jmp 0x40803e
push str._ERROR_Setup_entry_missing_in_SETUP.INI
call fcn.0044f300
push eax
call fcn.0044fb20
lea eax, [edi - 0x10]
add esp, 8
mov byte [esp + 0x86c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x86c], 0xffffffff
call fcn.00403f90
xor al, al
mov ecx, dword [esp + 0x864]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x84c]
xor ecx, esp
call fcn.004888ae
add esp, 0x85c
ret