Function at 0x40ef0e
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566bab
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x5c9030]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push esi
push edi
mov eax, dword [0x5c9030]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x30], 0
mov dword [esp + 0x10], eax
jne 0x40f23f
call fcn.00437969
push eax
lea ecx, [esp + 0x1c]
call fcn.00402738
and dword [esp + 0x2c8], 0
lea ecx, [esp + 0x14]
call fcn.004123b4
mov byte [esp + 0x2c8], 1
mov eax, dword [eax]
push 0x59a678
push eax
lea eax, [esp + 0x20]
push 0x59a49c
push eax
call fcn.0040a7d8
mov byte [esp + 0x2d8], 0
mov ecx, dword [esp + 0x24]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00402760
lea ecx, [esp + 0x24]
call fcn.00439a5b
mov byte [esp + 0x2c8], 2
mov esi, dword [esp + 0x18]
push 0
push esi
lea ecx, [esp + 0x2c]
call fcn.00439b02
test eax, eax
je 0x40efe1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x24]
call fcn.004395c7
push ecx
lea edi, [esi - 0x10]
mov dword [esp + 0x24], esp
mov ebx, esp
push edi
mov dword [esp + 0x28], edi
call fcn.00402446
add eax, 0x10
pop ecx
mov dword [ebx], eax
call fcn.00436316
mov ebx, dword [esp + 0x14]
pop ecx
push ebx
call fcn.0040fc27
push esi
push 0
push str.Count
push str.AllEpsonDS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40f052
cmp dword [ebx + 0x5c], eax
jne 0x40f052
lea ecx, [esp + 0x24]
mov byte [esp + 0x2c8], al
call fcn.00439a8d
mov ecx, edi
call fcn.00402760
xor eax, eax
jmp 0x40f242
push 0x2f
mov ebx, str...COMMONDeviceManager.cpp
push ebx
call fcn.005385d0
pop ecx
pop ecx
test eax, eax
je 0x40f069
push 0x2f
jmp 0x40f079
push 0x5c
push ebx
call fcn.005385d0
pop ecx
pop ecx
test eax, eax
je 0x40f084
push 0x5c
push ebx
call fcn.005385d0
pop ecx
pop ecx
inc eax
jmp 0x40f086
mov eax, ebx
push 1
push 0x3b
push eax
lea esi, [esp + 0x68]
call fcn.00404b3c
push str.Enumerating_Scanner....
push 0
mov ecx, eax
mov byte [esp + 0x2d0], 3
call fcn.00404c1a
mov edi, eax
call fcn.004027b4
pop ecx
mov ecx, esi
mov byte [esp + 0x2c8], 2
call fcn.00404ba8
call fcn.00437969
push eax
lea ecx, [esp + 0x20]
call fcn.00402738
mov edi, dword [esp + 0x10]
lea ecx, [edi + 0x34]
mov byte [esp + 0x2c8], 4
call fcn.0043897e
and dword [esp + 0x10], 0
cmp dword [esp + 0x14], 0
jle 0x40f14e
push dword [esp + 0x10]
lea eax, [esp + 0x20]
push str.name
push str._s_d
push eax
call fcn.0040a7d8
add esp, 0x10
push dword [esp + 0x18]
lea eax, [esp + 0xb0]
push 0x104
push eax
push 0x599080
push dword [esp + 0x2c]
push str.AllEpsonDS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xac]
push eax
lea ecx, [edi + 0x34]
call fcn.00438c22
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jl 0x40f0f0
push 0xa
lea ecx, [esp + 0x44]
mov byte [edi + 0x30], 1
call fcn.00438896
push 1
lea eax, [esp + 0x44]
push eax
mov ecx, edi
mov byte [esp + 0x2d0], 5
call fcn.0040f2cc
mov esi, dword [esp + 0x44]
jmp 0x40f195
mov eax, esi
test esi, esi
je 0x40f1ab
mov eax, dword [eax + 8]
mov esi, dword [esi]
sub eax, 0x10
push eax
call fcn.00402446
pop ecx
mov ecx, eax
call fcn.00402760
test esi, esi
jne 0x40f179
push 0x2f
push ebx
call fcn.005385d0
pop ecx
pop ecx
test eax, eax
je 0x40f1b0
push 0x2f
jmp 0x40f1c0
call fcn.00438697
push 0x5c
push ebx
call fcn.005385d0
pop ecx
pop ecx
test eax, eax
je 0x40f1cb
push 0x5c
push ebx
call fcn.005385d0
pop ecx
pop ecx
inc eax
jmp 0x40f1cd
mov eax, ebx
push 1
push 0x52
push eax
lea esi, [esp + 0x68]
call fcn.00404b3c
push str.__Done.
push 0
mov ecx, eax
mov byte [esp + 0x2d0], 6
call fcn.00404c1a
mov edi, eax
call fcn.004027b4
pop ecx
mov ecx, esi
mov byte [esp + 0x2c8], 5
call fcn.00404ba8
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c8], 4
call fcn.004389c4
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402760
lea ecx, [esp + 0x24]
mov byte [esp + 0x2c8], 0
call fcn.00439a8d
mov ecx, dword [esp + 0x20]
call fcn.00402760
xor eax, eax
inc eax
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.0053780e
mov esp, ebp
pop ebp
ret 4