Function at 0x416598
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
push 0x4e4b90
push 0x3e7
push 0xd
mov eax, dword [ebp + 0xc]
push eax
call sub.USER32.dll_SendMessageA
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov byte [edx + 0x4e4b90], 0
cmp dword [ebp - 8], 0
jne 0x4165d5
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, ecx
jmp 0x4166ca
push 0
push 0
push 0xb0
mov eax, dword [ebp + 0xc]
push eax
call sub.USER32.dll_SendMessageA
mov ebx, eax
movzx eax, bx
mov dword [ebp - 0x10], eax
push 0x4e4b90
call fcn.004bceac
pop ecx
cmp eax, dword [ebp - 0x10]
jae 0x416604
xor edx, edx
mov dword [ebp - 0x10], edx
mov esi, ebx
shr esi, 0x10
and si, 0xffff
movzx esi, si
push 0x4e4b90
call fcn.004bceac
pop ecx
cmp esi, eax
jbe 0x416622
xor esi, esi
mov eax, dword [ebp + 0xc]
push eax
call sub.USER32.dll_GetDC
mov edi, eax
mov eax, dword [0x4d42a8]
push eax
call fcn.004b7934
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x416654
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x548]
push ecx
push edi
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x4e4b90], 0
push 0x4e4b90
call fcn.004bceac
pop ecx
push eax
push 0x4e4b90
push edi
call fcn.0048d498
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x4e4b90], 0x20
cmp esi, dword [ebp - 8]
jae 0x41668f
mov byte [esi + 0x4e4b91], 0
jmp 0x416696
mov byte [esi + 0x4e4b90], 0
push 0x4e4b90
call fcn.004bceac
pop ecx
push eax
push 0x4e4b90
push edi
call fcn.0048d498
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
je 0x4166c0
mov edx, dword [ebp - 0x14]
push edx
push edi
call sub.GDI32.dll_SelectObject
push edi
mov ecx, dword [ebp + 0xc]
push ecx
call sub.USER32.dll_ReleaseDC
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.USER32.dll_GetWindowRect
mov eax, dword [ebp - 0x24]
add ebx, eax
add dword [ebp - 4], eax
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_GetWindowRect
mov esi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x28]
sub edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
sub eax, edi
add eax, 0xfffffffd
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 4]
sub edx, ebx
mov eax, esi
sub eax, edx
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x416729
mov ecx, 2
mov eax, dword [ebp - 0x34]
cdq
idiv ecx
mov dword [ebp - 0x34], eax
sub ebx, dword [ebp - 0x34]
mov dword [ebp - 0x34], ebx
jmp 0x41673a
mov ecx, 0xfffffffe
mov eax, dword [ebp - 0x34]
cdq
idiv ecx
mov dword [ebp - 0x34], eax
add dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x34]
jle 0x41674a
mov edx, eax
add edx, 3
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x34]
add ecx, esi
mov edx, dword [ebp - 0x1c]
sub edx, eax
add edx, eax
cmp ecx, edx
jle 0x41676b
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x24]
sub eax, esi
add eax, 0xfffffffd
mov dword [ebp - 0x34], eax
push 0
push edi
push esi
mov ecx, dword [ebp - 0x30]
push ecx
mov eax, dword [ebp - 0x34]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_MoveWindow
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8