Function at 0x416a12
Capabilities:
Read .ini file

Disassembly:
push 0x50
mov eax, 0x46ce02
call fcn.004517f7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
and dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
call fcn.0041cf77
mov byte [ebp - 4], 1
mov eax, dword [0x4910d4]
mov dword [ebp - 0x58], eax
mov eax, dword [0x4910bc]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x2c]
push eax
lea ebx, [ebp - 0x44]
call fcn.0041dce2
mov eax, dword [0x4910d4]
mov dword [ebp - 0x38], eax
mov eax, dword [0x4910bc]
lea edi, [ebp - 0x3c]
mov esi, ebx
mov dword [ebp - 0x3c], eax
call fcn.0041e6f4
test al, al
jne 0x416adf
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x24], 8
mov esi, dword [eax + 0x20]
jb 0x416a88
mov eax, dword [eax + 0x10]
jmp 0x416a8b
add eax, 0x10
mov edx, dword [ebp - 0x18]
cmp edx, esi
jb 0x416a94
mov edx, esi
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x416aa0
lea ecx, [ebp - 0x28]
xor ebx, ebx
cmp edx, ebx
jbe 0x416ab5
mov di, word [ecx]
cmp di, word [eax]
jne 0x416ad1
inc ecx
inc ecx
inc eax
inc eax
dec edx
jne 0x416aa6
xor eax, eax
cmp eax, ebx
jne 0x416aca
cmp dword [ebp - 0x18], esi
jb 0x416ae1
xor eax, eax
cmp dword [ebp - 0x18], esi
setne al
cmp eax, ebx
jl 0x416ae1
lea eax, [ebp - 0x44]
jmp 0x416af4
mov cx, di
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x416ab7
xor ebx, ebx
mov eax, dword [0x4910d4]
mov dword [ebp - 0x38], eax
mov eax, dword [0x4910bc]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
lea edi, [ebp - 0x5c]
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
call fcn.0041e6f4
test al, al
jne 0x416b2e
lea eax, [ebp - 0x2c]
push eax
call fcn.0041d2e0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x34]
movzx eax, al
mov dword [ecx], eax
jmp 0x416c53
lea edi, [ebp - 0x38]
call fcn.004152b5
push str.EpsonDocument_CaptureScanModule.ini
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00403c3c
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ebx
push 0x477348
push dword [ebp + 8]
call esi
push dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
push ebx
push str.ModelDependency
push dword [ebp + 8]
mov dword [edi], eax
call esi
mov esi, dword [ebp - 0x34]
mov dword [esi], eax
cmp dword [edi], ebx
jne 0x416c21
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
call fcn.0040283c
lea eax, [ebp - 0x34]
push eax
call fcn.0041602a
pop ecx
pop ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040283c
push 0x47741c
push 0x47987c
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 4
call fcn.0040c154
push 0x10
push ebx
push dword [ebp - 0x30]
call fcn.00450d68
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffff
jge 0x416c05
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push str.DCEX.
call fcn.004024c3
lea eax, [ebp - 0x54]
push eax
mov ecx, ebx
call fcn.0040735d
lea eax, [ebp - 0x54]
mov dword [edi], ebx
call fcn.00407480
movzx eax, al
lea ecx, [ebp - 0x54]
mov dword [esi], eax
call fcn.00407460
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.0040285d
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.0040285d
xor ebx, ebx
mov edi, dword [edi]
cmp edi, ebx
jle 0x416c48
cmp edi, 0xffff
jge 0x416c48
cmp dword [esi], ebx
setne al
mov byte [ebp - 0x48], al
lea eax, [ebp - 0x2c]
push eax
call fcn.0041d2e0
mov ecx, dword [ebp - 0x48]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.0040285d
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.0041da48
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040285d
call fcn.0045187a
ret