Function at 0x14008bfd0
Capabilities:
Get graphical window text

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x520
lea rdi, [rsp + 0x80]
mov ecx, 0x128
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x530]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x518], rax
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x80], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x14008c05c
mov r8d, WSAAsyncSelect
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14008c094
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x4d0], rax
cmp qword [rsp + 0x4d0], 0xc8
jae 0x14008c07d
jmp 0x14008c082
call fcn.1401357e0
xor eax, eax
mov rcx, qword [rsp + 0x4d0]
mov word [rsp + rcx + 0xa0], ax
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x4d8], rax
cmp qword [rsp + 0x4d8], 0x100
jae 0x14008c0b5
jmp 0x14008c0ba
call fcn.1401357e0
xor eax, eax
mov rcx, qword [rsp + 0x4d8]
mov word [rsp + rcx + 0x190], ax
mov rax, qword [rsp + 0x530]
mov rax, qword [rax + 0x718]
mov qword [rsp + 0x298], rax
jmp 0x14008c0f9
mov rax, qword [rsp + 0x298]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x298], rax
cmp qword [rsp + 0x298], 0
je 0x14008c14a
mov rax, qword [rsp + 0x298]
movzx eax, byte [rax + 0x16]
test eax, eax
je 0x14008c148
mov rax, qword [rsp + 0x298]
mov rcx, rax
call fcn.140006160
mov rcx, rax
call fcn.1400ee720
mov r9, rax
lea r8, [0x140283358]
mov edx, 0x7d
lea rcx, [rsp + 0x190]
call fcn.1400fec00
jmp 0x14008c0e5
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x190]
test eax, eax
je 0x14008c213
lea rcx, [rsp + 0x190]
call fcn.1401ea000
mov qword [rsp + 0x2a0], rax
cmp qword [rsp + 0x2a0], 0x7b
jbe 0x14008c1b1
mov eax, 0x80
sub rax, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x2a0]
lea rcx, [rsp + rcx*2 + 0x190]
mov r8, rax
lea rdx, [0x1402833d8]
call fcn.1400ff430
jmp 0x14008c213
mov rax, qword [rsp + 0x2a0]
movzx eax, word [rsp + rax*2 + 0x18e]
cmp eax, 0x20
jne 0x14008c213
mov rax, qword [rsp + 0x2a0]
dec rax
mov qword [rsp + 0x2a0], rax
mov rax, qword [rsp + 0x2a0]
shl rax, 1
mov qword [rsp + 0x4e0], rax
cmp qword [rsp + 0x4e0], 0x100
jae 0x14008c1fc
jmp 0x14008c201
call fcn.1401357e0
xor eax, eax
mov rcx, qword [rsp + 0x4e0]
mov word [rsp + rcx + 0x190], ax
mov eax, 0xc8
imul rax, rax, 0
mov rcx, qword [0x140321808]
movzx eax, byte [rcx + rax + 0x7c]
test eax, eax
je 0x14008c24c
mov rax, qword [rsp + 0x530]
movzx eax, byte [rax + 0x78d]
test eax, eax
jne 0x14008c24c
mov dword [rsp + 0x4e8], 1
jmp 0x14008c257
mov dword [rsp + 0x4e8], 0
cmp dword [0x140321544], 1
jle 0x14008c271
lea rax, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
mov qword [rsp + 0x4f0], rax
jmp 0x14008c280
lea rax, [0x1402827cc]
mov qword [rsp + 0x4f0], rax
cmp dword [0x140321544], 1
jle 0x14008c29a
mov eax, dword [0x140321544]
dec eax
mov dword [rsp + 0x4f8], eax
jmp 0x14008c2a5
mov dword [rsp + 0x4f8], 0
cmp qword [0x140321520], 0
jne 0x14008c2c0
lea rax, [0x140282e44]
mov qword [rsp + 0x500], rax
jmp 0x14008c2cf
lea rax, [0x1402834a8]
mov qword [rsp + 0x500], rax
cmp qword [0x140321418], 0
jne 0x14008c2ea
lea rax, [0x1402836a8]
mov qword [rsp + 0x508], rax
jmp 0x14008c2f9
lea rax, [0x140283730]
mov qword [rsp + 0x508], rax
mov cl, 1
call fcn.140037440
lea rdx, [rsp + 0x2c0]
movzx ecx, al
call fcn.140038560
mov ecx, dword [rsp + 0x4e8]
mov edx, dword [0x140321548]
sub edx, ecx
mov ecx, edx
mov qword [rsp + 0x70], rax
mov eax, dword [0x140321540]
mov dword [rsp + 0x68], eax
mov eax, dword [0x140321544]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], ecx
mov rax, qword [rsp + 0x4f0]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x4f8]
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x190]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x530]
mov eax, dword [rax + 0x728]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x530]
mov eax, dword [rax + 0x72c]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x500]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x508]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa0]
lea r8, str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
mov edx, dword [rsp + 0x540]
mov rcx, qword [rsp + 0x538]
call fcn.1400feb20
cdqe
mov rcx, qword [rsp + 0x538]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x538], rax
movsxd rax, dword [rsp + 0x540]
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x538]
sub rdx, rcx
mov rcx, rdx
sar rcx, 1
sub rax, rcx
mov edx, eax
mov rcx, qword [rsp + 0x538]
call fcn.1400277c0
mov rcx, qword [rsp + 0x538]
call fcn.1401ea000
mov rcx, qword [rsp + 0x538]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x538], rax
cmp qword [0x140321818], 0
je 0x14008c449
lea rax, str._r_nPress__F5__to_refresh.
mov qword [rsp + 0x510], rax
jmp 0x14008c458
lea rax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0_.
mov qword [rsp + 0x510], rax
movsxd rax, dword [rsp + 0x540]
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x538]
sub rdx, rcx
mov rcx, rdx
sar rcx, 1
sub rax, rcx
mov r8, qword [rsp + 0x510]
mov edx, eax
mov rcx, qword [rsp + 0x538]
call fcn.1400feb20
cdqe
mov rcx, qword [rsp + 0x538]
lea rax, [rcx + rax*2]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WSOCK32.dll_closesocket
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x518]
xor rcx, rsp
call fcn.140135520
add rsp, 0x520
pop rdi
ret