Function at 0x4233db
Capabilities:
Get common file path
Get startup folder
Read .ini file

Disassembly:
push 0x240
mov eax, 0x568b22
call fcn.0053cea9
lea eax, [ebp - 0x220]
push eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x220], esp
mov edi, esp
push eax
lea esi, [ebp - 0x224]
call fcn.00402431
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00422ad9
pop ecx
pop ecx
push dword [ebp - 0x224]
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push str.Model
call fcn.0040235d
lea edi, [ebp - 0x22c]
call fcn.00436f83
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x224], ebx
jle 0x423842
push dword [ebp - 0x224]
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0x598d00
call fcn.0040235d
lea edi, [ebp - 0x224]
call fcn.00436f83
pop ecx
pop ecx
push str.ModelInfo.ini
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 2
call fcn.0040eb20
lea edi, [ebp - 0x24c]
mov byte [ebp - 4], 3
call fcn.00423849
lea ecx, [ebp - 0x240]
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 4
call fcn.004018e7
add esp, 0xc
mov ecx, dword [ebp - 0x24c]
add ecx, 0xfffffff0
call fcn.0040274b
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.0040274b
push dword [ebp - 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ebx
mov edi, str.buttonNumbers
push edi
push dword [ebp - 0x224]
call esi
test eax, eax
je 0x423536
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040274b
mov al, 1
call fcn.0053cf2c
ret
push 1
push 0x23
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
call fcn.00537ff9
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x228]
call fcn.004023c0
push str.ScanSmart.ini
lea ecx, [ebp - 0x230]
call fcn.0040eb20
push str.epsonEpson_Scan_2Models_
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 8
call fcn.0040eb20
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 9
call fcn.004018e7
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 0xa
call fcn.004018e7
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push eax
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 0xb
call fcn.004018e7
add esp, 0xc
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xc
call fcn.0040248f
mov ecx, dword [ebp - 0x248]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.0040274b
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.0040274b
push dword [ebp - 0x228]
push ebx
push edi
push dword [ebp - 0x224]
call esi
test eax, eax
jne 0x4234f9
lea edi, [ebp - 0x220]
call fcn.00411f71
push str.Push_Scan_Plugin_
push eax
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040193e
add esp, 0xc
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0040274b
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004018e7
add esp, 0xc
push str..ini
push eax
lea eax, [ebp - 0x238]
push eax
mov byte [ebp - 4], 0x10
call fcn.0040193e
add esp, 0xc
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.0040274b
lea eax, [ebp - 0x22c]
push eax
mov ebx, str.SMEX.
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.0040eabc
mov eax, dword [eax]
add esp, 0xc
push dword [ebp - 0x238]
mov edi, str.ESMSupport
push 0
push edi
push eax
call esi
mov ecx, dword [ebp - 0x220]
test eax, eax
setne byte [ebp - 0x219]
add ecx, 0xfffffff0
call fcn.0040274b
cmp byte [ebp - 0x219], 0
je 0x42377c
mov bl, 1
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040274b
mov al, bl
jmp 0x423530
push str.EPSON_DS_570W
lea ecx, [ebp + 8]
call fcn.00402e8e
test eax, eax
je 0x42383b
push str.EPSON_DS_360W
lea ecx, [ebp + 8]
call fcn.00402e8e
test eax, eax
je 0x42383b
push str.EPSON_DS_310
lea ecx, [ebp + 8]
call fcn.00402e8e
test eax, eax
je 0x42383b
call fcn.00437a9e
push eax
lea ecx, [ebp - 0x230]
call fcn.00402723
mov byte [ebp - 4], 0x13
call fcn.004120c2
push dword [eax]
lea eax, [ebp - 0x230]
push str._sAssistantsScan_AssistantScannerDevCap.ini
push eax
call fcn.0040a0e9
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.0040eabc
mov ebx, dword [ebp - 0x230]
mov eax, dword [eax]
add esp, 0xc
push ebx
push 0
push edi
push eax
call esi
mov ecx, dword [ebp - 0x220]
test eax, eax
setne byte [ebp - 0x219]
add ecx, 0xfffffff0
call fcn.0040274b
lea ecx, [ebx - 0x10]
call fcn.0040274b
mov bl, byte [ebp - 0x219]
jmp 0x423724
xor bl, bl
jmp 0x423724
xor bl, bl
jmp 0x42375c