Function at 0x4bf8b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4bfb4f
mov ecx, dword [edi + 0x90]
push ebx
push esi
lea esi, [edi + 0x90]
test ecx, 0x100
je 0x4bf8df
mov ebx, 1
jmp 0x4bf8fa
push dword [edi + 4]
push dword [edi + 8]
push 0x4f166c
call fcn.004c91b0
mov ecx, dword [esi]
add esp, 0xc
neg eax
sbb ebx, ebx
neg ebx
cmp dword [ebp + 0x10], 0
mov dword [ebp + 8], ebx
je 0x4bf90a
mov eax, ecx
or eax, dword [ebp + 0xc]
jmp 0x4bf911
mov eax, dword [ebp + 0xc]
not eax
and eax, ecx
xor ecx, eax
mov dword [esi], eax
mov dword [ebp - 4], ecx
test ecx, 0xf000
jne 0x4bf931
mov eax, dword [edi + 0x94]
and eax, 1
cmp ebx, eax
je 0x4bfb4d
mov eax, ebx
mov dword [edi + 0x94], ebx
not eax
and eax, 1
push eax
push 0x8000
push esi
call fcn.00481a00
add esp, 0xc
test dword [ebp - 4], 0x4000
je 0x4bf9dd
mov esi, dword [0x58fbf8]
xor ebx, ebx
cmp dword [esi], ebx
jle 0x4bf9c8
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*4]
xor eax, eax
mov dword [ebp + 8], ecx
mov edx, dword [ecx + 0xc]
test edx, edx
jle 0x4bf98f
mov ecx, dword [ecx + 0x10]
nop dword [eax + eax]
cmp edi, dword [ecx]
je 0x4bf98c
inc eax
add ecx, 4
cmp eax, edx
jl 0x4bf980
mov ecx, dword [ebp + 8]
cmp eax, edx
jge 0x4bf9c3
mov eax, dword [edi + 0x90]
lea esi, [ecx + 0x1c]
and eax, 0x50
push eax
push 8
push esi
call fcn.00481a00
mov eax, dword [edi + 0x90]
and eax, 0x20
push eax
push 0x10
push esi
call fcn.00481a00
mov esi, dword [0x58fbf8]
add esp, 0x18
inc ebx
cmp ebx, dword [esi]
jl 0x4bf966
push 0
push 0
push 0
call fcn.004c0410
add esp, 0xc
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x98]
test ecx, ecx
je 0x4bfa29
test dword [esi], 0x1000
jne 0x4bf9fa
test ebx, ebx
je 0x4bf9fa
mov eax, 1
jmp 0x4bf9fc
xor eax, eax
push eax
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
test dword [ebp - 4], 0x2000
je 0x4bfa29
mov eax, dword [esi]
push 0
shr eax, 0xd
and eax, 1
push eax
push 0xf1
push dword [edi + 0x98]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x58fbf8]
xor ebx, ebx
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
test ecx, ecx
jle 0x4bfb4d
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov esi, dword [eax]
cmp dword [esi + 0x24], 0
jne 0x4bfa51
cmp dword [esi + 0x28], 0
je 0x4bfa76
mov edx, dword [esi + 0xc]
xor ecx, ecx
test edx, edx
jle 0x4bfa6f
mov eax, dword [esi + 0x10]
nop dword [eax]
cmp edi, dword [eax]
je 0x4bfa6c
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4bfa60
mov eax, dword [ebp - 8]
cmp ecx, edx
jl 0x4bfa88
mov ecx, dword [ebp - 0xc]
inc ebx
add eax, 4
mov dword [ebp - 8], eax
cmp ebx, ecx
jl 0x4bfa43
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x24], 0
mov edx, dword [sym.imp.USER32.dll_EnableMenuItem]
mov ebx, dword [ebp + 8]
je 0x4bfac8
test dword [edi + 0x90], 0x1000
jne 0x4bfaab
test ebx, ebx
je 0x4bfaab
xor eax, eax
jmp 0x4bfab0
mov eax, 1
push eax
mov eax, dword [edi + 0xb0]
add eax, 0x10000000
push eax
push dword [esi + 0x24]
call edx
mov edx, dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x4bfaf8
test dword [edi + 0x90], 0x1000
jne 0x4bfae3
test ebx, ebx
je 0x4bfae3
xor eax, eax
jmp 0x4bfae8
mov eax, 1
push eax
mov eax, dword [edi + 0xb0]
add eax, 0x10000000
push eax
push ecx
call edx
test dword [ebp - 4], 0x2000
je 0x4bfb4d
mov ecx, dword [esi + 0x24]
mov ebx, dword [sym.imp.USER32.dll_CheckMenuItem]
test ecx, ecx
je 0x4bfb2a
mov eax, dword [edi + 0x90]
shr eax, 0xa
and eax, 8
push eax
mov eax, dword [edi + 0xb0]
add eax, 0x10000000
push eax
push ecx
call ebx
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x4bfb4d
mov eax, dword [edi + 0x90]
shr eax, 0xa
and eax, 8
push eax
mov eax, dword [edi + 0xb0]
add eax, 0x10000000
push eax
push ecx
call ebx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret