Function at 0x497d50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx + 0x3c]
push edi
mov ecx, str.BrCcHome.sdd
call fcn.00470260
xor esi, esi
cmp byte [ebp + 0x10], 0
lea eax, [ebx + 0x4c]
mov dword [ebp - 4], eax
je 0x497d7f
push str.PcFaxTxScanPage_Mini_TypeSlctArea
jmp 0x497d84
push str.PcFaxTxScanPage_TypeSlctArea
call fcn.005080c0
mov eax, dword [edi + 0x10]
mov ecx, eax
cmp eax, esi
jne 0x497d97
mov ecx, 0x54ee24
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 8], esi
cmp dword [edi + 8], esi
jle 0x497dc7
cmp ecx, esi
je 0x497dc7
cmp word [ecx], si
je 0x497dc7
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x497dba
mov eax, 0x54ee24
push eax
push esi
push str.PosiX
push ecx
call ebx
mov dword [ebp - 8], eax
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x497dd3
mov ecx, 0x54ee24
mov dword [ebp - 0xc], esi
cmp dword [edi + 8], esi
jle 0x497dfd
cmp ecx, esi
je 0x497dfd
cmp word [ecx], si
je 0x497dfd
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x497df0
mov eax, 0x54ee24
push eax
push esi
push str.PosiY
push ecx
call ebx
mov dword [ebp - 0xc], eax
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x497e09
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 8], esi
jle 0x497e2f
cmp ecx, esi
je 0x497e2f
cmp word [ecx], si
je 0x497e2f
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x497e25
mov eax, 0x54ee24
push eax
push esi
push str.OffsetY
push ecx
call ebx
cmp byte [ebp + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1398], eax
mov eax, dword [ebp - 4]
je 0x497e48
push str.PcFaxTxScanPage_Mini_TypeSlctPict
jmp 0x497e4d
push str.PcFaxTxScanPage_TypeSlctPict
call fcn.005080c0
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x497e5e
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [edi + 8], esi
jle 0x497e8a
cmp ecx, esi
je 0x497e8a
cmp word [ecx], si
je 0x497e8a
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x497e7a
mov eax, 0x54ee24
push eax
push esi
push str.PosiX
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x497e96
mov ecx, 0x54ee24
xor esi, esi
cmp dword [edi + 8], esi
jle 0x497ec3
test ecx, ecx
je 0x497ec3
cmp word [ecx], si
je 0x497ec3
mov eax, dword [edi + 4]
test eax, eax
jne 0x497eb2
mov eax, 0x54ee24
push eax
push 0
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x497ecf
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 8], eax
jle 0x497efa
test ecx, ecx
je 0x497efa
cmp word [ecx], ax
je 0x497efa
mov eax, dword [edi + 4]
test eax, eax
jne 0x497eeb
mov eax, 0x54ee24
push eax
push 0
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp + 8]
mov dword [edx + 0x1390], eax
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x497f11
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 8], eax
jle 0x497f3c
test ecx, ecx
je 0x497f3c
cmp word [ecx], ax
je 0x497f3c
mov eax, dword [edi + 4]
test eax, eax
jne 0x497f2d
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp + 8]
sub esi, dword [ecx + 0x13d4]
add ebx, dword [ebp - 8]
add esi, dword [ebp - 0xc]
mov dword [ecx + 0x1388], ebx
mov ebx, dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ecx + 0x1394], eax
mov dword [ecx + 0x138c], esi
mov eax, dword [0x577698]
test eax, eax
je 0x498070
push 0x80
push 0
push 0
push 0
push 0xc7c3
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x497f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
test edi, edi
je 0x497fbb
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esi, 0xc4
call fcn.00475200
test eax, eax
je 0x497fb4
mov eax, esi
call fcn.00475290
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x577698]
test eax, eax
je 0x49807f
push 0x80
push 0
push 0
push 0
push 0xc7c2
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x497ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
test edi, edi
je 0x498013
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esi, 0xa4
call fcn.00475200
test eax, eax
je 0x49800c
mov eax, esi
call fcn.00475290
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x577698]
test eax, eax
je 0x49808b
push 0x80
push 0
push 0
push 0
push 0xc7c4
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x498044
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
test edi, edi
je 0x498067
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esi, 0xe4
call fcn.00475200
test eax, eax
je 0x498060
mov eax, esi
call fcn.00475290
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [0x57768c], 0x57
jmp 0x497fc0
mov dword [0x57768c], 0x57
jmp 0x498018
pop edi
pop esi
mov dword [0x57768c], 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0xc