Function at 0x40f8c8
Capabilities:
Read .ini file

Disassembly:
push 0x280
mov eax, 0x569cee
call fcn.0053d749
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.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40f8fd
push 0x2f
jmp 0x40f90d
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40f918
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x40f91a
mov eax, edi
push 1
push 0x7d
push eax
lea esi, [ebp - 0x26c]
call fcn.00404e75
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
mov ecx, eax
push str.Retrieving_scanner_info:__s
push 0
call fcn.00404f53
mov esi, eax
call fcn.0040cf26
pop ecx
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0
call fcn.00404ee1
xor esi, esi
inc esi
mov dword [ebp - 0x274], esi
call fcn.00438329
push eax
lea ecx, [ebp - 0x288]
call fcn.00402a28
mov byte [ebp - 4], 2
call fcn.00438329
push eax
lea ecx, [ebp - 0x280]
call fcn.00402a28
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.0040279f
lea ecx, [ebp - 0x280]
call fcn.004103d5
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x280]
add ecx, 0x50
call fcn.0043a8c8
test eax, eax
je 0x40fa4a
lea esi, [ebp - 0x24c]
call fcn.0042cb7a
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.0040279f
and dword [ebp - 0x23c], 0
mov eax, esi
mov esi, ebx
call fcn.0040ff63
lea ecx, [ebp - 0x24c]
call fcn.0042cbf2
xor esi, esi
mov ecx, dword [ebp - 0x280]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [ebp - 0x288]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402a50
mov eax, esi
call fcn.0053d7cc
ret 0xc
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x40fe49
push eax
call fcn.00402741
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 0x40fa9a
lea ecx, [eax - 0x10]
call fcn.00402a50
mov eax, esi
jmp 0x40fe42
call fcn.00438329
push eax
lea ecx, [ebp - 0x27c]
call fcn.00402a28
lea esi, [ebp - 0x274]
mov byte [ebp - 4], 6
call fcn.00412c3e
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 7
call fcn.0040279f
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x274]
add ecx, 0xfffffff0
call fcn.00402a50
mov esi, dword [ebp - 0x27c]
push esi
push edi
push 0x59dfac
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 0x40fce2
cmp eax, 3
jl 0x40fce2
push 0x2f
mov esi, str...COMMONScannerInfo.cpp
push esi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40fb40
push 0x2f
jmp 0x40fb50
push 0x5c
push esi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40fb5b
push 0x5c
push esi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x40fb5d
mov eax, esi
push 1
push 0xda
push eax
lea esi, [ebp - 0x26c]
call fcn.00404e75
push str.Cache_hits.
push 0
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00404f53
mov esi, eax
call fcn.00402aa4
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 6
call fcn.00404ee1
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebx + 0x20]
call fcn.0040279f
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.00538860
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x599168
push str.ShortTranslation
push dword [ebp - 0x270]
call esi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x24]
call fcn.00402647
push dword [ebp - 0x27c]
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0x599168
push str.DeviceSettingAlias
push dword [ebp - 0x270]
call esi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x28]
call fcn.00402647
push dword [ebp - 0x27c]
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0x599168
push str.DevInfAlias
push dword [ebp - 0x270]
call esi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x2c]
call fcn.00402647
push dword [ebp - 0x27c]
push 0
push str.ModifiedEvent
push dword [ebp - 0x270]
call edi
mov dword [ebx + 0x1c], eax
jmp 0x40fe24
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.00402741
pop ecx
mov ecx, dword [ebp - 0x284]
add eax, 0x10
mov dword [ecx], eax
call fcn.004376b5
pop ecx
test eax, eax
je 0x40fd58
lea ecx, [esi - 0x10]
cmp eax, 4
jne 0x40fd40
call fcn.00402a50
mov ecx, dword [ebp - 0x278]
call fcn.00402a50
push 4
pop eax
jmp 0x40fe42
call fcn.00402a50
mov ecx, dword [ebp - 0x278]
call fcn.00402a50
xor eax, eax
inc eax
jmp 0x40fe42
push ecx
mov ecx, esp
mov dword [ebp - 0x284], esp
push 0x599168
call fcn.0040266d
push ecx
mov byte [ebp - 4], 8
lea eax, [esi - 0x10]
mov dword [ebp - 0x28c], esp
mov edi, esp
push eax
call fcn.00402741
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.00402741
add eax, 0x10
pop ecx
mov dword [edi], eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0042ce6a
push 0x2f
mov esi, str...COMMONScannerInfo.cpp
push esi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40fdcb
push 0x2f
jmp 0x40fddb
push 0x5c
push esi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40fde6
push 0x5c
push esi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x40fde8
mov eax, esi
push 1
push 0xd6
push eax
lea esi, [ebp - 0x26c]
call fcn.00404e75
push str.Cache_no_hits.
push 0
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00404f53
mov esi, eax
call fcn.00402aa4
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 6
call fcn.00404ee1
mov ecx, dword [ebp - 0x27c]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.00402a50
xor eax, eax
mov esi, eax
jmp 0x40fa19
push ecx
mov dword [ebp - 0x28c], esp
mov esi, esp
push eax
call fcn.00402741
add eax, 0x10
mov dword [esi], eax
pop ecx
mov esi, ebx
call fcn.0042cd6c
test eax, eax
je 0x40fe85
and dword [ebp - 0x274], 0
push 0x2f
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40fef6
push 0x2f
jmp 0x40ff06
push 0x2f
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40fe97
push 0x2f
jmp 0x40fea7
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40feb2
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x40feb4
mov eax, edi
push 1
push 0xa0
push eax
lea esi, [ebp - 0x26c]
call fcn.00404e75
mov byte [ebp - 4], 0xc
push dword [ebp + 0xc]
mov ecx, eax
push str.__Failed_scanner_info:__s
push 0
call fcn.00404f53
mov esi, eax
call fcn.0040cf26
pop ecx
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.00404ee1
jmp 0x40ff58
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x40ff11
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x40ff13
mov eax, edi
push 1
push 0xa2
push eax
lea esi, [ebp - 0x26c]
call fcn.00404e75
mov byte [ebp - 4], 0xd
push dword [ebp + 0xc]
mov ecx, eax
push str.__Succeeded_scanner_info:__s
push 0
call fcn.00404f53
mov esi, eax
call fcn.0040cf26
pop ecx
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.00404ee1
call fcn.0042d24a
mov esi, dword [ebp - 0x274]
jmp 0x40fa19