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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566d62
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 0x40ef36
call fcn.00437a9e
push eax
lea ecx, [esp + 0x1c]
call fcn.00402723
and dword [esp + 0x2c8], 0
lea ecx, [esp + 0x14]
call fcn.00412182
mov byte [esp + 0x2c8], 1
mov eax, dword [eax]
push 0x59a468
push eax
lea eax, [esp + 0x20]
push 0x59a28c
push eax
call fcn.0040a0e9
mov byte [esp + 0x2d8], 0
mov ecx, dword [esp + 0x24]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040274b
lea ecx, [esp + 0x24]
call fcn.00439b5e
mov byte [esp + 0x2c8], 2
mov esi, dword [esp + 0x18]
push 0
push esi
lea ecx, [esp + 0x2c]
call fcn.00439c05
test eax, eax
je 0x40ec37
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x24]
call fcn.004396ca
push ecx
lea edi, [esi - 0x10]
mov dword [esp + 0x24], esp
mov ebx, esp
push edi
mov dword [esp + 0x28], edi
call fcn.00402431
add eax, 0x10
pop ecx
mov dword [ebx], eax
call fcn.0043652e
mov ebx, dword [esp + 0x14]
pop ecx
push ebx
call fcn.0040f997
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 0x40eca8
cmp dword [ebx + 0x5c], eax
jne 0x40eca8
lea ecx, [esp + 0x24]
mov byte [esp + 0x2c8], al
call fcn.00439b90
mov ecx, edi
call fcn.0040274b
xor eax, eax
jmp 0x40ef39
push 0x2f
mov ebx, str...COMMONDeviceManager.cpp
push ebx
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40ecbf
push 0x2f
jmp 0x40eccf
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40ecda
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
inc eax
jmp 0x40ecdc
mov eax, ebx
push 1
push 0x3b
push eax
lea esi, [esp + 0x68]
call fcn.00404558
push str.Enumerating_Scanner....
push 0
mov ecx, eax
mov byte [esp + 0x2d0], 3
call fcn.00404636
mov edi, eax
call fcn.0040a124
pop ecx
mov ecx, esi
mov byte [esp + 0x2c8], 2
call fcn.004045c4
call fcn.00437a9e
push eax
lea ecx, [esp + 0x20]
call fcn.00402723
mov byte [esp + 0x2c8], 4
mov edi, dword [esp + 0x10]
lea ecx, [edi + 0x34]
call fcn.00438a81
and dword [esp + 0x10], 0
cmp dword [esp + 0x14], 0
jle 0x40eda4
push dword [esp + 0x10]
lea eax, [esp + 0x20]
push str.name
push str._s_d
push eax
call fcn.0040a0e9
add esp, 0x10
push dword [esp + 0x18]
lea eax, [esp + 0xb0]
push 0x104
push eax
push 0x598e70
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.00438d25
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jl 0x40ed46
push 0xa
lea ecx, [esp + 0x44]
mov byte [edi + 0x30], 1
call fcn.00438999
push 1
lea eax, [esp + 0x44]
push eax
mov ecx, edi
mov byte [esp + 0x2d0], 5
call fcn.0040efc3
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x40edee
push 0x2f
push ebx
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40eea7
push 0x2f
jmp 0x40eeb7
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40eea2
mov ecx, dword [eax]
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
mov dword [esp + 0x18], ecx
call fcn.00402431
lea edi, [eax + 0x10]
pop ecx
mov dword [esp + 0x10], edi
push 0x2f
push ebx
mov byte [esp + 0x2d0], 6
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40ee2a
push 0x2f
jmp 0x40ee3a
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40ee45
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
inc eax
jmp 0x40ee47
mov eax, ebx
push 1
push 0x50
push eax
lea esi, [esp + 0x68]
call fcn.00404558
push edi
push 0
mov ecx, eax
mov byte [esp + 0x2d0], 7
call fcn.00404636
mov edi, eax
call fcn.0040c58b
pop ecx
mov ecx, esi
mov byte [esp + 0x2c8], 6
call fcn.004045c4
mov byte [esp + 0x2c8], 5
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040274b
cmp dword [esp + 0x14], 0
jne 0x40edea
jmp 0x40edd1
call fcn.004387df
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40eec2
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
inc eax
jmp 0x40eec4
mov eax, ebx
push 1
push 0x52
push eax
lea esi, [esp + 0x68]
call fcn.00404558
push str.__Done.
push 0
mov ecx, eax
mov byte [esp + 0x2d0], 8
call fcn.00404636
mov edi, eax
call fcn.0040a124
pop ecx
mov ecx, esi
mov byte [esp + 0x2c8], 5
call fcn.004045c4
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c8], 4
call fcn.00438ac7
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040274b
lea ecx, [esp + 0x24]
mov byte [esp + 0x2c8], 0
call fcn.00439b90
mov ecx, dword [esp + 0x20]
call fcn.0040274b
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.0053792d
mov esp, ebp
pop ebp
ret 4