Function at 0x4bc8e0
Capabilities:
Get graphical window text
Read .ini file

Disassembly:
sub esp, 0xb0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ebp
push esi
push edi
push 0x5b9260
push 0
push str.ViewMode
push 0x59a1bc
call ebx
push 2
mov dword [0x59f758], eax
call fcn.004c5330
add esp, 4
mov esi, eax
mov eax, dword [0x5b5554]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4bc949
mov edx, dword [0x5b5554]
lea ecx, [esp + 0x10]
push ecx
push edx
call edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub eax, edx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
mov ecx, dword [0x5b554c]
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x10]
push eax
push ecx
call ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
sub eax, ecx
push 0
cdq
mov ecx, eax
mov eax, 0x66666667
xor ecx, edx
sub ecx, edx
imul ecx
mov ecx, dword [0x5b550c]
sar edx, 1
mov eax, edx
push ecx
mov ecx, dword [esp + 0x24]
push 0x3e6
shr eax, 0x1f
add edx, eax
mov eax, dword [0x5b554c]
push eax
mov eax, dword [esp + 0x24]
sub ecx, eax
sub ecx, esi
add ecx, 3
push ecx
push edx
push esi
push 0
push 0x5000002f
push 0x5aae60
push str.SysTreeView32
push 0x20000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x5b5550], eax
mov eax, dword [0x5b561c]
test eax, eax
je 0x4bc9e6
call fcn.004c5cb0
test eax, eax
je 0x4bc9e6
mov edx, dword [0x5b5550]
push edx
call fcn.00443c50
add esp, 4
mov eax, dword [0x5b5504]
test eax, eax
je 0x4bc9f6
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
push 6
push 0xf
push 0x10
push 0xff00ff
call fcn.004bc760
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x10
mov dword [0x5b5504], eax
push eax
mov eax, dword [0x5b5550]
push 0
push 0x1109
push eax
call esi
mov edx, dword [0x5b5550]
lea ecx, [esp + 0x10]
push ecx
push edx
call edi
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x5b554c]
sub eax, edx
cdq
mov edi, eax
lea eax, [esp + 0x10]
xor edi, edx
push eax
push ecx
sub edi, edx
call ebp
push 0x5b9260
push 0xffffffffffffffff
push str.TreeW
push 0x59a1bc
call ebx
mov ebx, eax
test ebx, ebx
jge 0x4bca8d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
sub eax, ecx
cdq
mov ecx, eax
mov eax, 0x66666667
xor ecx, edx
sub ecx, edx
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
push 1
push 2
call fcn.004c5330
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
sub ecx, edx
mov edx, dword [0x5b5550]
sub ecx, edi
add esp, 4
add eax, ecx
push eax
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_MoveWindow]
push 0
push edx
call edi
test ebx, ebx
jne 0x4bcacc
mov eax, dword [0x5b5550]
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
sub ecx, eax
push 1
push ecx
push 4
call fcn.004c5330
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
sub edx, ecx
add esp, 4
sub edx, ebx
sub edx, eax
push edx
push 0
push 4
call fcn.004c5330
add esp, 4
add eax, ebx
push eax
mov eax, dword [0x5b54fc]
push eax
call edi
mov eax, dword [0x5b561c]
test eax, eax
je 0x4bcb84
mov ecx, dword [0x5b54fc]
mov dword [0x59f710], 0x202020
push ecx
call fcn.00443be0
mov edx, dword [0x5b5550]
add esp, 4
push 0xdcdcdc
push 0
push 0x111e
push edx
call esi
mov eax, dword [0x5b54fc]
push 0
push 0
push 0x104e
push eax
call esi
mov edi, eax
push 0x5aae60
push 0x5aae60
push edi
call fcn.00446d20
add esp, 0xc
push 0
push 0x202020
push 0x413
push edi
call esi
push 0
push 0xdcdcdc
push 0x414
push edi
jmp 0x4bcba2
push 0
call fcn.004b9280
mov ecx, dword [0x5b54fc]
add esp, 4
mov dword [0x59f710], eax
push eax
push 0
push 0x1026
push ecx
call esi
mov edx, dword [0x59f710]
mov eax, dword [0x5b54fc]
push edx
push 0
push 0x1001
push eax
call esi
mov ecx, dword [0x59f710]
mov edx, dword [0x5b54fc]
push ecx
push 0
push 0x1026
push edx
call esi
mov eax, dword [0x59f710]
mov ecx, dword [0x5b5550]
push eax
push 0
push 0x111d
push ecx
call esi
mov eax, dword [0x5b54fc]
lea edx, [esp + 0x10]
push edx
push eax
call ebp
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
sub edi, ecx
mov eax, 0x55555556
imul edi
mov ecx, edx
mov eax, dword [0x5b5574]
shr ecx, 0x1f
add edx, ecx
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
add edx, edx
push 0x30
sub edi, edx
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x44]
mov dword [esp + 0x24], 0xf
push edx
push 0x4e86
push eax
call ebx
lea edx, [esp + 0x20]
xor eax, eax
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
push eax
mov eax, dword [0x5b54fc]
lea ecx, [esp + 0x48]
push 0x1061
push eax
mov dword [esp + 0x3c], ecx
call esi
mov eax, 0x55555556
push 0xd
imul edi
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov edi, edx
call fcn.004c5330
mov ecx, dword [0x5b5574]
mov edx, edi
add esp, 4
sub edx, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x28], edx
push 0x30
push eax
push 0x516
push ecx
call ebx
lea edx, [esp + 0x40]
mov eax, 1
mov dword [esp + 0x2c], edx
mov edx, dword [0x5b54fc]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x1061
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], eax
call esi
push 0x20
call fcn.004c5330
mov ecx, dword [0x5b5574]
add eax, edi
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x40]
push 0x30
push eax
push 0x4e87
push ecx
call ebx
mov ecx, dword [0x5b54fc]
lea eax, [esp + 0x20]
mov ebp, 2
push eax
push ebp
lea edx, [esp + 0x48]
push 0x1061
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x34], ebp
call esi
push 0xa
call fcn.004c5330
add esp, 4
lea edx, [esp + 0x40]
sub edi, eax
mov eax, dword [0x5b5574]
push 0x30
push edx
push 0x4e88
push eax
mov dword [esp + 0x38], edi
call ebx
mov eax, dword [0x5b54fc]
lea edx, [esp + 0x20]
push edx
push 3
lea ecx, [esp + 0x48]
push 0x1061
push eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], 3
mov dword [esp + 0x34], ebp
call esi
mov ecx, dword [0x59f758]
push ecx
call fcn.004bc330
mov eax, dword [0x59f758]
add esp, 4
cmp eax, 4
je 0x4bcd72
test eax, eax
jne 0x4bcd7c
push 5
call fcn.004bc190
add esp, 4
mov edi, dword [0x59f744]
mov eax, dword [0x5b54fc]
xor edx, edx
cmp edi, 0x32
setg dl
push edx
push 0xffffffffffffffff
push eax
call fcn.004bc690
mov ecx, dword [0x5b54fc]
add esp, 0xc
push 0x10421
push 0
push 0x1036
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret