Function at 0x4a0890
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x4d50b4]
xor eax, ebp
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0049b220
add esp, 8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x24], 0
jle 0x4a0b7e
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0xf4], 0
je 0x4a0a42
push 0x28
push 0
lea edx, [ebp - 0x60]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x28
mov eax, 0x20
mov word [ebp - 0x52], ax
mov dword [ebp - 0x50], 0
mov ecx, 1
mov word [ebp - 0x54], cx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x60]
push ecx
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x34], eax
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xd0]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004b7870
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xf4]
push eax
call fcn.004a3a40
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x4a09b2
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xf4]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.004b81c0
add esp, 0xc
jmp 0x4a0a09
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xf4]
push ecx
call fcn.004a3a30
add esp, 4
movzx edx, al
test edx, edx
je 0x4a09ef
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xf4]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004b8040
add esp, 0x18
jmp 0x4a0a09
push 0
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xf4]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004b7fd0
add esp, 0x10
push 0xcc0020
push 0
push 0
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4a0a78
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0xf0], 0
jne 0x4a0a78
push 1
lea eax, [ebp - 0x24]
push eax
push 0xc2
push 0x87
push 0x27
push 0xdb
push 0xa4
push 0x48
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004b78b0
add esp, 0x24
mov eax, dword [ebp - 0x18]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
push 0xffffffffffffffde
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_GetClassLongW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4a0aec
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x74]
and edx, 0x200
je 0x4a0aec
push 3
push 0
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x48]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x44]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x48]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
push ecx
push 8
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x44]
add ecx, 0xd
mov dword [ebp - 0x24], ecx
jmp 0x4a0af3
mov dword [ebp - 0x24], 8
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x74]
and eax, 0x400
je 0x4a0b7c
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
cmp ecx, 0x14
jle 0x4a0b7c
xor edx, edx
mov word [ebp - 0x268], dx
push 0x1fe
push 0
lea eax, [ebp - 0x266]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x268]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jle 0x4a0b7c
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x24
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x268]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x4a0bc8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x34], 0
jle 0x4a0bc8
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x274], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x270], eax
push 0xc28727
lea ecx, [ebp - 0x27c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004b7870
add esp, 0xc
mov ecx, dword [ebp - 0x64]
xor ecx, ebp
call fcn.004c3ec2
mov esp, ebp
pop ebp
ret