Function at 0x4f52e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x258
push ebx
mov ebx, dword [esp + 0x260]
push ebp
push esi
xor esi, esi
cmp ebx, esi
push edi
je 0x4f54d4
mov eax, dword [ebx + 0x24]
sub eax, dword [ebx + 0x1c]
test eax, eax
jle 0x4f54d4
mov ecx, dword [ebx + 0x28]
sub ecx, dword [ebx + 0x20]
test ecx, ecx
jle 0x4f54d4
mov edi, ebx
call fcn.004f4d70
fld dword [0x723950]
mov edx, dword [ebx + 0x14]
push ecx
fstp dword [esp]
push edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call fcn.00517660
mov ecx, dword [ebx + 0x14]
mov ebp, eax
lea eax, [esp + 0x30]
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x1603
push ecx
call esi
cmp eax, 1
jne 0x4f53b2
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
mov edx, dword [ebx + 0x10]
and dl, 4
neg dl
sbb edx, edx
and edx, 3
add edx, 1
push edx
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [ebx + 0x28]
sub edx, dword [ebx + 0x20]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
push ecx
mov ecx, dword [esp + 0x44]
sub edx, eax
mov eax, dword [ebx + 0x18]
sar edx, 1
push edx
push 5
push eax
push 0
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_DrawEx]
jmp 0x4f5414
mov edx, dword [ebx + 0x14]
push 0
push 0
push 0xf6
push edx
call esi
mov esi, eax
test esi, esi
je 0x4f5414
lea eax, [esp + 0x48]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x28]
sub edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
sub eax, dword [ebx + 0x1c]
sub edx, dword [esp + 0x50]
sub eax, dword [esp + 0x4c]
and ecx, 4
add ecx, ecx
add ecx, ecx
add ecx, ecx
or ecx, 4
push ecx
mov ecx, dword [ebx + 0x18]
push 0
push 0
sar edx, 1
push edx
sar eax, 1
push eax
push 0
push esi
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_DrawStateW]
mov eax, dword [ebx + 0x14]
push 0x103
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x60], 0
je 0x4f54d4
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
push ecx
mov ecx, dword [ebx + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebx + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 0x28]
mov dword [eax + 8], edx
lea esi, [esp + 0x74]
lea edi, [esp + 0x3c]
mov dword [eax + 0xc], ecx
call fcn.004f4e60
mov edx, dword [ebx + 0x1c]
mov eax, dword [esp + 0x10]
add edx, ebp
lea ecx, [edx + eax + 5]
mov eax, dword [ebx + 0x28]
mov edx, eax
sub edx, dword [ebx + 0x20]
mov dword [esp + 0x18], ecx
sub edx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x24]
sar edx, 1
mov dword [esp + 0x1c], edx
sub ecx, 5
xor edx, edx
test dword [ebx + 0x10], 0x100
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
je 0x4f54a2
mov edx, 0x100000
lea eax, [esp + 0x60]
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f54b0
mov ecx, dword [ebx + 0x18]
push edx
sub eax, esi
lea edx, [esp + 0x1c]
push edx
sar eax, 1
push eax
lea eax, [esp + 0x6c]
push eax
push ecx
call fcn.004026d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret 4