Function at 0x40f714
Capabilities:
Read .ini file

Disassembly:
push 0x280
mov eax, 0x56a108
call fcn.0053da79
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.005392c0
pop ecx
pop ecx
test eax, eax
je 0x40f749
push 0x2f
jmp 0x40f759
push 0x5c
push esi
call fcn.005392c0
pop ecx
pop ecx
test eax, eax
je 0x40f764
push 0x5c
push esi
call fcn.005392c0
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.0040f116
add esp, 0xc
mov edi, eax
push 1
push 0x7d
push esi
lea esi, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.00404b01
mov byte [ebp - 4], 2
push dword [edi]
mov ecx, eax
push 0
call fcn.00404bdf
mov edi, eax
call fcn.0040cbe5
pop ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404b6d
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.00402722
xor esi, esi
inc esi
mov dword [ebp - 0x278], esi
call fcn.00438647
push eax
lea ecx, [ebp - 0x288]
call fcn.0042a80d
mov byte [ebp - 4], 3
call fcn.00438647
push eax
lea ecx, [ebp - 0x284]
call fcn.0042a80d
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 4
call fcn.0040248f
lea ecx, [ebp - 0x284]
call fcn.00410289
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x284]
add ecx, 0x50
call fcn.0043abb6
test eax, eax
je 0x40f8b9
lea esi, [ebp - 0x24c]
call fcn.0042caa5
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.0040fe19
lea ecx, [ebp - 0x24c]
call fcn.0042cb1d
xor esi, esi
mov ecx, dword [ebp - 0x284]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp - 0x288]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402722
mov eax, esi
call fcn.0053dafc
ret 0xc
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x40fcab
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 0x40f904
lea ecx, [edi - 0x10]
call fcn.00402722
jmp 0x40f888
call fcn.00438647
push eax
lea ecx, [ebp - 0x270]
call fcn.0042a80d
lea esi, [ebp - 0x278]
mov byte [ebp - 4], 7
call fcn.004129cc
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.00402722
push dword [ebp - 0x270]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
and dword [ebp - 0x278], 0
push 0
push 0x59decc
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 0x40fb4a
cmp eax, 3
jl 0x40fb4a
push 0x2f
mov esi, str...COMMONScannerInfo.cpp
push esi
call fcn.005392c0
pop ecx
pop ecx
test eax, eax
je 0x40f9a6
push 0x2f
jmp 0x40f9b6
push 0x5c
push esi
call fcn.005392c0
pop ecx
pop ecx
test eax, eax
je 0x40f9c1
push 0x5c
push esi
call fcn.005392c0
pop ecx
pop ecx
inc eax
jmp 0x40f9c3
mov eax, esi
push 1
push 0xda
push eax
lea esi, [ebp - 0x26c]
call fcn.00404b01
push str.Cache_hits.
push 0
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00404bdf
mov edi, eax
call fcn.00402776
pop ecx
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00404b6d
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 str.ModelID
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.00539100
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x5990a0
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 0x5990a0
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 0x5990a0
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 0x40fc8a
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.004379d5
pop ecx
test eax, eax
je 0x40fbbc
mov ecx, dword [ebp - 0x270]
push 4
pop esi
add ecx, 0xfffffff0
cmp eax, esi
jne 0x40fba4
call fcn.00402722
mov ecx, dword [ebp - 0x27c]
jmp 0x40f8fd
call fcn.00402722
mov ecx, dword [ebp - 0x27c]
call fcn.00402722
xor esi, esi
inc esi
jmp 0x40f888
push ecx
mov ecx, esp
mov dword [ebp - 0x280], esp
push 0x5990a0
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.0042cd8f
push 0x2f
mov esi, str...COMMONScannerInfo.cpp
push esi
call fcn.005392c0
pop ecx
pop ecx
test eax, eax
je 0x40fc35
push 0x2f
jmp 0x40fc45
push 0x5c
push esi
call fcn.005392c0
pop ecx
pop ecx
test eax, eax
je 0x40fc50
push 0x5c
push esi
call fcn.005392c0
pop ecx
pop ecx
inc eax
jmp 0x40fc52
mov eax, esi
push 1
push 0xd6
push eax
lea esi, [ebp - 0x26c]
call fcn.00404b01
push str.Cache_no_hits.
push 0
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00404bdf
mov edi, eax
call fcn.00402776
pop ecx
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00404b6d
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp - 0x274]
add ecx, 0xfffffff0
call fcn.00402722
jmp 0x40f886
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.0042cc91
test eax, eax
je 0x40fcf0
and dword [ebp - 0x278], 0
push 0x2f
mov esi, str...COMMONDeviceManager.cpp
push esi
call fcn.005392c0
pop ecx
pop ecx
test eax, eax
je 0x40fd88
push 0x2f
jmp 0x40fd98
push 0x2f
mov esi, str...COMMONDeviceManager.cpp
push esi
call fcn.005392c0
pop ecx
pop ecx
test eax, eax
je 0x40fd07
push 0x2f
jmp 0x40fd17
push 0x5c
push esi
call fcn.005392c0
pop ecx
pop ecx
test eax, eax
je 0x40fd22
push 0x5c
push esi
call fcn.005392c0
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.0040f116
add esp, 0xc
mov edi, eax
push 1
push 0xa0
push esi
lea esi, [ebp - 0x26c]
mov byte [ebp - 4], 0xd
call fcn.00404b01
mov byte [ebp - 4], 0xe
push dword [edi]
mov ecx, eax
push 0
call fcn.00404bdf
mov edi, eax
call fcn.0040cbe5
pop ecx
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.00404b6d
mov ecx, dword [ebp - 0x280]
add ecx, 0xfffffff0
call fcn.00402722
jmp 0x40fe0e
push 0x5c
push esi
call fcn.005392c0
pop ecx
pop ecx
test eax, eax
je 0x40fda3
push 0x5c
push esi
call fcn.005392c0
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.0040f116
add esp, 0xc
mov edi, eax
push 1
push 0xa2
push esi
lea esi, [ebp - 0x26c]
mov byte [ebp - 4], 0xf
call fcn.00404b01
mov byte [ebp - 4], 0x10
push dword [edi]
mov ecx, eax
push 0
call fcn.00404bdf
mov edi, eax
call fcn.0040cbe5
pop ecx
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.00404b6d
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x280]
add ecx, 0xfffffff0
call fcn.00402722
push ebx
call fcn.0042d16f
mov esi, dword [ebp - 0x278]
jmp 0x40f888