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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56756c
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 ebx, ecx
cmp byte [ebx + 0x30], 0
jne 0x40f747
call fcn.00438329
push eax
lea ecx, [esp + 0x24]
call fcn.00402a28
and dword [esp + 0x2c8], 0
lea ecx, [esp + 0x10]
call fcn.00412a52
mov byte [esp + 0x2c8], 1
mov eax, dword [eax]
push 0x59a798
push eax
lea eax, [esp + 0x28]
push 0x59a5a4
push eax
call fcn.0040ab0a
mov byte [esp + 0x2d8], 0
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00402a50
lea ecx, [esp + 0x24]
call fcn.0043a3f5
mov byte [esp + 0x2c8], 2
mov esi, dword [esp + 0x20]
push 0
push esi
lea ecx, [esp + 0x2c]
call fcn.0043a49c
test eax, eax
je 0x40f453
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x24]
call fcn.00439f61
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x14], esp
mov edi, esp
push eax
mov dword [esp + 0x18], eax
call fcn.00402741
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.00436cd2
pop ecx
push ebx
call fcn.0041013d
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 0x40f4c2
cmp dword [ebx + 0x5c], eax
jne 0x40f4c2
lea ecx, [esp + 0x24]
mov byte [esp + 0x2c8], al
call fcn.0043a427
mov ecx, dword [esp + 0x10]
call fcn.00402a50
xor eax, eax
jmp 0x40f74a
push 0x2f
mov edi, str...COMMONDeviceManager.cpp
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40f4d9
push 0x2f
jmp 0x40f4e9
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40f4f4
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x40f4f6
mov eax, edi
push 1
push 0x3b
push eax
lea esi, [esp + 0x68]
call fcn.00404e75
push str.Enumerating_Scanner....
push 0
mov ecx, eax
mov byte [esp + 0x2d0], 3
call fcn.00404f53
mov esi, eax
call fcn.00402aa4
pop ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2c8], 2
call fcn.00404ee1
call fcn.00438329
push eax
lea ecx, [esp + 0x20]
call fcn.00402a28
lea ecx, [ebx + 0x34]
mov byte [esp + 0x2c8], 4
call fcn.00439318
and dword [esp + 0x18], 0
cmp dword [esp + 0x14], 0
jle 0x40f5bc
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push str.name
push str._s_d
push eax
call fcn.0040ab0a
add esp, 0x10
push dword [esp + 0x20]
lea eax, [esp + 0xb0]
push 0x104
push eax
push 0x599168
push dword [esp + 0x2c]
push str.AllEpsonDS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xac]
push eax
lea ecx, [ebx + 0x34]
call fcn.004395bc
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
jl 0x40f55e
push 0xa
lea ecx, [esp + 0x44]
mov byte [ebx + 0x30], 1
call fcn.00439230
push 1
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
mov byte [esp + 0x2d0], 5
call fcn.0040f7d2
mov ebx, dword [esp + 0x44]
jmp 0x40f697
mov eax, ebx
test ebx, ebx
je 0x40f6b1
mov eax, dword [eax + 8]
mov ebx, dword [ebx]
sub eax, 0x10
push eax
call fcn.00402741
add eax, 0x10
pop ecx
mov dword [esp + 0x14], eax
push 0x2f
push edi
mov byte [esp + 0x2d0], 6
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40f624
push 0x2f
jmp 0x40f634
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40f63f
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x40f641
mov eax, edi
push 1
push 0x50
push eax
lea esi, [esp + 0x68]
call fcn.00404e75
mov byte [esp + 0x2c8], 7
push dword [esp + 0x14]
mov ecx, eax
push 0x599768
push 0
call fcn.00404f53
mov esi, eax
call fcn.0040cf26
pop ecx
pop ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2c8], 6
call fcn.00404ee1
mov byte [esp + 0x2c8], 5
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402a50
test ebx, ebx
jne 0x40f5ea
push 0x2f
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40f6b6
push 0x2f
jmp 0x40f6c6
call fcn.00439076
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40f6d1
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x40f6d3
mov eax, edi
push 1
push 0x52
push eax
lea esi, [esp + 0x68]
call fcn.00404e75
push str.__Done.
push 0
mov ecx, eax
mov byte [esp + 0x2d0], 8
call fcn.00404f53
mov esi, eax
call fcn.00402aa4
pop ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2c8], 5
call fcn.00404ee1
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c8], 4
call fcn.0043935e
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402a50
lea ecx, [esp + 0x24]
mov byte [esp + 0x2c8], 0
call fcn.0043a427
mov ecx, dword [esp + 0x10]
call fcn.00402a50
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.005381db
mov esp, ebp
pop ebp
ret