Function at 0x40f9b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440e4e
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x453d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x40]
call fcn.0041def2
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0
call fcn.0041def2
push 0x446d80
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004018e0
lea eax, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 2
call fcn.0040fe00
mov esi, dword [ebp + 0xc]
cmp dword [esi + 8], 0
mov edi, eax
mov dword [ebp - 0x2c], edi
je 0x40fa2f
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0041df99
xor eax, eax
mov dword [ebp - 0x1c], eax
test edi, edi
ja 0x40fab3
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.0041e1ed
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 0x40fa6f
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.0041e0cf
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0041e0cf
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 0x40fdf3
cmp eax, dword [ebp - 0xc0]
jge 0x40fdf3
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 0x40faf7
cmp eax, dword [esi]
jne 0x40faf7
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40fb32
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 0x40fdee
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.004252cc
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.00410280
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 0x40fbac
cmp eax, dword [esi]
jne 0x40fbac
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40fbe7
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 0x40fdee
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.004252cc
add esp, 0x10
lea ecx, [ebp - 0x20]
add edi, 0x10
push ecx
mov dword [ebx], edi
call fcn.00410400
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.00402da0
test eax, eax
je 0x40fd40
mov edi, dword [ebp - 0x24]
cmp edi, 4
je 0x40fd2f
cmp edi, 8
je 0x40fd1e
mov ebx, dword [ebp - 0x14]
cmp ebx, 5
je 0x40fd10
mov eax, dword [ebp - 0x20]
mov ecx, str.EPSON_Remote_Print
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40fcd6
cmp dx, si
je 0x40fcd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40fcd6
add eax, 4
add ecx, 4
cmp dx, si
jne 0x40fcb0
xor eax, eax
jmp 0x40fcdb
sbb eax, eax
sbb eax, 0xffffffff
push edi
cmp eax, esi
mov eax, dword [ebp - 0x10]
push ebx
push eax
je 0x40fd09
push str._s_:_Category___d__CustomizeType___d
push 0x4582a0
call fcn.004024c0
mov edx, dword [ebp - 0x38]
add esp, 0x14
lea ecx, [ebp - 0x10]
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0041e21e
jmp 0x40fd5e
push 0x44a088
jmp 0x40fd51
mov ecx, dword [ebp - 0x10]
push edi
push 5
push ecx
push str._s_:_Category___d__CustomizeType___d__LFP
jmp 0x40fd51
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 0x40fd51
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 4
push ecx
push edx
push 0x44a1b8
jmp 0x40fd51
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 0x4582a0
call fcn.004024c0
add esp, 0x14
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 5
call fcn.00402c50
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 0x40fd90
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 0x40fdb3
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 0x40fdd6
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 0x40fab0
mov esi, dword [ebp + 0xc]
jmp 0x40fa38
call fcn.00411ca0
call fcn.00416a63
int3