Function at 0x4f9a30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [0x602278]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x28], eax
push 0x58
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
fdiv qword [0x54b6d0]
fstp qword [ebp - 0x10]
fld1
fcomp qword [ebp - 0x10]
fnstsw ax
test ah, 5
jp 0x4f9a91
push 0x801
mov edx, dword [ebp - 0x28]
push edx
call fcn.00483170
add esp, 8
jmp 0x4f9a9f
push 1
mov eax, dword [ebp - 0x28]
push eax
call fcn.00483170
add esp, 8
mov ecx, dword [0x602278]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
push 0
push 0
push 0x18e
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
mov ecx, dword [0x602264]
cmp dword [ecx*4 + 0x602268], 0
je 0x4f9c03
mov edx, dword [0x602264]
mov eax, dword [edx*4 + 0x602268]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4f9c03
push 0
push 0
push 0x184
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x602264]
mov ecx, dword [eax*4 + 0x602268]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
movsx eax, byte [edx]
cmp eax, 0xd
jne 0x4f9b23
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
push 0xd
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005350b0
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4f9b40
mov eax, dword [ebp - 0x30]
mov byte [eax], 0
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx]
test edx, edx
jle 0x4f9b60
mov eax, dword [ebp - 0x2c]
movsx ecx, byte [eax]
cmp ecx, 0x20
jge 0x4f9b60
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x4f9b40
cmp dword [0x60225c], 2
jne 0x4f9b85
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
sub eax, 0xe
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f9c40
add esp, 0xc
jmp 0x4f9b9a
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0x180
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x30], 0
je 0x4f9bf9
mov edx, dword [ebp - 0x30]
mov byte [edx], 0xd
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x4f9bc3
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x4f9bed
push 0x602291
push 0
push 0x180
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
movsx eax, byte [edx]
test eax, eax
jne 0x4f9bf9
jmp 0x4f9c03
cmp dword [ebp - 0x30], 0
jne 0x4f9b23
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00483170
add esp, 8
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x197
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esp, ebp
pop ebp
ret