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

Disassembly:
push 0x254
mov eax, 0x55669a
call fcn.0052faf2
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x228], eax
jne 0x40717f
mov byte [esi + 0x30], 0
cmp byte [esi + 0x30], 0
jne 0x407323
call fcn.0042b589
push eax
lea ecx, [ebp - 0x238]
call fcn.0040217f
and dword [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.00409c58
mov byte [ebp - 4], 1
mov eax, dword [eax]
push 0x588a04
push eax
lea eax, [ebp - 0x238]
push 0x588938
push eax
call fcn.004034f1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x244]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004021a7
lea ecx, [ebp - 0x260]
call fcn.0042d64f
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x238]
push 0
push ebx
lea ecx, [ebp - 0x260]
call fcn.0042d6f6
test eax, eax
je 0x407209
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x260]
call fcn.0042d1bb
push ecx
lea eax, [ebx - 0x10]
mov dword [ebp - 0x234], esp
mov edi, esp
push eax
mov dword [ebp - 0x234], eax
call fcn.00401e83
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.0042a18d
pop ecx
push esi
call fcn.004079f1
push ebx
push 0
push str.Count
mov edi, str.AllEpsonDS
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x23c], eax
test eax, eax
jne 0x407265
cmp dword [esi + 0x5c], eax
je 0x407305
call fcn.0042b589
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040217f
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 3
call fcn.0042c572
and dword [ebp - 0x224], 0
cmp dword [ebp - 0x23c], 0
jle 0x4072f3
push dword [ebp - 0x224]
lea eax, [ebp - 0x22c]
push str.name
push str._s_d
push eax
call fcn.004034f1
add esp, 0x10
push ebx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x587cac
push dword [ebp - 0x22c]
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [esi + 0x34]
call fcn.0042c816
inc dword [ebp - 0x224]
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x23c]
jl 0x407292
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
mov byte [esi + 0x30], 1
call fcn.004021a7
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0
call fcn.0042d681
mov ecx, dword [ebp - 0x234]
or dword [ebp - 4], 0xffffffff
call fcn.004021a7
mov ecx, dword [ebp - 0x228]
call fcn.0042c572
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x220], eax
jmp 0x407356
mov ecx, dword [eax]
add eax, 8
mov dword [ebp - 0x220], ecx
mov ecx, dword [ebp - 0x228]
push eax
call fcn.0042c6d5
mov eax, dword [ebp - 0x220]
test eax, eax
jne 0x407339
mov eax, dword [esi + 0x5c]
neg eax
sbb eax, eax
mov dword [ebp - 0x220], eax
call fcn.0042b589
push eax
lea ecx, [ebp - 0x240]
call fcn.0040217f
mov dword [ebp - 4], 4
call fcn.0042b589
push eax
lea ecx, [ebp - 0x230]
call fcn.0040217f
mov byte [ebp - 4], 5
jmp 0x4073c5
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x50]
call fcn.0042dbbe
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x230]
push eax
call fcn.0042c6d5
cmp dword [ebp - 0x220], 0
jne 0x407396
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.004021a7
call fcn.0052fb75
ret 8