Function at 0x411220
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44273e
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x454d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x40]
call fcn.0041f693
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0
call fcn.0041f693
push 0x447d68
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00401a40
lea eax, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 2
call fcn.00411670
mov esi, dword [ebp + 0xc]
cmp dword [esi + 8], 0
mov edi, eax
mov dword [ebp - 0x2c], edi
je 0x41129f
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0041f73a
xor eax, eax
mov dword [ebp - 0x1c], eax
test edi, edi
ja 0x411323
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x40]
mov dword [edx + 4], ecx
push eax
mov ecx, esi
call fcn.0041f98e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4112df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0
call fcn.0041f870
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0041f870
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x411663
cmp eax, dword [ebp - 0xc0]
jge 0x411663
mov ecx, dword [ebp - 0xc4]
mov esi, dword [ecx + eax*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x411367
cmp eax, dword [esi]
jne 0x411367
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4113a2
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x41165e
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00426a39
add esp, 0x10
lea ecx, [edi + 0x10]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 3
call fcn.00411af0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0
push str.Category
push str.PrnterInfo
call esi
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push str.CustomizeType
push str.PrnterInfo
mov dword [ebp - 0x14], eax
call esi
mov esi, dword [ebp - 0x10]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
add esi, 0xfffffff0
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xb4], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x41141c
cmp eax, dword [esi]
jne 0x41141c
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x411457
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x41165e
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00426a39
add esp, 0x10
lea ecx, [ebp - 0x20]
add edi, 0x10
push ecx
mov dword [ebx], edi
call fcn.00411c70
xor esi, esi
mov eax, vtable.CRecvBuffer.0
mov dword [ebp - 0xb0], vtable.CEbapi.0
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
lea edx, [ebp - 0xb0]
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x10]
push edx
call fcn.00402f00
test eax, eax
je 0x4115b0
mov edi, dword [ebp - 0x24]
cmp edi, 4
je 0x41159f
cmp edi, 8
je 0x41158e
mov ebx, dword [ebp - 0x14]
cmp ebx, 5
je 0x411580
mov eax, dword [ebp - 0x20]
mov ecx, str.EPSON_Remote_Print
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411546
cmp dx, si
je 0x411542
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411546
add eax, 4
add ecx, 4
cmp dx, si
jne 0x411520
xor eax, eax
jmp 0x41154b
sbb eax, eax
sbb eax, 0xffffffff
push edi
cmp eax, esi
mov eax, dword [ebp - 0x10]
push ebx
push eax
je 0x411579
push str._s_:_Category___d__CustomizeType___d
push 0x4592c0
call fcn.00402620
mov edx, dword [ebp - 0x38]
add esp, 0x14
lea ecx, [ebp - 0x10]
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0041f9bf
jmp 0x4115ce
push 0x44b188
jmp 0x4115c1
mov ecx, dword [ebp - 0x10]
push edi
push 5
push ecx
push str._s_:_Category___d__CustomizeType___d__LFP
jmp 0x4115c1
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push 8
push edx
push eax
push str._s_:_Category___d__CustomizeType___d__LP
jmp 0x4115c1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 4
push ecx
push edx
push 0x44b2b8
jmp 0x4115c1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push eax
push ecx
push edx
push str._s_:_Category___d__CustomizeType___d__EBAPI
push 0x4592c0
call fcn.00402620
add esp, 0x14
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 5
call fcn.00402db0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411600
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
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 0x411623
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
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 0x411646
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x2c]
jb 0x411320
mov esi, dword [ebp + 0xc]
jmp 0x4112a8
call fcn.00413510
call fcn.004181d3
int3