Function at 0x40f0ba
Capabilities:
Read .ini file

Disassembly:
push 0x280
mov eax, 0x56951f
call fcn.0053cea9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x27c], eax
mov ebx, ecx
and dword [ebp - 4], 0
push 0x2f
mov esi, str...COMMONDeviceManager.cpp
push esi
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40f0ef
push 0x2f
jmp 0x40f0ff
push 0x5c
push esi
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40f10a
push 0x5c
push esi
call fcn.00539190
pop ecx
lea esi, [eax + 1]
pop ecx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x278]
push str.Retrieving_scanner_info:
push eax
call fcn.0040eabc
add esp, 0xc
mov edi, eax
push 1
push 0x7d
push esi
lea esi, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.00404558
mov byte [ebp - 4], 2
push dword [edi]
mov ecx, eax
push 0
call fcn.00404636
mov edi, eax
call fcn.0040c58b
pop ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004045c4
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.0040274b
xor esi, esi
inc esi
mov dword [ebp - 0x278], esi
call fcn.00437a9e
push eax
lea ecx, [ebp - 0x288]
call fcn.00402723
mov byte [ebp - 4], 3
call fcn.00437a9e
push eax
lea ecx, [ebp - 0x284]
call fcn.00402723
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 4
call fcn.0040248f
lea ecx, [ebp - 0x284]
call fcn.0040fc2f
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x284]
add ecx, 0x50
call fcn.00439ffa
test eax, eax
je 0x40f25f
lea esi, [ebp - 0x24c]
call fcn.0042bfdf
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x244], 0xffff
mov dword [ebp - 0x240], 5
call fcn.0040248f
and dword [ebp - 0x23c], 0
mov eax, esi
mov esi, ebx
call fcn.0040f7bf
lea ecx, [ebp - 0x24c]
call fcn.0042c057
xor esi, esi
mov ecx, dword [ebp - 0x284]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x288]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040274b
mov eax, esi
call fcn.0053cf2c
ret 0xc
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x40f651
push eax
call fcn.00402431
lea edi, [eax + 0x10]
pop ecx
mov dword [ebp - 0x274], edi
mov byte [ebp - 4], 6
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 4
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
cmp dword [edi - 0xc], eax
jne 0x40f2aa
lea ecx, [edi - 0x10]
call fcn.0040274b
jmp 0x40f22e
call fcn.00437a9e
push eax
lea ecx, [ebp - 0x270]
call fcn.00402723
lea esi, [ebp - 0x278]
mov byte [ebp - 4], 7
call fcn.0041236e
push eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 8
call fcn.0040248f
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.0040274b
push dword [ebp - 0x270]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
and dword [ebp - 0x278], 0
push 0
push 0x59dc9c
push edi
call esi
push dword [ebp - 0x270]
mov dword [ebp - 0x27c], eax
push 1
push str.CacheVersion
push edi
call esi
cmp dword [ebp - 0x27c], 0
je 0x40f4f0
cmp eax, 3
jl 0x40f4f0
push 0x2f
mov esi, str...COMMONScannerInfo.cpp
push esi
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40f34c
push 0x2f
jmp 0x40f35c
push 0x5c
push esi
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40f367
push 0x5c
push esi
call fcn.00539190
pop ecx
pop ecx
inc eax
jmp 0x40f369
mov eax, esi
push 1
push 0xda
push eax
lea esi, [ebp - 0x26c]
call fcn.00404558
push str.Cache_hits.
push 0
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00404636
mov edi, eax
call fcn.0040a124
pop ecx
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004045c4
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebx + 0x20]
call fcn.0040248f
mov edi, dword [ebp - 0x270]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0
push 0x598dbc
push dword [ebp - 0x274]
call esi
push edi
push 0
push str.ScannerType
push dword [ebp - 0x274]
mov dword [ebx + 8], eax
call esi
push edi
push 0
push str.ButtonNum
push dword [ebp - 0x274]
mov dword [ebx + 0xc], eax
call esi
push edi
push 0
push str.ModelDependency
push dword [ebp - 0x274]
mov dword [ebx + 0x10], eax
call esi
push edi
push 0
push str.EPSSetting
push dword [ebp - 0x274]
mov dword [ebx + 0x14], eax
call esi
mov dword [ebx + 0x18], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00538530
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x598e70
push str.ShortTranslation
push dword [ebp - 0x274]
call edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x24]
call fcn.00402337
push dword [ebp - 0x270]
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0x598e70
push str.DeviceSettingAlias
push dword [ebp - 0x274]
call edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x28]
call fcn.00402337
push dword [ebp - 0x270]
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0x598e70
push str.DevInfAlias
push dword [ebp - 0x274]
call edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x2c]
call fcn.00402337
push dword [ebp - 0x270]
push 0
push str.ModifiedEvent
push dword [ebp - 0x274]
call esi
mov dword [ebx + 0x1c], eax
jmp 0x40f630
push ecx
mov dword [ebp - 0x280], esp
add edi, 0xfffffff0
mov dword [ebp - 0x280], esp
push edi
lea esi, [ebp - 0x278]
mov dword [ebp - 0x27c], edi
call fcn.00402431
pop ecx
mov ecx, dword [ebp - 0x280]
add eax, 0x10
mov edi, esi
mov dword [ecx], eax
call fcn.00436f0f
pop ecx
test eax, eax
je 0x40f562
mov ecx, dword [ebp - 0x270]
push 4
pop esi
add ecx, 0xfffffff0
cmp eax, esi
jne 0x40f54a
call fcn.0040274b
mov ecx, dword [ebp - 0x27c]
jmp 0x40f2a3
call fcn.0040274b
mov ecx, dword [ebp - 0x27c]
call fcn.0040274b
xor esi, esi
inc esi
jmp 0x40f22e
push ecx
mov ecx, esp
mov dword [ebp - 0x280], esp
push 0x598e70
call fcn.0040235d
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x270]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28c], esp
mov edi, esp
push eax
call fcn.00402431
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x278]
mov dword [ebp - 0x278], esp
mov esi, esp
push dword [ebp - 0x27c]
call fcn.00402431
add eax, 0x10
pop ecx
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.0042c2c9
push 0x2f
mov esi, str...COMMONScannerInfo.cpp
push esi
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40f5db
push 0x2f
jmp 0x40f5eb
push 0x5c
push esi
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40f5f6
push 0x5c
push esi
call fcn.00539190
pop ecx
pop ecx
inc eax
jmp 0x40f5f8
mov eax, esi
push 1
push 0xd6
push eax
lea esi, [ebp - 0x26c]
call fcn.00404558
push str.Cache_no_hits.
push 0
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00404636
mov edi, eax
call fcn.0040a124
pop ecx
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004045c4
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x274]
add ecx, 0xfffffff0
call fcn.0040274b
jmp 0x40f22c
push ecx
mov dword [ebp - 0x28c], esp
mov esi, esp
push eax
call fcn.00402431
add eax, 0x10
mov dword [esi], eax
pop ecx
mov esi, ebx
call fcn.0042c1cb
test eax, eax
je 0x40f696
and dword [ebp - 0x278], 0
push 0x2f
mov esi, str...COMMONDeviceManager.cpp
push esi
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40f72e
push 0x2f
jmp 0x40f73e
push 0x2f
mov esi, str...COMMONDeviceManager.cpp
push esi
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40f6ad
push 0x2f
jmp 0x40f6bd
push 0x5c
push esi
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40f6c8
push 0x5c
push esi
call fcn.00539190
pop ecx
lea esi, [eax + 1]
pop ecx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x280]
push str.__Failed_scanner_info:
push eax
call fcn.0040eabc
add esp, 0xc
mov edi, eax
push 1
push 0xa0
push esi
lea esi, [ebp - 0x26c]
mov byte [ebp - 4], 0xd
call fcn.00404558
mov byte [ebp - 4], 0xe
push dword [edi]
mov ecx, eax
push 0
call fcn.00404636
mov edi, eax
call fcn.0040c58b
pop ecx
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.004045c4
mov ecx, dword [ebp - 0x280]
add ecx, 0xfffffff0
call fcn.0040274b
jmp 0x40f7b4
push 0x5c
push esi
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x40f749
push 0x5c
push esi
call fcn.00539190
pop ecx
lea esi, [eax + 1]
pop ecx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x280]
push str.__Succeeded_scanner_info:
push eax
call fcn.0040eabc
add esp, 0xc
mov edi, eax
push 1
push 0xa2
push esi
lea esi, [ebp - 0x26c]
mov byte [ebp - 4], 0xf
call fcn.00404558
mov byte [ebp - 4], 0x10
push dword [edi]
mov ecx, eax
push 0
call fcn.00404636
mov edi, eax
call fcn.0040c58b
pop ecx
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.004045c4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x280]
add ecx, 0xfffffff0
call fcn.0040274b
push ebx
call fcn.0042c6a9
mov esi, dword [ebp - 0x278]
jmp 0x40f22e