Function at 0x42a18d
Capabilities:
Read .ini file

Disassembly:
push 0x6b8
mov eax, 0x553e74
call fcn.0052faf2
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x6ac], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], esi
jne 0x42a1bb
lea ecx, [eax - 0x10]
jmp 0x42a721
push str.ScanEngine30.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0x6c0], ebx
cmp ebx, esi
je 0x42a71b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateDeviceEnumerator
push ebx
call esi
push str.DestroyDeviceEnumerator
push ebx
mov edi, eax
call esi
mov dword [ebp - 0x6c4], eax
test edi, edi
je 0x42a714
test eax, eax
je 0x42a714
push dword [ebp + 8]
lea eax, [ebp - 0x69c]
push 0x104
push eax
push 0x587cac
push str.name0
push str.AllEpsonDS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x69c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x6a0]
inc eax
push ecx
mov dword [ebp - 0x6a0], eax
call fcn.0040344e
pop ecx
test eax, eax
jns 0x42a251
xor eax, eax
jmp 0x42a291
mov esi, dword [ebp - 0x6a0]
cmp esi, 0x400
jg 0x42a275
push esi
call fcn.004033a1
pop ecx
test al, al
je 0x42a275
mov eax, esi
call fcn.00532540
mov eax, esp
jmp 0x42a281
push esi
lea ecx, [ebp - 0x6ac]
call fcn.00403352
push 3
push esi
lea ecx, [ebp - 0x69c]
push ecx
push eax
call fcn.00403416
push eax
lea eax, [ebp - 0x494]
push 0x400
push eax
call fcn.0052d8b6
add esp, 0xc
mov byte [ebp - 0x6a1], 0
call edi
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebx, eax
xor edi, edi
mov dword [ebp - 0x6a8], ebx
mov dword [ebp - 0x6b0], edi
test ebx, ebx
jle 0x42a359
mov eax, dword [esi]
push 0x40
lea ecx, [ebp - 0x94]
push ecx
push edi
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esi]
push 0x40
lea ecx, [ebp - 0x54]
push ecx
push edi
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x6b8]
push ecx
lea ecx, [ebp - 0x6bc]
push ecx
push edi
mov ecx, esi
call dword [eax + 0xc]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x494]
push eax
call fcn.0052f570
pop ecx
pop ecx
test eax, eax
jne 0x42a322
mov byte [ebp - 0x6a1], 1
lea eax, [ebp - 0x94]
push str.EPSON
push eax
call fcn.0052f570
pop ecx
pop ecx
test eax, eax
jne 0x42a33f
inc dword [ebp - 0x6b0]
push edi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00429fef
add esp, 0xc
inc edi
cmp edi, ebx
jl 0x42a2d0
push 0x58a4e0
lea ecx, [ebp - 0x6b4]
call fcn.00401daf
mov byte [ebp - 4], 2
test ebx, ebx
jle 0x42a386
push ebx
lea eax, [ebp - 0x6b4]
push 0x58837c
push eax
call fcn.004034f1
add esp, 0xc
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [ebp - 0x6b4]
push str.count
push 0x58c108
call edi
and dword [ebp - 0x6a0], 0
test ebx, ebx
jle 0x42a426
mov eax, dword [esi]
push 0x40
lea ecx, [ebp - 0x94]
push ecx
push dword [ebp - 0x6a0]
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esi]
push 0x40
lea ecx, [ebp - 0x54]
push ecx
push dword [ebp - 0x6a0]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x6b8]
push ecx
lea ecx, [ebp - 0x6bc]
push ecx
push dword [ebp - 0x6a0]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp - 0x6b8]
lea eax, [ebp - 0x94]
push dword [ebp - 0x6bc]
lea ebx, [ebp + 8]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00429e89
add esp, 0x10
inc dword [ebp - 0x6a0]
mov eax, dword [ebp - 0x6a0]
cmp eax, dword [ebp - 0x6a8]
jl 0x42a3ac
and dword [ebp - 0x6a0], 0
cmp byte [ebp - 0x6a1], 0
je 0x42a4bf
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x6a0]
inc eax
push ecx
mov dword [ebp - 0x6a0], eax
call fcn.0040344e
pop ecx
test eax, eax
jns 0x42a463
xor eax, eax
jmp 0x42a4a5
mov ebx, dword [ebp - 0x6a0]
cmp ebx, 0x400
jg 0x42a487
push ebx
call fcn.004033a1
pop ecx
test al, al
je 0x42a487
mov eax, ebx
call fcn.00532540
mov eax, esp
jmp 0x42a493
push ebx
lea ecx, [ebp - 0x6ac]
call fcn.00403352
push 3
shr ebx, 1
push ebx
lea ecx, [ebp - 0x494]
push ecx
push eax
call fcn.0042b1cc
push dword [ebp + 8]
push eax
push str.name0
push str.AllEpsonDS
call edi
mov dword [ebp - 0x6a0], 1
xor ebx, ebx
cmp dword [ebp - 0x6a8], ebx
jle 0x42a53a
mov eax, dword [esi]
push 0x40
lea ecx, [ebp - 0x94]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0x10]
lea eax, [ebp - 0x94]
push str.EPSON
push eax
call fcn.0052f570
pop ecx
pop ecx
test eax, eax
jne 0x42a531
mov eax, dword [esi]
push 0x40
lea ecx, [ebp - 0x54]
push ecx
push ebx
mov ecx, esi
call dword [eax + 8]
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0052f570
pop ecx
pop ecx
test eax, eax
je 0x42a531
push dword [ebp - 0x6a0]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042a0bf
add esp, 0xc
inc dword [ebp - 0x6a0]
inc ebx
cmp ebx, dword [ebp - 0x6a8]
jl 0x42a4c9
cmp byte [ebp - 0x6a1], 0
je 0x42a5a7
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x6a0]
inc eax
push ecx
mov dword [ebp - 0x6a0], eax
call fcn.0040344e
pop ecx
test eax, eax
js 0x42a620
mov ebx, dword [ebp - 0x6a0]
cmp ebx, 0x400
jg 0x42a590
push ebx
call fcn.004033a1
pop ecx
test al, al
je 0x42a590
mov eax, ebx
call fcn.00532540
mov eax, esp
jmp 0x42a59c
push ebx
lea ecx, [ebp - 0x6ac]
call fcn.00403352
lea ecx, [ebp - 0x494]
jmp 0x42a657
xor ebx, ebx
cmp dword [ebp - 0x6b0], ebx
jle 0x42a673
cmp dword [ebp - 0x6a8], ebx
jle 0x42a5fe
mov eax, dword [esi]
push 0x40
lea ecx, [ebp - 0x94]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0x10]
lea eax, [ebp - 0x94]
push str.EPSON
push eax
call fcn.0052f570
pop ecx
pop ecx
test eax, eax
je 0x42a5f0
inc ebx
cmp ebx, dword [ebp - 0x6a8]
jl 0x42a5bd
jmp 0x42a5fe
mov eax, dword [esi]
push 0x40
lea ecx, [ebp - 0x54]
push ecx
push ebx
mov ecx, esi
call dword [eax + 8]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x6a0]
inc eax
push ecx
mov dword [ebp - 0x6a0], eax
call fcn.0040344e
pop ecx
test eax, eax
jns 0x42a624
xor eax, eax
jmp 0x42a663
mov ebx, dword [ebp - 0x6a0]
cmp ebx, 0x400
jg 0x42a648
push ebx
call fcn.004033a1
pop ecx
test al, al
je 0x42a648
mov eax, ebx
call fcn.00532540
mov eax, esp
jmp 0x42a654
push ebx
lea ecx, [ebp - 0x6ac]
call fcn.00403352
lea ecx, [ebp - 0x54]
push 3
shr ebx, 1
push ebx
push ecx
push eax
call fcn.0042b1cc
push dword [ebp + 8]
push eax
push str.name0
push 0x58c108
call edi
call fcn.0042b589
push eax
lea ecx, [ebp - 0x6a8]
call fcn.0040217f
push dword [ebp - 0x6b0]
lea eax, [ebp - 0x6a8]
push 0x58837c
push eax
mov byte [ebp - 4], 3
call fcn.004034f1
mov ebx, dword [ebp - 0x6a8]
add esp, 0xc
push dword [ebp + 8]
push ebx
push str.count
push str.AllEpsonDS
call edi
push esi
call dword [ebp - 0x6c4]
pop ecx
push dword [ebp - 0x6c0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebx - 0x10]
call fcn.004021a7
mov ecx, dword [ebp - 0x6b4]
add ecx, 0xfffffff0
call fcn.004021a7
cmp dword [ebp - 0x6ac], 0
je 0x42a704
mov eax, dword [ebp - 0x6ac]
mov esi, dword [eax]
push eax
mov dword [ebp - 0x6ac], esi
call fcn.0052b484
pop ecx
test esi, esi
jne 0x42a6eb
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004021a7
xor eax, eax
inc eax
jmp 0x42a728
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004021a7
xor eax, eax
lea esp, [ebp - 0x6d4]
call fcn.0052fb75
ret