Function at 0x496020
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [0x5786b5]
sub esp, 0x10
push esi
push edi
lea esi, [ebx + 0x3c]
push esi
mov ecx, str.BrCcHome.sdd
mov byte [ebx + 0x13d8], al
call fcn.00470370
xor edi, edi
cmp byte [ebp + 0x14], 0
lea eax, [ebx + 0x4c]
je 0x496053
push str.PcFaxTxScanPage_Mini_PanelWnd
jmp 0x496058
push str.PcFaxTxScanPage_PanelWnd
call fcn.005080c0
mov eax, dword [esi + 0x10]
cmp eax, edi
jne 0x496069
mov eax, 0x54ee24
mov dword [ebp - 0xc], edi
cmp dword [esi + 8], edi
jle 0x496097
cmp eax, edi
je 0x496097
cmp word [eax], di
je 0x496097
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x496086
mov ecx, 0x54ee24
push ecx
push edi
push str.PosiX
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0xc], eax
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x4960a3
mov ecx, 0x54ee24
mov dword [ebp - 8], edi
cmp dword [esi + 8], edi
jle 0x4960d1
cmp ecx, edi
je 0x4960d1
cmp word [ecx], di
je 0x4960d1
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x4960c0
mov eax, 0x54ee24
push eax
push edi
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 8], eax
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x4960dd
mov ecx, 0x54ee24
mov dword [ebp - 4], edi
cmp dword [esi + 8], edi
jle 0x49610b
cmp ecx, edi
je 0x49610b
cmp word [ecx], di
je 0x49610b
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x4960fa
mov eax, 0x54ee24
push eax
push edi
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 4], eax
cmp byte [ebp + 0x14], 0
lea eax, [ebx + 0x4c]
je 0x49611b
push str.PcFaxTxScanPage_Mini_PanelWnd_BkColor
jmp 0x496120
push str.PcFaxTxScanPage_PanelWnd_BkColor
call fcn.005080c0
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x496131
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], edi
jle 0x49615b
cmp ecx, edi
je 0x49615b
cmp word [ecx], di
je 0x49615b
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x49614d
mov eax, 0x54ee24
push eax
push edi
push str.ColorR
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea edi, [ebx + 0x1364]
mov dword [edi], eax
mov eax, dword [esi + 0x10]
mov ecx, eax
test eax, eax
jne 0x496171
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x49619c
test ecx, ecx
je 0x49619c
cmp word [ecx], ax
je 0x49619c
mov eax, dword [esi + 4]
test eax, eax
jne 0x49618d
mov eax, 0x54ee24
push eax
push 0
push str.ColorG
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebx + 0x1368], eax
mov eax, dword [esi + 0x10]
mov ecx, eax
test eax, eax
jne 0x4961b0
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x4961db
test ecx, ecx
je 0x4961db
cmp word [ecx], ax
je 0x4961db
mov eax, dword [esi + 4]
test eax, eax
jne 0x4961cc
mov eax, 0x54ee24
push eax
push 0
push str.ColorB
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebx + 0x136c], eax
cmp dword [ebx + 0x68], 0
jne 0x49620a
test edi, edi
je 0x49620a
movzx eax, byte [edi + 8]
movzx ecx, byte [edi + 4]
movzx edx, byte [edi]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebx + 0x68], eax
cmp byte [ebp + 0x14], 0
lea eax, [ebx + 0x4c]
je 0x49621a
push str.PcFaxTxScanPage_Mini_PanelWnd_VLineLeft
jmp 0x49621f
push str.PcFaxTxScanPage_PanelWnd_VLineLeft
call fcn.005080c0
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x496230
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x49625f
test ecx, ecx
je 0x49625f
cmp word [ecx], ax
je 0x49625f
mov eax, dword [esi + 4]
test eax, eax
jne 0x49624c
mov eax, 0x54ee24
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0
push str.ColorR
push ecx
call edi
jmp 0x496265
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebx + 0x1370], eax
mov eax, dword [esi + 0x10]
mov ecx, eax
test eax, eax
jne 0x496279
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x4962a0
test ecx, ecx
je 0x4962a0
cmp word [ecx], ax
je 0x4962a0
mov eax, dword [esi + 4]
test eax, eax
jne 0x496295
mov eax, 0x54ee24
push eax
push 0
push str.ColorG
push ecx
call edi
mov dword [ebx + 0x1374], eax
mov eax, dword [esi + 0x10]
mov ecx, eax
test eax, eax
jne 0x4962b4
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x4962db
test ecx, ecx
je 0x4962db
cmp word [ecx], ax
je 0x4962db
mov eax, dword [esi + 4]
test eax, eax
jne 0x4962d0
mov eax, 0x54ee24
push eax
push 0
push str.ColorB
push ecx
call edi
cmp byte [ebp + 0x14], 0
mov dword [ebx + 0x1378], eax
lea eax, [ebx + 0x4c]
je 0x4962f1
push str.PcFaxTxScanPage_Mini_PanelWnd_VLineRight
jmp 0x4962f6
push str.PcFaxTxScanPage_PanelWnd_VLineRight
call fcn.005080c0
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x496307
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x49632e
test ecx, ecx
je 0x49632e
cmp word [ecx], ax
je 0x49632e
mov eax, dword [esi + 4]
test eax, eax
jne 0x496323
mov eax, 0x54ee24
push eax
push 0
push str.ColorR
push ecx
call edi
mov dword [ebx + 0x137c], eax
mov eax, dword [esi + 0x10]
mov ecx, eax
test eax, eax
jne 0x496342
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x496369
test ecx, ecx
je 0x496369
cmp word [ecx], ax
je 0x496369
mov eax, dword [esi + 4]
test eax, eax
jne 0x49635e
mov eax, 0x54ee24
push eax
push 0
push str.ColorG
push ecx
call edi
mov dword [ebx + 0x1380], eax
mov eax, dword [esi + 0x10]
mov ecx, eax
test eax, eax
jne 0x49637d
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x4963a4
test ecx, ecx
je 0x4963a4
cmp word [ecx], ax
je 0x4963a4
mov eax, dword [esi + 4]
test eax, eax
jne 0x496399
mov eax, 0x54ee24
push eax
push 0
push str.ColorB
push ecx
call edi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov edi, dword [ebp + 8]
push ebx
push 0x2329
mov dword [ebx + 0x1384], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
push edx
push eax
push ecx
push 0
push 0x50000000
push 0
mov eax, str.ControlCenter4_wChildWndCls
mov ecx, edi
mov edx, ebx
call fcn.0051bcc0
mov edx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], edx
mov byte [ebx + 0x38], 1
test esi, esi
je 0x49640e
mov eax, dword [ebp - 4]
push esi
push edi
push ebx
mov dword [ebx + 0x1360], eax
call fcn.00496db0
mov ecx, dword [ebp + 0x14]
push ecx
push esi
push edi
push ebx
call fcn.004970b0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10