Function at 0x513a24
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffbc
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x513ce7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp dword [eax + 0x30], 0
je 0x513a75
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0042d930
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x54]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x68]
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x1021]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_GetWindowRect
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0x2000
cmp eax, 0x2000
jne 0x513ad4
push 3
lea eax, [ebp - 0x1031]
push eax
lea edx, [ebp - 0x1044]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x103c]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x1c]
sub ecx, 3
mov edx, 3
call fcn.004076f8
jmp 0x513b0f
lea eax, [ebp - 0x1021]
xor edx, edx
call fcn.00557870
sub eax, 3
push eax
lea eax, [ebp - 0x1031]
push eax
lea edx, [ebp - 0x1044]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [ebp - 0x1044]
mov edx, 3
mov eax, 3
call fcn.004076f8
push 0
push 0
push 0x147
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00404dc0
cmp dword [ebp - 0x10], 0xffffffff
jle 0x513b72
lea eax, [ebp - 0x1011]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x148
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x513b5f
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x1011]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.00404eb0
jmp 0x513bb1
push 0
push 0
push 0xe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.00404eb0
cmp dword [ebp - 8], 0
je 0x513bb1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
inc eax
push eax
push 0xd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_SendMessageA
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_GetWindowLongA
and eax, 3
cmp eax, 3
sete byte [ebp - 0x11]
call sub.user32.dll_GetFocus
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
sete al
and al, byte [ebp - 0x11]
je 0x513c34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0042d930
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.004287e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0042d930
call fcn.00429320
lea edx, [ebp - 0x1031]
mov ecx, 0xff00000d
call fcn.005429a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0042d930
mov eax, dword [eax + 0xc]
mov edx, 0xff00000e
call fcn.00427ee0
jmp 0x513c4c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0042d930
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.004287e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0042d930
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.004287e8
cmp dword [ebp - 0xc], 0
je 0x513c9e
xor eax, eax
mov al, byte [ebp - 0x11]
add eax, dword [ebp - 0x102d]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0042d930
xor ecx, ecx
mov cl, byte [ebp - 0x11]
add ecx, dword [ebp - 0x1031]
lea edx, [ebp - 0x1031]
call fcn.00429078
call sub.user32.dll_GetFocus
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
sete al
and al, byte [ebp - 0x11]
je 0x513cd1
lea eax, [ebp - 0x1031]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0042d930
call fcn.00429320
push eax
call sub.user32.dll_DrawFocusRect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513cee
lea eax, [ebp - 0xc]
call fcn.00404dc0
ret