Function at 0x506180
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 2
lea eax, [esi + 0x4c]
jne 0x506194
push str.AdvDevStatus_Text
jmp 0x506199
push str.HomeDevStatus_Text
call fcn.005080c0
mov eax, dword [esi + 0x4c]
push ebx
push edi
xor edi, edi
mov ecx, eax
cmp eax, edi
jne 0x5061b0
mov ecx, 0x54ee24
mov dword [ebp - 4], edi
cmp dword [esi + 0x44], edi
jle 0x5061de
cmp ecx, edi
je 0x5061de
cmp word [ecx], di
je 0x5061de
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x5061cd
mov eax, 0x54ee24
push eax
push edi
push str.PosiX
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x5061ea
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], edi
jle 0x506216
cmp ecx, edi
je 0x506216
cmp word [ecx], di
je 0x506216
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x506206
mov eax, 0x54ee24
push eax
push edi
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x506222
mov ecx, 0x54ee24
cmp dword [esi + 0x44], edi
jle 0x50624d
test ecx, ecx
je 0x50624d
cmp word [ecx], di
je 0x50624d
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x50623c
mov eax, 0x54ee24
push eax
push 0
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x506259
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 0x44], eax
jle 0x506284
test ecx, ecx
je 0x506284
cmp word [ecx], ax
je 0x506284
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x506275
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [ebp + 8], 2
mov ecx, dword [ebp - 4]
mov byte [esi + 0x248], 1
mov dword [esi + 0x118], eax
mov dword [esi + 0x10c], ecx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], edi
lea eax, [esi + 0x4c]
jne 0x5062b6
push str.AdvDevStatus_Bar
jmp 0x5062bb
push str.HomeDevStatus_Bar
call fcn.005080c0
mov ecx, dword [esi + 0x4c]
xor ebx, ebx
cmp ecx, ebx
jne 0x5062ce
mov ecx, 0x54ee24
mov dword [ebp + 8], ebx
cmp dword [esi + 0x44], ebx
jle 0x506300
cmp ecx, ebx
je 0x506300
cmp word [ecx], bx
je 0x506300
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x5062eb
mov eax, 0x54ee24
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push ebx
push str.PosiX
push ecx
call edi
mov dword [ebp + 8], eax
jmp 0x506306
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x506312
mov ecx, 0x54ee24
mov dword [ebp - 4], ebx
cmp dword [esi + 0x44], ebx
jle 0x50633c
cmp ecx, ebx
je 0x50633c
cmp word [ecx], bx
je 0x50633c
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x50632f
mov eax, 0x54ee24
push eax
push ebx
push str.PosiY
push ecx
call edi
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x506348
mov ecx, 0x54ee24
cmp dword [esi + 0x44], ebx
jle 0x50636f
test ecx, ecx
je 0x50636f
cmp word [ecx], bx
je 0x50636f
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x506362
mov eax, 0x54ee24
push eax
push 0
push str.Width
push ecx
call edi
mov ebx, eax
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x50637b
mov ecx, 0x54ee24
xor edi, edi
cmp dword [esi + 0x44], edi
jle 0x5063a8
test ecx, ecx
je 0x5063a8
cmp word [ecx], di
je 0x5063a8
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x506397
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x5063b4
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 0x44], eax
jle 0x5063df
test ecx, ecx
je 0x5063df
cmp word [ecx], ax
je 0x5063df
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x5063d0
mov eax, 0x54ee24
push eax
push 0
push str.OffsetX
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x3e4], edi
pop edi
mov dword [esi + 0x3e0], ebx
mov dword [esi + 0x3d8], edx
mov dword [esi + 0x3dc], ecx
mov dword [esi + 0x3e8], eax
pop ebx
mov esp, ebp
pop ebp
ret 4