Function at 0x497de0
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.00470370
xor esi, esi
cmp byte [ebp + 0x10], 0
lea eax, [ebx + 0x4c]
mov dword [ebp - 4], eax
je 0x497e0f
push str.PcFaxTxScanPage_Mini_TypeSlctArea
jmp 0x497e14
push str.PcFaxTxScanPage_TypeSlctArea
call fcn.005080c0
mov eax, dword [edi + 0x10]
mov ecx, eax
cmp eax, esi
jne 0x497e27
mov ecx, 0x54ee24
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 8], esi
cmp dword [edi + 8], esi
jle 0x497e57
cmp ecx, esi
je 0x497e57
cmp word [ecx], si
je 0x497e57
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x497e4a
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 0x497e63
mov ecx, 0x54ee24
mov dword [ebp - 0xc], esi
cmp dword [edi + 8], esi
jle 0x497e8d
cmp ecx, esi
je 0x497e8d
cmp word [ecx], si
je 0x497e8d
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x497e80
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 0x497e99
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 8], esi
jle 0x497ebf
cmp ecx, esi
je 0x497ebf
cmp word [ecx], si
je 0x497ebf
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x497eb5
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 0x497ed8
push str.PcFaxTxScanPage_Mini_TypeSlctPict
jmp 0x497edd
push str.PcFaxTxScanPage_TypeSlctPict
call fcn.005080c0
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x497eee
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [edi + 8], esi
jle 0x497f1a
cmp ecx, esi
je 0x497f1a
cmp word [ecx], si
je 0x497f1a
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x497f0a
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 0x497f26
mov ecx, 0x54ee24
xor esi, esi
cmp dword [edi + 8], esi
jle 0x497f53
test ecx, ecx
je 0x497f53
cmp word [ecx], si
je 0x497f53
mov eax, dword [edi + 4]
test eax, eax
jne 0x497f42
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 0x497f5f
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 8], eax
jle 0x497f8a
test ecx, ecx
je 0x497f8a
cmp word [ecx], ax
je 0x497f8a
mov eax, dword [edi + 4]
test eax, eax
jne 0x497f7b
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 0x497fa1
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 8], eax
jle 0x497fcc
test ecx, ecx
je 0x497fcc
cmp word [ecx], ax
je 0x497fcc
mov eax, dword [edi + 4]
test eax, eax
jne 0x497fbd
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 0x498100
push 0x80
push 0
push 0
push 0
push 0xc7c3
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x498028
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
test edi, edi
je 0x49804b
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esi, 0xc4
call fcn.00475350
test eax, eax
je 0x498044
mov eax, esi
call fcn.004753e0
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x577698]
test eax, eax
je 0x49810f
push 0x80
push 0
push 0
push 0
push 0xc7c2
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x498080
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
test edi, edi
je 0x4980a3
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esi, 0xa4
call fcn.00475350
test eax, eax
je 0x49809c
mov eax, esi
call fcn.004753e0
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x577698]
test eax, eax
je 0x49811b
push 0x80
push 0
push 0
push 0
push 0xc7c4
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x4980d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
test edi, edi
je 0x4980f7
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esi, 0xe4
call fcn.00475350
test eax, eax
je 0x4980f0
mov eax, esi
call fcn.004753e0
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 0x498050
mov dword [0x57768c], 0x57
jmp 0x4980a8
pop edi
pop esi
mov dword [0x57768c], 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0xc