Function at 0x497020
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5403e8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
lea eax, [edi + 0x3c]
push eax
mov ecx, str.BrCcHome.sdd
mov dword [ebp - 0x14], eax
call fcn.00470260
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push eax
push edi
call fcn.004978e0
push ebx
push esi
push edi
call fcn.00497d50
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push ecx
push edi
call fcn.004980a0
push ebx
push esi
mov esi, edi
call fcn.00498270
call fcn.00498e60
push ebx
call fcn.00499200
mov ecx, dword [edi + 0x158]
lea eax, [edi + 0x104]
test ecx, ecx
jle 0x4970d3
mov edx, dword [eax + 0x58]
test edx, edx
jle 0x4970d3
push ecx
mov ecx, dword [eax + 0x50]
push ecx
mov ecx, dword [eax + 0x4c]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov ebx, edx
mov eax, 0x10000000
mov edx, 0x1983
call fcn.00509070
mov ebx, dword [ebp + 0x14]
mov ecx, dword [edi + 0x230]
lea eax, [edi + 0x1dc]
test ecx, ecx
jle 0x497110
mov edx, dword [eax + 0x58]
test edx, edx
jle 0x497110
push ecx
mov ecx, dword [eax + 0x50]
push ecx
mov ecx, dword [eax + 0x4c]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov ebx, edx
mov eax, 0x10000000
mov edx, 0x1984
call fcn.00509070
mov ebx, dword [ebp + 0x14]
mov ecx, dword [edi + 0x56c]
lea eax, [edi + 0x518]
test ecx, ecx
jle 0x49714d
mov edx, dword [eax + 0x58]
test edx, edx
jle 0x49714d
push ecx
mov ecx, dword [eax + 0x50]
push ecx
mov ecx, dword [eax + 0x4c]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov ebx, edx
mov eax, 0x10000000
mov edx, 0x1985
call fcn.00509070
mov ebx, dword [ebp + 0x14]
lea eax, [edi + 0x4c]
mov dword [ebp - 0x10], eax
test bl, bl
je 0x49715e
push str.PcFaxTxScanPage_Mini_CustomBtnWnd
jmp 0x497163
push str.PcFaxTxScanPage_CustomBtnWnd
call fcn.005080c0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x10]
mov ecx, eax
test eax, eax
jne 0x497179
mov ecx, 0x54ee24
cmp dword [esi + 8], 0
mov dword [ebp - 0x1c], 0
jle 0x4971ae
test ecx, ecx
je 0x4971ae
cmp word [ecx], 0
je 0x4971ae
mov eax, dword [esi + 4]
test eax, eax
jne 0x49719c
mov eax, 0x54ee24
push eax
push 0
push str.PosiX
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x4971ba
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 8], ebx
jle 0x4971e7
test ecx, ecx
je 0x4971e7
cmp word [ecx], bx
je 0x4971e7
mov eax, dword [esi + 4]
test eax, eax
jne 0x4971d6
mov eax, 0x54ee24
push eax
push 0
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x4971f3
mov ecx, 0x54ee24
cmp dword [esi + 8], 0
mov dword [ebp - 0x18], 0
jle 0x497228
test ecx, ecx
je 0x497228
cmp word [ecx], 0
je 0x497228
mov eax, dword [esi + 4]
test eax, eax
jne 0x497216
mov eax, 0x54ee24
push eax
push 0
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x497234
mov ecx, 0x54ee24
mov eax, dword [ebp - 0x14]
xor esi, esi
cmp dword [eax + 8], esi
jle 0x497264
test ecx, ecx
je 0x497264
cmp word [ecx], si
je 0x497264
mov eax, dword [eax + 4]
test eax, eax
jne 0x497253
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
push 0x80fb
lea edx, [ebp - 0x30]
push edx
mov ecx, 0x5776a0
call fcn.00471380
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x42c], ecx
cmp eax, ecx
jne 0x49728e
mov eax, 0x54ee24
mov ecx, dword [ebp - 0x18]
sub ebx, dword [edi + 0x13d4]
mov edx, dword [ebp - 0x1c]
push esi
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edx
push 0
push eax
mov eax, dword [ebp + 0xc]
push 0x17eb
push eax
lea ecx, [edi + 0x26c]
mov eax, 0x10000000
call fcn.0043b720
cmp byte [ebp + 0x14], 0
mov eax, dword [ebp - 0x10]
je 0x4972cd
push str.PcFaxTxScanPage_Mini_ScanBtnPict
jmp 0x4972d2
push str.PcFaxTxScanPage_ScanBtnPict
call fcn.005080c0
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x10]
xor edi, edi
cmp ecx, edi
jne 0x4972e8
mov ecx, 0x54ee24
mov dword [ebp - 0x14], edi
cmp dword [esi + 8], edi
jle 0x49731a
cmp ecx, edi
je 0x49731a
cmp word [ecx], di
je 0x49731a
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x497305
mov eax, 0x54ee24
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push edi
push str.PosiX
push ecx
call ebx
mov dword [ebp - 0x14], eax
jmp 0x497320
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x49732c
mov ecx, 0x54ee24
mov dword [ebp - 0x10], edi
cmp dword [esi + 8], edi
jle 0x497356
cmp ecx, edi
je 0x497356
cmp word [ecx], di
je 0x497356
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x497349
mov eax, 0x54ee24
push eax
push edi
push str.PosiY
push ecx
call ebx
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x497362
mov ecx, 0x54ee24
mov dword [ebp - 0x20], edi
cmp dword [esi + 8], edi
jle 0x49738c
cmp ecx, edi
je 0x49738c
cmp word [ecx], di
je 0x49738c
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x49737f
mov eax, 0x54ee24
push eax
push edi
push str.Width
push ecx
call ebx
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x497398
mov ecx, 0x54ee24
mov dword [ebp - 0x24], edi
cmp dword [esi + 8], edi
jle 0x4973c2
cmp ecx, edi
je 0x4973c2
cmp word [ecx], di
je 0x4973c2
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x4973b5
mov eax, 0x54ee24
push eax
push edi
push str.Height
push ecx
call ebx
mov dword [ebp - 0x24], eax
mov eax, dword [0x577698]
mov ebx, dword [sym.imp.USER32.dll_LoadImageW]
xor edi, edi
test eax, eax
je 0x4973fd
push 0x80
push edi
push edi
push edi
push 0xc7cd
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4973f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov edi, esi
jmp 0x497407
mov dword [0x57768c], 0x57
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x497440
push 0x80
push 0
push 0
push 0
push 0xc7ce
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x497436
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp - 0x1c], esi
jmp 0x49744a
mov dword [0x57768c], 0x57
mov dword [ebp - 0x18], 0
test eax, eax
je 0x497483
push 0x80
push 0
push 0
push 0
push 0xc7cf
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x497479
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp - 0x18], esi
jmp 0x49748d
mov dword [0x57768c], 0x57
xor ebx, ebx
test eax, eax
je 0x4974bf
push 0x80
push ebx
push ebx
push ebx
push 0xc7d8
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
test ebx, ebx
jne 0x4974b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
jmp 0x4974c9
mov dword [0x57768c], 0x57
xor ecx, ecx
test eax, eax
je 0x4974f8
push 0x80
push ecx
push ecx
push ecx
push 0xc7d9
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
test esi, esi
jne 0x4974f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov ecx, esi
jmp 0x497502
mov dword [0x57768c], 0x57
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x7bc], edx
mov edx, dword [ebp - 0x14]
mov dword [esi + 0x7c0], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x7b4], edi
mov dword [esi + 0x7b8], edi
mov dword [esi + 0x808], edx
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x80c], eax
mov eax, dword [ebp - 0x24]
xor edi, edi
cmp byte [ebp + 0x14], 0
mov dword [esi + 0x810], edx
mov dword [esi + 0x814], eax
mov dword [esi + 0x818], edi
mov dword [esi + 0x81c], edi
mov dword [esi + 0x820], edx
mov dword [esi + 0x824], eax
mov word [esi + 0x7a5], 0x101
mov dword [esi + 0x7c4], ebx
mov dword [esi + 0x7c8], ecx
je 0x49758d
mov ebx, esi
push str.PcFaxTxScanPage_Mini_ScanBtnWnd
lea eax, [ebx + 0x4c]
call fcn.005080c0
jmp 0x49759e
mov eax, esi
push str.PcFaxTxScanPage_ScanBtnWnd
add eax, 0x4c
call fcn.005080c0
mov ebx, esi
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
jne 0x4975aa
mov ecx, 0x54ee24
mov dword [ebp - 0x20], edi
cmp dword [ebx + 0x44], edi
jle 0x4975d9
test ecx, ecx
je 0x4975d9
cmp word [ecx], di
je 0x4975d9
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x4975c7
mov eax, 0x54ee24
push eax
push 0
push str.PosiX
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
jne 0x4975e5
mov ecx, 0x54ee24
xor edi, edi
cmp dword [ebx + 0x44], edi
jle 0x497612
test ecx, ecx
je 0x497612
cmp word [ecx], di
je 0x497612
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x497601
mov eax, 0x54ee24
push eax
push 0
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
jne 0x49761e
mov ecx, 0x54ee24
cmp dword [ebx + 0x44], 0
mov dword [ebp - 0x24], 0
jle 0x497653
test ecx, ecx
je 0x497653
cmp word [ecx], 0
je 0x497653
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x497641
mov eax, 0x54ee24
push eax
push 0
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
jne 0x49765f
mov ecx, 0x54ee24
xor ebx, ebx
mov eax, esi
cmp dword [eax + 0x44], ebx
jle 0x49768e
test ecx, ecx
je 0x49768e
cmp word [ecx], bx
je 0x49768e
mov eax, dword [eax + 0x40]
test eax, eax
jne 0x49767d
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
push 0x2af9
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, 0x5776a0
call fcn.00471380
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00508010
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4976c1
push eax
call fcn.0051eadb
add esp, 4
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 8]
mov dword [edx + 0x7a0], 0
test eax, eax
jne 0x4976da
mov eax, 0x54ee24
mov ecx, dword [ebp - 0x24]
sub edi, dword [edx + 0x13d4]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x20]
push edi
push ecx
push 0
push eax
push 0x17ea
push edx
mov eax, 0x10000000
lea ecx, [esi + 0x5e0]
call fcn.0043b720
cmp byte [ebp + 0x14], 0
je 0x497721
mov edi, dword [ebp + 8]
push str.PcFaxTxScanPage_Mini_ClearBtnWnd
lea eax, [edi + 0x4c]
call fcn.005080c0
jmp 0x497734
mov eax, dword [ebp + 8]
push str.PcFaxTxScanPage_ClearBtnWnd
add eax, 0x4c
call fcn.005080c0
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x497740
mov ecx, 0x54ee24
cmp dword [edi + 0x44], 0
mov dword [ebp + 0x14], 0
jle 0x497779
test ecx, ecx
je 0x497779
cmp word [ecx], 0
je 0x497779
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x497763
mov eax, 0x54ee24
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0
push str.PosiX
push ecx
call esi
mov dword [ebp + 0x14], eax
jmp 0x49777f
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x49778b
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [edi + 0x44], ebx
jle 0x4977b4
test ecx, ecx
je 0x4977b4
cmp word [ecx], bx
je 0x4977b4
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x4977a7
mov eax, 0x54ee24
push eax
push 0
push str.PosiY
push ecx
call esi
mov ebx, eax
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x4977c0
mov ecx, 0x54ee24
cmp dword [edi + 0x44], 0
mov dword [ebp + 8], 0
jle 0x4977f1
test ecx, ecx
je 0x4977f1
cmp word [ecx], 0
je 0x4977f1
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x4977e3
mov eax, 0x54ee24
push eax
push 0
push str.Width
push ecx
call esi
mov dword [ebp + 8], eax
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x4977fd
mov ecx, 0x54ee24
xor esi, esi
cmp dword [edi + 0x44], esi
jle 0x49782a
test ecx, ecx
je 0x49782a
cmp word [ecx], si
je 0x49782a
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x497819
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
push 0x80fc
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x5776a0
call fcn.00471380
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00508010
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x497868
push eax
call fcn.0051eadb
add esp, 4
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0xa4c], 0
test eax, eax
jne 0x49787e
mov eax, 0x54ee24
mov ecx, dword [ebp + 8]
sub ebx, dword [edi + 0x13d4]
mov edx, dword [ebp + 0x14]
push esi
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edx
push 0
push eax
mov eax, dword [ebp + 0xc]
push 0x17f6
push eax
lea ecx, [edi + 0x88c]
mov eax, 0x10000000
call fcn.0043b720
mov eax, edi
call fcn.004965a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4978cb
push eax
call fcn.0051eadb
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10