Function at 0x4185d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b0e0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
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.00401ff0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00413560
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
test eax, eax
jl 0x418642
push str.EPSON
push edi
call fcn.005592d8
add esp, 8
test eax, eax
je 0x418642
sub eax, edi
sar eax, 1
jns 0x41864c
mov esi, 1
jmp 0x418882
cmp dword [edi - 0xc], 0
jl 0x418674
push 0x5bc758
push edi
call fcn.005592d8
add esp, 8
test eax, eax
je 0x418674
sub eax, edi
sar eax, 1
js 0x418674
mov esi, 7
jmp 0x418882
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.00401ff0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x10]
push eax
call fcn.00419380
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0xc], 0
je 0x41885a
call fcn.0045e972
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4186c2
push 0x80004005
call fcn.00401fd0
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.0040e960
mov ecx, dword [ebp - 0x18]
push str..VIF
push ecx
call fcn.00558f06
add esp, 8
test eax, eax
jne 0x418830
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 0x418720
mov esi, 5
jmp 0x41880e
cmp eax, 5
jne 0x418801
lea ecx, [ebp - 0x30]
call fcn.0046bbb6
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0046bc37
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.0040f920
mov ebx, eax
add esp, 8
xor esi, esi
test ebx, ebx
jle 0x4187cb
test esi, esi
jl 0x4187fc
cmp esi, dword [ebp - 0x28]
jge 0x4187fc
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + esi*4]
sub eax, 0x10
push eax
call fcn.00401ff0
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 5
cmp esi, dword [ebp - 0x28]
jge 0x4187fc
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + esi*4]
push str.DownLoad
push eax
call fcn.00558f06
add esp, 8
test eax, eax
je 0x4187de
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 0x4187c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jl 0x418759
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
mov esi, 6
mov byte [ebp - 4], 3
call fcn.0046bde2
jmp 0x41880e
lea ecx, [ebp - 0x1c]
call fcn.00405900
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
mov esi, 2
mov byte [ebp - 4], 3
call fcn.0046bde2
jmp 0x41880e
call fcn.0045e880
xor ecx, ecx
cmp eax, 6
sete cl
add ecx, 2
mov esi, ecx
push ecx
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edx
call fcn.00402060
call fcn.004121f0
add esp, 4
test eax, eax
je 0x418835
mov esi, 4
jmp 0x418835
mov esi, 8
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 0x41885f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41885f
mov esi, 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 0x418882
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 0x4188a2
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 0x4188c8
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