Function at 0x4fb000
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 2
lea eax, [esi + 0x4c]
jne 0x4fb014
push str.AdvDevStatus_Text
jmp 0x4fb019
push str.HomeDevStatus_Text
call fcn.004fcf00
mov eax, dword [esi + 0x4c]
push ebx
push edi
xor edi, edi
mov ecx, eax
cmp eax, edi
jne 0x4fb030
mov ecx, 0x538640
mov dword [ebp - 4], edi
cmp dword [esi + 0x44], edi
jle 0x4fb05e
cmp ecx, edi
je 0x4fb05e
cmp word [ecx], di
je 0x4fb05e
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x4fb04d
mov eax, 0x538640
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 0x4fb06a
mov ecx, 0x538640
xor ebx, ebx
cmp dword [esi + 0x44], edi
jle 0x4fb096
cmp ecx, edi
je 0x4fb096
cmp word [ecx], di
je 0x4fb096
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x4fb086
mov eax, 0x538640
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 0x4fb0a2
mov ecx, 0x538640
cmp dword [esi + 0x44], edi
jle 0x4fb0cd
test ecx, ecx
je 0x4fb0cd
cmp word [ecx], di
je 0x4fb0cd
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4fb0bc
mov eax, 0x538640
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 0x4fb0d9
mov ecx, 0x538640
xor eax, eax
cmp dword [esi + 0x44], eax
jle 0x4fb104
test ecx, ecx
je 0x4fb104
cmp word [ecx], ax
je 0x4fb104
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4fb0f5
mov eax, 0x538640
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 0x4fb136
push str.AdvDevStatus_Bar
jmp 0x4fb13b
push str.HomeDevStatus_Bar
call fcn.004fcf00
mov ecx, dword [esi + 0x4c]
xor ebx, ebx
cmp ecx, ebx
jne 0x4fb14e
mov ecx, 0x538640
mov dword [ebp + 8], ebx
cmp dword [esi + 0x44], ebx
jle 0x4fb180
cmp ecx, ebx
je 0x4fb180
cmp word [ecx], bx
je 0x4fb180
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x4fb16b
mov eax, 0x538640
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 0x4fb186
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x4fb192
mov ecx, 0x538640
mov dword [ebp - 4], ebx
cmp dword [esi + 0x44], ebx
jle 0x4fb1bc
cmp ecx, ebx
je 0x4fb1bc
cmp word [ecx], bx
je 0x4fb1bc
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x4fb1af
mov eax, 0x538640
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 0x4fb1c8
mov ecx, 0x538640
cmp dword [esi + 0x44], ebx
jle 0x4fb1ef
test ecx, ecx
je 0x4fb1ef
cmp word [ecx], bx
je 0x4fb1ef
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4fb1e2
mov eax, 0x538640
push eax
push 0
push str.Width
push ecx
call edi
mov ebx, eax
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x4fb1fb
mov ecx, 0x538640
xor edi, edi
cmp dword [esi + 0x44], edi
jle 0x4fb228
test ecx, ecx
je 0x4fb228
cmp word [ecx], di
je 0x4fb228
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4fb217
mov eax, 0x538640
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 0x4fb234
mov ecx, 0x538640
xor eax, eax
cmp dword [esi + 0x44], eax
jle 0x4fb25f
test ecx, ecx
je 0x4fb25f
cmp word [ecx], ax
je 0x4fb25f
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4fb250
mov eax, 0x538640
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