Function at 0x5061b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 2
lea eax, [esi + 0x4c]
jne 0x5061c4
push str.AdvDevStatus_Text
jmp 0x5061c9
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 0x5061e0
mov ecx, 0x54ee24
mov dword [ebp - 4], edi
cmp dword [esi + 0x44], edi
jle 0x50620e
cmp ecx, edi
je 0x50620e
cmp word [ecx], di
je 0x50620e
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x5061fd
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 0x50621a
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], edi
jle 0x506246
cmp ecx, edi
je 0x506246
cmp word [ecx], di
je 0x506246
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x506236
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 0x506252
mov ecx, 0x54ee24
cmp dword [esi + 0x44], edi
jle 0x50627d
test ecx, ecx
je 0x50627d
cmp word [ecx], di
je 0x50627d
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x50626c
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 0x506289
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 0x44], eax
jle 0x5062b4
test ecx, ecx
je 0x5062b4
cmp word [ecx], ax
je 0x5062b4
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x5062a5
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 0x5062e6
push str.AdvDevStatus_Bar
jmp 0x5062eb
push str.HomeDevStatus_Bar
call fcn.005080c0
mov ecx, dword [esi + 0x4c]
xor ebx, ebx
cmp ecx, ebx
jne 0x5062fe
mov ecx, 0x54ee24
mov dword [ebp + 8], ebx
cmp dword [esi + 0x44], ebx
jle 0x506330
cmp ecx, ebx
je 0x506330
cmp word [ecx], bx
je 0x506330
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x50631b
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 0x506336
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x506342
mov ecx, 0x54ee24
mov dword [ebp - 4], ebx
cmp dword [esi + 0x44], ebx
jle 0x50636c
cmp ecx, ebx
je 0x50636c
cmp word [ecx], bx
je 0x50636c
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x50635f
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 0x506378
mov ecx, 0x54ee24
cmp dword [esi + 0x44], ebx
jle 0x50639f
test ecx, ecx
je 0x50639f
cmp word [ecx], bx
je 0x50639f
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x506392
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 0x5063ab
mov ecx, 0x54ee24
xor edi, edi
cmp dword [esi + 0x44], edi
jle 0x5063d8
test ecx, ecx
je 0x5063d8
cmp word [ecx], di
je 0x5063d8
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x5063c7
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 0x5063e4
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 0x44], eax
jle 0x50640f
test ecx, ecx
je 0x50640f
cmp word [ecx], ax
je 0x50640f
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x506400
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