Function at 0x505550
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a1d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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 edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0x14], 2
lea esi, [edi + 0x3c]
push esi
jne 0x505622
mov ecx, str.BrCcAdvnc.sdd
call fcn.00470370
push str.AdvDevStatus_Button
lea eax, [edi + 0x4c]
call fcn.005080c0
mov eax, dword [esi + 0x10]
mov ecx, eax
test eax, eax
jne 0x5055b0
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x5055db
test ecx, ecx
je 0x5055db
cmp word [ecx], ax
je 0x5055db
mov eax, dword [esi + 4]
test eax, eax
jne 0x5055cc
mov eax, 0x54ee24
push eax
push 0
push str.PosiX
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov eax, dword [esi + 0x10]
mov ecx, eax
test eax, eax
jne 0x5055eb
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x505616
test ecx, ecx
je 0x505616
cmp word [ecx], ax
je 0x505616
mov eax, dword [esi + 4]
test eax, eax
jne 0x505607
mov eax, 0x54ee24
push eax
push 0
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp + 0x18], eax
mov byte [edi + 0x468], 1
jmp 0x50563f
mov ecx, str.BrCcHome.sdd
call fcn.00470370
push str.HomeDevStatus_Button
lea eax, [edi + 0x4c]
call fcn.005080c0
mov byte [edi + 0x468], bl
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x50564b
mov ecx, 0x54ee24
cmp dword [esi + 8], 0
mov dword [ebp - 0x14], 0
jle 0x505680
test ecx, ecx
je 0x505680
cmp word [ecx], 0
je 0x505680
mov eax, dword [esi + 4]
test eax, eax
jne 0x50566e
mov eax, 0x54ee24
push eax
push 0
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x50568c
mov ecx, 0x54ee24
cmp dword [esi + 8], 0
mov dword [ebp - 0x10], 0
jle 0x5056c1
test ecx, ecx
je 0x5056c1
cmp word [ecx], 0
je 0x5056c1
mov eax, dword [esi + 4]
test eax, eax
jne 0x5056af
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push edi
push 0x2332
push eax
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ebx
push 0
push 0x50000000
push 0
mov eax, str.ControlCenter4_wChildWndCls
mov edx, edi
call fcn.0051bcc0
mov ecx, dword [ebp + 0x10]
mov ebx, eax
mov dword [ebp + 0x18], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ecx
mov byte [edi + 0x38], 1
test ebx, ebx
je 0x505878
cmp dword [ebp + 0x14], 2
push esi
mov ecx, str.BrCcAdvnc.sdd
je 0x50571b
mov ecx, str.BrCcHome.sdd
call fcn.00470370
mov edx, dword [ebp + 0x14]
push edx
mov esi, edi
call fcn.00506180
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.00506410
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.005065c0
push esi
mov eax, edi
call fcn.00506750
xor eax, eax
push str.Status_Monitor
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
xor eax, eax
cmp esi, eax
jle 0x5057a9
mov ecx, esi
lea ebx, [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.00507c00
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
cmp ecx, eax
je 0x5057a9
mov edx, dword [ebp - 0x24]
lea ecx, [esi + 1]
push ecx
push str.Status_Monitor
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x20], esi
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x24]
cmp edx, eax
jne 0x5057b8
mov edx, 0x54ee24
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
push ebx
lea esi, [edi + 0x84]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
call fcn.00441a90
mov esi, eax
test esi, esi
je 0x505861
mov eax, dword [0x5776b8]
and eax, 0x3ff
dec eax
cmp eax, 0x59
ja case.0x5057f2.2
movzx ecx, byte [eax + 0x505898]
jmp dword [ecx*4 + 0x505890]
mov byte [ebp + 0x14], 1
jmp 0x505803
mov byte [ebp + 0x14], 0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
lea eax, [edi + 0x5c]
push ecx
mov ecx, 0x40
mov dword [ebp + 0x10], eax
call fcn.00511ef0
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x505827
mov edi, 0x54ee24
mov ecx, dword [ebp + 0x10]
call fcn.00511f60
mov edi, dword [ebp + 8]
lea eax, [edi + 0x428]
call fcn.005052a0
push edi
call fcn.00506000
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x18]
push esi
push edx
push 0x832c
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x505878
push eax
call fcn.0051ebab
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14