Function at 0x40f5ac
Capabilities:
Read .ini file

Disassembly:
push 0x280
mov eax, 0x569931
call fcn.0053d399
mov eax, dword [ebp + 8]
mov dword [ebp - 0x278], eax
mov ebx, ecx
and dword [ebp - 4], 0
push 0x2f
mov edi, str...COMMONDeviceManager.cpp
push edi
call fcn.00538be0
pop ecx
pop ecx
test eax, eax
je 0x40f5e1
push 0x2f
jmp 0x40f5f1
push 0x5c
push edi
call fcn.00538be0
pop ecx
pop ecx
test eax, eax
je 0x40f5fc
push 0x5c
push edi
call fcn.00538be0
pop ecx
pop ecx
inc eax
jmp 0x40f5fe
mov eax, edi
push 1
push 0x7d
push eax
lea esi, [ebp - 0x26c]
call fcn.00404b6f
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
mov ecx, eax
push str.Retrieving_scanner_info:__s
push 0
call fcn.00404c4d
mov esi, eax
call fcn.0040cc0a
pop ecx
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0
call fcn.00404bdb
xor esi, esi
inc esi
mov dword [ebp - 0x274], esi
call fcn.00437f60
push eax
lea ecx, [ebp - 0x288]
call fcn.0042a551
mov byte [ebp - 4], 2
call fcn.00437f60
push eax
lea ecx, [ebp - 0x280]
call fcn.0042a551
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.0040248a
lea ecx, [ebp - 0x280]
call fcn.004100b7
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x280]
add ecx, 0x50
call fcn.0043a521
test eax, eax
je 0x40f72e
lea esi, [ebp - 0x24c]
call fcn.0042c7d6
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x244], 0xffff
mov dword [ebp - 0x240], 5
call fcn.0040248a
and dword [ebp - 0x23c], 0
mov eax, esi
mov esi, ebx
call fcn.0040fc47
lea ecx, [ebp - 0x24c]
call fcn.0042c84e
xor esi, esi
mov ecx, dword [ebp - 0x280]
add ecx, 0xfffffff0
call fcn.00402728
mov ecx, dword [ebp - 0x288]
add ecx, 0xfffffff0
call fcn.00402728
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402728
mov eax, esi
call fcn.0053d41c
ret 0xc
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x40fb2d
push eax
call fcn.0040242c
add eax, 0x10
pop ecx
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 5
xor edi, edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], 4
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
cmp dword [eax - 0xc], edi
jne 0x40f77e
lea ecx, [eax - 0x10]
call fcn.00402728
mov eax, esi
jmp 0x40fb26
call fcn.00437f60
push eax
lea ecx, [ebp - 0x27c]
call fcn.0042a551
lea esi, [ebp - 0x274]
mov byte [ebp - 4], 6
call fcn.0041280d
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 7
call fcn.0040248a
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x274]
add ecx, 0xfffffff0
call fcn.00402728
mov esi, dword [ebp - 0x27c]
push esi
push edi
push 0x59df14
push dword [ebp - 0x270]
mov dword [ebp - 0x274], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
call edi
push esi
push 1
push str.CacheVersion
push dword [ebp - 0x270]
mov dword [ebp - 0x278], eax
call edi
cmp dword [ebp - 0x278], 0
je 0x40f9c6
cmp eax, 3
jl 0x40f9c6
push 0x2f
mov esi, str...COMMONScannerInfo.cpp
push esi
call fcn.00538be0
pop ecx
pop ecx
test eax, eax
je 0x40f824
push 0x2f
jmp 0x40f834
push 0x5c
push esi
call fcn.00538be0
pop ecx
pop ecx
test eax, eax
je 0x40f83f
push 0x5c
push esi
call fcn.00538be0
pop ecx
pop ecx
inc eax
jmp 0x40f841
mov eax, esi
push 1
push 0xda
push eax
lea esi, [ebp - 0x26c]
call fcn.00404b6f
push str.Cache_hits.
push 0
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00404c4d
mov esi, eax
call fcn.0040279b
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 6
call fcn.00404bdb
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebx + 0x20]
call fcn.0040248a
mov esi, dword [ebp - 0x27c]
push esi
push 0
push str.ModelID
push dword [ebp - 0x270]
call edi
push esi
push 0
push str.ScannerType
push dword [ebp - 0x270]
mov dword [ebx + 8], eax
call edi
push esi
push 0
push str.ButtonNum
push dword [ebp - 0x270]
mov dword [ebx + 0xc], eax
call edi
push esi
push 0
push str.ModelDependency
push dword [ebp - 0x270]
mov dword [ebx + 0x10], eax
call edi
push esi
push 0
push str.EPSSetting
push dword [ebp - 0x270]
mov dword [ebx + 0x14], eax
call edi
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.00538a20
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x5990a0
push str.ShortTranslation
push dword [ebp - 0x270]
call esi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x24]
call fcn.00402332
push dword [ebp - 0x27c]
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0x5990a0
push str.DeviceSettingAlias
push dword [ebp - 0x270]
call esi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x28]
call fcn.00402332
push dword [ebp - 0x27c]
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0x5990a0
push str.DevInfAlias
push dword [ebp - 0x270]
call esi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x2c]
call fcn.00402332
push dword [ebp - 0x27c]
push 0
push str.ModifiedEvent
push dword [ebp - 0x270]
call edi
mov dword [ebx + 0x1c], eax
jmp 0x40fb08
mov eax, dword [ebp - 0x270]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x284], esp
mov dword [ebp - 0x284], esp
push eax
lea edi, [ebp - 0x274]
mov dword [ebp - 0x278], eax
call fcn.0040242c
pop ecx
mov ecx, dword [ebp - 0x284]
add eax, 0x10
mov dword [ecx], eax
call fcn.004372ee
pop ecx
test eax, eax
je 0x40fa3c
lea ecx, [esi - 0x10]
cmp eax, 4
jne 0x40fa24
call fcn.00402728
mov ecx, dword [ebp - 0x278]
call fcn.00402728
push 4
pop eax
jmp 0x40fb26
call fcn.00402728
mov ecx, dword [ebp - 0x278]
call fcn.00402728
xor eax, eax
inc eax
jmp 0x40fb26
push ecx
mov ecx, esp
mov dword [ebp - 0x284], esp
push 0x5990a0
call fcn.00402358
push ecx
mov byte [ebp - 4], 8
lea eax, [esi - 0x10]
mov dword [ebp - 0x28c], esp
mov edi, esp
push eax
call fcn.0040242c
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x274]
mov dword [ebp - 0x274], esp
mov edi, esp
push dword [ebp - 0x278]
call fcn.0040242c
add eax, 0x10
pop ecx
mov dword [edi], eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0042caa2
push 0x2f
mov esi, str...COMMONScannerInfo.cpp
push esi
call fcn.00538be0
pop ecx
pop ecx
test eax, eax
je 0x40faaf
push 0x2f
jmp 0x40fabf
push 0x5c
push esi
call fcn.00538be0
pop ecx
pop ecx
test eax, eax
je 0x40faca
push 0x5c
push esi
call fcn.00538be0
pop ecx
pop ecx
inc eax
jmp 0x40facc
mov eax, esi
push 1
push 0xd6
push eax
lea esi, [ebp - 0x26c]
call fcn.00404b6f
push str.Cache_no_hits.
push 0
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00404c4d
mov esi, eax
call fcn.0040279b
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 6
call fcn.00404bdb
mov ecx, dword [ebp - 0x27c]
add ecx, 0xfffffff0
call fcn.00402728
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.00402728
xor eax, eax
mov esi, eax
jmp 0x40f6fd
push ecx
mov dword [ebp - 0x28c], esp
mov esi, esp
push eax
call fcn.0040242c
add eax, 0x10
mov dword [esi], eax
pop ecx
mov esi, ebx
call fcn.0042c9a4
test eax, eax
je 0x40fb69
and dword [ebp - 0x274], 0
push 0x2f
push edi
call fcn.00538be0
pop ecx
pop ecx
test eax, eax
je 0x40fbda
push 0x2f
jmp 0x40fbea
push 0x2f
push edi
call fcn.00538be0
pop ecx
pop ecx
test eax, eax
je 0x40fb7b
push 0x2f
jmp 0x40fb8b
push 0x5c
push edi
call fcn.00538be0
pop ecx
pop ecx
test eax, eax
je 0x40fb96
push 0x5c
push edi
call fcn.00538be0
pop ecx
pop ecx
inc eax
jmp 0x40fb98
mov eax, edi
push 1
push 0xa0
push eax
lea esi, [ebp - 0x26c]
call fcn.00404b6f
mov byte [ebp - 4], 0xc
push dword [ebp + 0xc]
mov ecx, eax
push str.__Failed_scanner_info:__s
push 0
call fcn.00404c4d
mov esi, eax
call fcn.0040cc0a
pop ecx
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.00404bdb
jmp 0x40fc3c
push 0x5c
push edi
call fcn.00538be0
pop ecx
pop ecx
test eax, eax
je 0x40fbf5
push 0x5c
push edi
call fcn.00538be0
pop ecx
pop ecx
inc eax
jmp 0x40fbf7
mov eax, edi
push 1
push 0xa2
push eax
lea esi, [ebp - 0x26c]
call fcn.00404b6f
mov byte [ebp - 4], 0xd
push dword [ebp + 0xc]
mov ecx, eax
push str.__Succeeded_scanner_info:__s
push 0
call fcn.00404c4d
mov esi, eax
call fcn.0040cc0a
pop ecx
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.00404bdb
call fcn.0042ce82
mov esi, dword [ebp - 0x274]
jmp 0x40f6fd