Function at 0x411780
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572a40
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5d1614]
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.00401fe0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040b000
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
test eax, eax
jl 0x4117f2
push str.EPSON
push edi
call fcn.00542215
add esp, 8
test eax, eax
je 0x4117f2
sub eax, edi
sar eax, 1
jns 0x4117fc
mov esi, 1
jmp 0x411a52
cmp dword [edi - 0xc], 0
jl 0x411824
push 0x5a1b44
push edi
call fcn.00542215
add esp, 8
test eax, eax
je 0x411824
sub eax, edi
sar eax, 1
js 0x411824
mov esi, 6
jmp 0x411a52
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.00401fe0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x10]
push eax
call fcn.004123f0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0xc], 0
je 0x411a2a
call fcn.00447edb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411872
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00406900
mov ecx, dword [ebp - 0x18]
push str..VIF
push ecx
call fcn.00541d4b
add esp, 8
test eax, eax
jne 0x411a00
mov edx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edx
push eax
push str.Category
push str.PrnterInfo
call esi
cmp eax, 0xb
jb 0x4118e6
mov eax, dword [ebp - 0x10]
push eax
push 0
push str.Category
push str.PrnterInfo
call esi
cmp eax, 0x13
ja 0x4118e6
mov esi, 4
jmp 0x4119de
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push str.Category
push str.PrnterInfo
call esi
cmp eax, 5
jne 0x4119d9
lea ecx, [ebp - 0x30]
call fcn.004542b8
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00454339
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.004078c0
mov ebx, eax
add esp, 8
xor esi, esi
test ebx, ebx
jle 0x4119a3
test esi, esi
jl 0x4119d4
cmp esi, dword [ebp - 0x28]
jge 0x4119d4
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + esi*4]
sub eax, 0x10
push eax
call fcn.00401fe0
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 5
cmp esi, dword [ebp - 0x28]
jge 0x4119d4
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + esi*4]
push str.DownLoad
push eax
call fcn.00541d4b
add esp, 8
test eax, eax
je 0x4119b6
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 0x41199c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jl 0x411931
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
mov esi, 5
mov byte [ebp - 4], 3
call fcn.004544e4
jmp 0x4119de
lea ecx, [ebp - 0x1c]
call fcn.00401fa0
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
mov esi, 2
mov byte [ebp - 4], 3
call fcn.004544e4
jmp 0x4119de
call fcn.00447de9
mov esi, 2
push ecx
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edx
call fcn.00402050
call fcn.00409cc0
add esp, 4
test eax, eax
je 0x411a05
mov esi, 3
jmp 0x411a05
mov esi, 7
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411a2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x411a2f
mov esi, 7
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 0x411a52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411a72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x411a98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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