Function at 0x2781bb9d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x140]
push 0x105
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
xor ebx, ebx
mov esi, eax
cmp byte [ebp - 0x140], bl
jne 0x2781bbeb
lea eax, [ebp - 0x140]
push 0x277cba70
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x27829088]
mov ecx, dword [0x2782906c]
add eax, eax
mov dword [ebp - 4], ebx
sub ecx, eax
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
je 0x2781bd8a
cmp dword [0x27828f70], 0x3b5
mov eax, 0x2c11
jne 0x2781bc4b
cmp dword [0x27828f6c], ebx
jne 0x2781bc46
cmp dword [0x27829874], ebx
je 0x2781bc4b
mov eax, 0x82c11
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x140]
push esi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [0x2782906c]
push 4
cdq
pop ecx
idiv ecx
cmp dword [ebp - 8], eax
jge 0x2781bc74
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], ebx
mov edi, dword [ebp + 0xc]
je 0x2781bd94
mov ecx, dword [edi + 4]
cmp dword [ebp + 0x14], ebx
je 0x2781bdb0
mov eax, dword [edi + 8]
mov esi, dword [edi]
add eax, dword [ebp - 0x10]
sub eax, dword [ebp - 8]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [ebp + 0x14], ebx
jne 0x2781bcc0
mov eax, dword [ebp - 8]
mov ecx, dword [0x27829088]
lea eax, [eax + ecx*4]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xb2
push dword [ebp + 8]
call esi
push ebx
push ebx
push 0xd4
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x278290a8]
shr eax, 0x10
add ecx, edx
movsx eax, ax
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, eax
lea eax, [ebp - 0x10]
add ecx, dword [0x2782908c]
push ecx
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [ebp + 8]
mov eax, dword [0x278290a8]
add dword [ebp - 8], eax
push esi
call dword [sym.imp.USER32.dll_HideCaret]
mov eax, dword [ebp - 4]
push 0x114
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_CopyRect]
push 1
push ebx
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call dword [sym.imp.USER32.dll_ShowCaret]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, 0x2c21
jmp 0x2781bc4b
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 4]
add eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
sub eax, esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, esi
jmp 0x2781bc83
mov eax, dword [edi]
jmp 0x2781bca0