Function at 0x505580
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a0a8
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 0x505652
mov ecx, str.BrCcAdvnc.sdd
call fcn.00470260
push str.AdvDevStatus_Button
lea eax, [edi + 0x4c]
call fcn.005080c0
mov eax, dword [esi + 0x10]
mov ecx, eax
test eax, eax
jne 0x5055e0
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x50560b
test ecx, ecx
je 0x50560b
cmp word [ecx], ax
je 0x50560b
mov eax, dword [esi + 4]
test eax, eax
jne 0x5055fc
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 0x50561b
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x505646
test ecx, ecx
je 0x505646
cmp word [ecx], ax
je 0x505646
mov eax, dword [esi + 4]
test eax, eax
jne 0x505637
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 0x50566f
mov ecx, str.BrCcHome.sdd
call fcn.00470260
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 0x50567b
mov ecx, 0x54ee24
cmp dword [esi + 8], 0
mov dword [ebp - 0x14], 0
jle 0x5056b0
test ecx, ecx
je 0x5056b0
cmp word [ecx], 0
je 0x5056b0
mov eax, dword [esi + 4]
test eax, eax
jne 0x50569e
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 0x5056bc
mov ecx, 0x54ee24
cmp dword [esi + 8], 0
mov dword [ebp - 0x10], 0
jle 0x5056f1
test ecx, ecx
je 0x5056f1
cmp word [ecx], 0
je 0x5056f1
mov eax, dword [esi + 4]
test eax, eax
jne 0x5056df
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.0051bbf0
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 0x5058a8
cmp dword [ebp + 0x14], 2
push esi
mov ecx, str.BrCcAdvnc.sdd
je 0x50574b
mov ecx, str.BrCcHome.sdd
call fcn.00470260
mov edx, dword [ebp + 0x14]
push edx
mov esi, edi
call fcn.005061b0
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.00506440
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.005065f0
push esi
mov eax, edi
call fcn.00506780
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 0x5057d9
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 0x5057d9
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 0x5057e8
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.00441900
mov esi, eax
test esi, esi
je 0x505891
mov eax, dword [0x5776b8]
and eax, 0x3ff
dec eax
cmp eax, 0x59
ja case.0x505822.2
movzx ecx, byte [eax + 0x5058c8]
jmp dword [ecx*4 + 0x5058c0]
mov byte [ebp + 0x14], 1
jmp 0x505833
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.00511e30
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x505857
mov edi, 0x54ee24
mov ecx, dword [ebp + 0x10]
call fcn.00511ea0
mov edi, dword [ebp + 8]
lea eax, [edi + 0x428]
call fcn.005052d0
push edi
call fcn.00506030
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 0x5058a8
push eax
call fcn.0051eadb
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