Function at 0x404883
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c535
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.00453e70
mov eax, dword [0x48c7d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, edx
push ebx
push 0
mov edi, ecx
push str.DocSource
push str.General
mov dword [ebp - 0x101c], edi
mov byte [edi + 0x40], 0
call esi
push ebx
push 0
push str.DocSize
push str.General
mov dword [edi + 0x2c], eax
call esi
push ebx
push 0
push str.ImageType
push str.General
mov dword [edi + 0x34], eax
call esi
push ebx
push 0
push str.QualityIndex
push str.General
mov dword [edi + 0x38], eax
call esi
push ebx
push 0xc8
push str.Resolution
push str.General
mov dword [edi + 0x24], eax
call esi
push ebx
push 0
push str.Orientation
push str.General
mov dword [edi + 0x28], eax
call esi
fld qword [0x47b9a0]
push ecx
push ecx
fstp qword [esp]
push str.Width
mov ecx, ebx
mov dword [edi + 0x30], eax
call fcn.00404721
fstp qword [edi + 8]
fld qword [str.p_nW_]
mov ecx, ebx
fstp qword [esp + 4]
mov dword [esp], str.Height
call fcn.00404721
fstp qword [edi + 0x10]
add esp, 0xc
push ebx
push 0x80
push str.BWThreshold
push str.General
call esi
push ebx
push 0
push str.Contrast
push str.General
mov dword [edi + 0x20], eax
call esi
push ebx
push 0
push str.Brightness
push str.General
mov dword [edi + 0x1c], eax
call esi
push ebx
push 0
push str.InputOrientation
push str.General
mov dword [edi + 0x18], eax
call esi
mov dword [edi + 0x48], eax
push ebx
push 0
push str.ShowUI
push str.General
call esi
push ebx
push 0
test eax, eax
push str.ShowConfirmation
setne al
push str.General
mov byte [edi + 0x40], al
call esi
push ebx
push 0
test eax, eax
push str.AutoFeedMode
setne al
push str.General
mov byte [edi + 0x4d], al
call esi
push ebx
push 0
test eax, eax
push 0x477c28
setne al
push str.Advanced
mov byte [edi + 0x4e], al
call esi
push ebx
push 0
test eax, eax
push str.Descreen
setne al
push str.Advanced
mov byte [edi + 0x41], al
call esi
push ebx
push 0
test eax, eax
push str.UnsharpMask
setne al
push str.Advanced
mov byte [edi + 0x43], al
call esi
push ebx
push 0
test eax, eax
push str.RemovePunchHoles
setne al
push str.Advanced
mov byte [edi + 0x42], al
call esi
push ebx
push 0
test eax, eax
push str.CorrectDocumentSkew
setne al
push str.Advanced
mov byte [edi + 0x44], al
call esi
push ebx
push 0
test eax, eax
push str.BlankPageSkip
setne al
push str.Advanced
mov byte [edi + 0x45], al
call esi
push ebx
push 0
test eax, eax
push str.DoubleFeedDetection
setne al
push str.Advanced
mov byte [edi + 0x46], al
call esi
test eax, eax
setne al
push ebx
mov byte [edi + 0x47], al
push 0
push str.IsEpsonScanStitching
push str.Advanced
call esi
test eax, eax
push ebx
setne al
push 0x400
mov byte [edi + 0x4c], al
lea eax, [ebp - 0x1014]
push eax
push 0x47741c
push str.ExtProfilePath
push str.Advanced
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404af6
lea eax, [ebp - 0x1014]
jmp 0x404b87
push ebx
call fcn.0044d316
pop ecx
push ebx
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x814]
push 0x400
push eax
call fcn.0044e4e7
mov eax, dword [ebp - 0x1018]
add esp, 0xc
jmp 0x404b2b
cmp word [ebp + eax*2 - 0x814], 0x5c
je 0x404b32
dec eax
test eax, eax
jg 0x404b20
jmp 0x404b3c
xor ecx, ecx
mov word [ebp + eax*2 - 0x814], cx
push 0x4778ac
lea eax, [ebp - 0x814]
push 0x400
push eax
call fcn.0044e808
add esp, 0xc
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x814]
push 0x400
push eax
call fcn.0044e808
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404b90
lea eax, [ebp - 0x814]
push eax
lea ecx, [edi + 0x3c]
call fcn.0040247a
push ebx
push 0
push str.FileFormat
push str.Save
call esi
push ebx
push 0
push str.TargetFolderIndex
push str.Save
mov dword [edi + 0x50], eax
call esi
push ebx
push 1
push str.StartNum
push str.Save
mov dword [edi + 0x58], eax
call esi
push ebx
push 3
push str.CounterDigitLength
push str.Save
mov dword [edi + 0x68], eax
call esi
push ebx
push 1
push str.EnableTimeFormat
push str.Save
mov dword [edi + 0x6c], eax
call esi
push ebx
push 2
test eax, eax
push str.TimeFormat
seta al
push str.Save
mov byte [edi + 0x74], al
call esi
push ebx
push 0
push str.SubFolderSetting
push str.Save
mov dword [edi + 0x60], eax
call esi
push ebx
push 1
push str.EnableSeparatorCounter
push str.Save
mov dword [edi + 0x64], eax
call esi
push ebx
push 3
test eax, eax
push str.SeparationCounterDigitLength
seta al
push str.Save
mov byte [edi + 0x75], al
call esi
push ebx
push 1
push str.EnableBarcodeCharacter
push str.Save
mov dword [edi + 0x70], eax
call esi
push dword [edi + 0x58]
test eax, eax
seta al
mov byte [edi + 0x76], al
lea edi, [ebp - 0x1018]
call fcn.004047a0
pop ecx
mov edi, dword [ebp - 0x101c]
and dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x54]
call fcn.0040275e
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1018]
add ecx, 0xfffffff0
call fcn.0040285d
push ebx
push 0x400
lea eax, [ebp - 0x1014]
push eax
push 0x477a90
push str.Prefix
push str.Save
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1014]
push eax
lea ecx, [edi + 0x5c]
call fcn.0040247a
mov eax, dword [ebp + 8]
test eax, eax
jg 0x404cd1
push ebx
push 0x2bc
push str.ProjectID
push str.General
call esi
mov dword [edi + 0x7c], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044d1dc
leave
ret 4