Function at 0x4420c8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
push 0x577e2a
push 0x3e7
push 0xd
push dword [ebp + 0xc]
call sub.USER32.dll_SendMessageA
mov ebx, eax
test ebx, ebx
jl 0x4420f3
cmp ebx, 0x3e7
jle 0x4420f5
xor ebx, ebx
mov byte [ebx + 0x577e2a], 0
test ebx, ebx
jne 0x44210c
xor eax, eax
mov dword [ebp - 4], eax
mov edi, eax
jmp 0x44221d
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x10]
push edx
push 1
push dword [ebp + 0xc]
call fcn.00478d41
cmp dword [ebp - 0x10], 0
jge 0x442129
xor ecx, ecx
mov dword [ebp - 0x10], ecx
push 0x577e2a
call fcn.0054c2d0
pop ecx
cmp eax, dword [ebp - 0x10]
jge 0x44213e
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jge 0x442149
xor edx, edx
mov dword [ebp - 0xc], edx
push 0x577e2a
call fcn.0054c2d0
pop ecx
cmp eax, dword [ebp - 0xc]
jge 0x44215e
xor ecx, ecx
mov dword [ebp - 0xc], ecx
push dword [ebp + 0xc]
call sub.USER32.dll_GetDC
mov esi, eax
test esi, esi
jne 0x442178
xor eax, eax
mov dword [ebp - 4], eax
mov edi, eax
jmp 0x44221d
xor eax, eax
mov dword [ebp - 0x14], eax
push dword [0x56cef4]
call fcn.0051dd0a
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4421a3
mov edx, dword [ebp - 8]
push dword [edx + 0x924]
push esi
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x577e2a], 0
push 0x577e2a
call fcn.0054c2d0
pop ecx
push eax
push 0x577e2a
push esi
call fcn.004ee101
mov edi, eax
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x577e2a], 0x20
cmp ebx, dword [ebp - 0xc]
jle 0x4421e1
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x577e2b], 0
jmp 0x4421eb
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x577e2a], 0
push 0x577e2a
call fcn.0054c2d0
pop ecx
push eax
push 0x577e2a
push esi
call fcn.004ee101
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x442214
push dword [ebp - 0x14]
push esi
call sub.GDI32.dll_SelectObject
push esi
push dword [ebp + 0xc]
call sub.USER32.dll_ReleaseDC
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
call sub.USER32.dll_GetWindowRect
mov eax, dword [ebp - 0x24]
add edi, eax
add dword [ebp - 4], eax
lea edx, [ebp - 0x34]
push edx
push dword [ebp + 8]
call sub.USER32.dll_GetWindowRect
mov ebx, dword [ebp - 0x2c]
sub ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x28]
sub esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
sub eax, esi
add eax, 0xfffffffd
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 4]
sub edx, edi
mov eax, ebx
sub eax, edx
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x44227a
mov ecx, 2
mov eax, dword [ebp - 0x34]
cdq
idiv ecx
mov dword [ebp - 0x34], eax
sub edi, dword [ebp - 0x34]
mov dword [ebp - 0x34], edi
jmp 0x44228b
mov ecx, 0xfffffffe
mov eax, dword [ebp - 0x34]
cdq
idiv ecx
mov dword [ebp - 0x34], eax
add dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x34]
jle 0x44229b
mov edx, eax
add edx, 3
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x34]
add ecx, ebx
mov edx, dword [ebp - 0x1c]
sub edx, eax
add edx, eax
cmp ecx, edx
jle 0x4422bc
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x24]
sub eax, ebx
add eax, 0xfffffffd
mov dword [ebp - 0x34], eax
push 0
push esi
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp + 8]
call sub.USER32.dll_MoveWindow
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8