Function at 0x40c0f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431b40
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x43ec2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00401610
lea ebx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
mov esi, dword [ebx - 0xc]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x40c158
push esi
lea ecx, [ebp - 0x18]
call fcn.00401a40
mov ebx, dword [ebp - 0x18]
lea eax, [esi + 1]
push eax
push ebx
call fcn.0041a32f
add esp, 8
test esi, esi
jl 0x40c43e
cmp esi, dword [ebx - 8]
jg 0x40c43e
xor ecx, ecx
mov dword [ebx - 0xc], esi
mov word [ebx + esi*2], cx
mov eax, dword [ebx - 0xc]
test eax, eax
jl 0x40c19e
push str.EPSON
push ebx
call fcn.00419663
add esp, 8
test eax, eax
je 0x40c19e
sub eax, ebx
sar eax, 1
jns 0x40c1a8
mov edi, 1
jmp 0x40c3e2
cmp dword [ebx - 0xc], 0
jl 0x40c1d0
push 0x438a88
push ebx
call fcn.00419663
add esp, 8
test eax, eax
je 0x40c1d0
sub eax, ebx
sar eax, 1
js 0x40c1d0
mov edi, 7
jmp 0x40c3e2
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
call fcn.00401610
add esp, 4
lea edx, [ebp - 0x10]
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.0040c7c0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x40c3ba
call fcn.0040d18b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c21e
push 0x80004005
call fcn.00401cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00403990
mov ecx, dword [ebp - 0x14]
push str..VIF
push ecx
call fcn.00418d73
add esp, 8
test eax, eax
jne 0x40c390
mov edx, dword [ebp - 0x10]
push edx
push eax
push str.Category
push str.PrnterInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [eax - 0xb]
cmp ecx, 8
ja 0x40c27c
mov edi, 5
jmp 0x40c366
cmp eax, 5
jne 0x40c359
lea ecx, [ebp - 0x34]
call fcn.0040e576
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0040e61d
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00402a20
add esp, 8
xor esi, esi
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x40c326
test esi, esi
jl 0x40c354
cmp esi, dword [ebp - 0x2c]
jge 0x40c354
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + esi*4]
sub eax, 0x10
push eax
call fcn.00401610
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 5
cmp esi, dword [ebp - 0x2c]
jge 0x40c354
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + esi*4]
push str.DownLoad
push eax
call fcn.00418d73
add esp, 8
test eax, eax
je 0x40c339
lea eax, [edi - 0x10]
inc esi
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c321
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, dword [ebp - 0x1c]
jl 0x40c2b6
lea ecx, [ebp - 0x34]
mov edi, 6
mov byte [ebp - 4], 3
call fcn.0040e753
jmp 0x40c366
lea ecx, [ebp - 0x20]
call fcn.00401cb0
lea ecx, [ebp - 0x34]
mov edi, 2
mov byte [ebp - 4], 3
call fcn.0040e753
jmp 0x40c366
call fcn.0040d813
xor ecx, ecx
cmp eax, 6
sete cl
add ecx, 2
mov edi, ecx
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
call fcn.00401610
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00403a90
test eax, eax
je 0x40c395
mov edi, 4
jmp 0x40c395
mov edi, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c3bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c3bf
mov edi, 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c402
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c428
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401cd0
int3