Function at 0x49f3b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fd40
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5c5244]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
call fcn.004287b0
mov ecx, eax
test ecx, ecx
je 0x49f68f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x49f699
mov eax, dword [ebp - 0x6c]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x49f438
push edi
lea ecx, [ebp - 0x6c]
call fcn.00429130
mov eax, dword [ebp - 0x6c]
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x49f45b
mov eax, dword [ebp - 0x6c]
push dword [eax - 8]
push eax
call fcn.00510553
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x49f699
mov eax, dword [ebp - 0x6c]
cmp ecx, dword [eax - 8]
jg 0x49f699
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x6c]
mov word [eax + ecx*2], dx
call fcn.004287b0
mov ecx, eax
test ecx, ecx
je 0x49f6a3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov ecx, dword [esi + 0x24]
mov eax, dword [ebp - 0x70]
lea edx, [ecx - 0x10]
lea edi, [eax - 0x10]
cmp edx, edi
je 0x49f4f4
cmp dword [edi + 0xc], 0
jl 0x49f4e5
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x49f4e5
push edx
call fcn.00428580
add esp, 4
mov dword [ebp - 0x74], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49f4dd
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x74]
add eax, 0x10
mov dword [ebp - 0x70], eax
jmp 0x49f4f4
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x70]
call fcn.00429710
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
cmp dword [ecx - 0xc], 0
jne 0x49f629
cmp dword [eax - 0xc], 0
je 0x49f629
mov edi, dword [esi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, edi
jne 0x49f522
cmp dword [esi + 0x28], 0
je 0x49f629
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x60]
push eax
push edi
mov dword [ebp - 0x64], edi
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x31
push dword [esi + 4]
call edi
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 6
test eax, eax
jne 0x49f57d
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x74], eax
push eax
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push dword [ebp - 0x68]
mov dword [ebp - 0x7c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [esi + 4]
mov dword [ebp - 0x78], eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
push dword [ebp - 0x68]
push 0x133
push eax
call edi
test eax, eax
je 0x49f5c1
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.USER32.dll_FillRect]
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.GDI32.dll_SetTextColor]
push eax
push dword [ebp - 0x68]
call edi
mov ecx, dword [ebp - 0x70]
mov esi, eax
push 4
lea eax, [ebp - 0x20]
push eax
push dword [ecx - 0xc]
push ecx
push dword [ebp - 0x68]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x7c]
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x78]
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SetBkMode]
push esi
push dword [ebp - 0x68]
call edi
mov byte [ebp - 4], 7
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.USER32.dll_EndPaint]
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 3
jmp 0x49f632
mov eax, dword [ebp - 0x78]
mov dword [eax], 0
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x70]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49f650
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x49f66f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004225f0
push 0x80070057
call fcn.004225f0
push 0x80004005
call fcn.004225f0
int3