Function at 0x4cbb8d
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4f2e40
call fcn.0047b598
sub esp, 0x49c
push ebx
push esi
push edi
mov esi, ecx
push str.IsOwnerDraw
mov dword [ebp - 0x30], esi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetPropA]
xor ebx, ebx
cmp eax, ebx
je 0x4cbbc8
push dword [ebp + 8]
mov ecx, esi
call fcn.004cc1ac
jmp 0x4cc0d2
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
sub esp, 0x10
lea esi, [ebp - 0x2c]
mov edi, esp
lea ecx, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00491e1b
mov edi, dword [ebp - 0x30]
mov dword [ebp - 4], ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov esi, eax
mov eax, dword [edi + 0x70]
neg esi
sbb esi, esi
inc esi
cmp dword [eax + 0x210], ebx
je 0x4cbc36
mov ecx, edi
call fcn.004bf8a8
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x4cbc29
push ebx
push eax
push dword [ebp - 0x60]
mov ecx, edi
call fcn.004c0c7b
jmp 0x4cbc8a
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.004c0d13
jmp 0x4cbc8a
cmp dword [eax + 0x218], ebx
je 0x4cbc66
mov ecx, esi
push 1
imul ecx, ecx, 0x148
push 0xff00ff
lea eax, [ecx + eax + 0x214]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x60]
call fcn.004a9dee
add esp, 0x14
jmp 0x4cbc8a
push dword [eax + esi*4 + 0x4a4]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
push 2
push ebx
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp + 8], eax
mov al, byte [0x534198]
mov byte [ebp - 0x4a8], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4a7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x4a8]
push 0x3ff
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
imul esi, esi, 0x2c
mov eax, dword [edi + 0x70]
push 0xb
pop ecx
lea edi, [ebp - 0xa8]
lea esi, [esi + eax + 0x4ac]
rep movsd dword es:[edi], dword [esi]
cmp dword [eax + 0x578], ebx
jne 0x4cbd24
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
push 2
and eax, 1
pop ecx
and edx, ecx
mov dword [ebp - 0x38], edx
jne 0x4cbd07
xor ecx, ecx
cmp eax, ebx
setne cl
mov eax, dword [ebp + 8]
push 0
and eax, 0x200
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x38], eax
pop eax
setne al
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x4a8]
push eax
call fcn.0047baa0
test eax, eax
pop ecx
jbe 0x4cbe02
lea eax, [ebp - 0x4a8]
lea ecx, [ebp - 0x34]
push eax
call fcn.0049000c
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
push 1
push eax
lea eax, [ebp - 0xa8]
mov ecx, dword [0x53c2f4]
push eax
mov eax, dword [esi + 0x70]
add eax, 0x504
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x60]
call fcn.00494459
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.0048ffe3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x2c]
cmp eax, ecx
jg 0x4cbda6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x28]
cmp eax, ecx
jle 0x4cbe05
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
push dword [esi + 4]
call fcn.004c12b0
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, esi
call fcn.004c128e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x2c]
cmp eax, ecx
jg 0x4cbddb
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x28]
cmp ecx, edx
jg 0x4cbded
mov ecx, edx
push 1
push ecx
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x4cbe05
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
and eax, 0x1f
cmp eax, 8
jg 0x4cbeaf
je 0x4cbe9f
sub eax, 3
je 0x4cbe5f
dec eax
je 0x4cbe34
dec eax
je 0x4cbe30
dec eax
jne 0x4cc0c6
push 5
jmp 0x4cbe36
push 0x10
jmp 0x4cbe36
push 0xc
call fcn.00491647
pop ecx
push eax
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
push 2
push ebx
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x4cc0c6
push ebx
push ebx
push 0x171
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
je 0x4cc0c6
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x2c]
push 3
push ecx
push edx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_DrawStateA]
jmp 0x4cc0c6
push 0x10
call fcn.00491647
mov esi, eax
push 0x10
jmp 0x4cc0a1
cmp eax, 9
je 0x4cc096
cmp eax, 0xe
je 0x4cbf74
cmp eax, 0x12
jne 0x4cc0c6
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x14
pop esi
push esi
call fcn.00491647
push esi
mov edi, eax
call fcn.00491647
pop ecx
pop ecx
push edi
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x60]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004c2e38
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push esi
call fcn.00491647
push esi
mov edi, eax
call fcn.00491647
pop ecx
pop ecx
push edi
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x60]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004c2e38
dec dword [ebp - 0x1c]
dec dword [ebp - 0x18]
push 0x10
call fcn.00491647
push 0x10
mov esi, eax
call fcn.00491647
pop ecx
pop ecx
push esi
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
jmp 0x4cc0be
push ebx
push ebx
push 0x173
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
mov dword [ebp - 0x38], eax
je 0x4cc0c6
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test byte [ebp + 9], 2
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x4cbfdf
lea ecx, [ebp - 0x7c]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x78]
sub eax, edi
mov esi, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x74]
cdq
sub eax, edx
sar eax, 1
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add edi, eax
mov eax, dword [ebp - 0x10]
sub eax, esi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov dword [ebp - 0x18], esi
add esi, ecx
jmp 0x4cbfe5
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp + 8], eax
sub esi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x1c]
push esi
push edi
push dword [ebp - 0x60]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x3c], eax
call esi
mov edi, eax
mov dword [ebp - 0x64], edi
push 4
mov byte [ebp - 4], 4
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push ebx
push ebx
push ebx
push dword [ebp - 0x38]
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawStateA]
mov eax, dword [ebp - 0x60]
push 0xf
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0xcc0020
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x38]
call fcn.004a9127
add esp, 0x28
push edi
push dword [ebp + 8]
call esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp edi, ebx
je 0x4cc07c
push edi
call esi
cmp dword [ebp - 0x3c], ebx
je 0x4cc086
push dword [ebp - 0x3c]
call esi
cmp dword [ebp + 8], ebx
je 0x4cc0c6
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x4cc0c6
push 5
call fcn.00491647
mov esi, eax
push 5
call fcn.00491647
pop ecx
pop ecx
push esi
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x60]
call fcn.004c2e38
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00491ea6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4