Function at 0x140065310
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov bpl, r9b
mov rdi, r8
movsxd r12, edx
lea r9, [rsp + 0x30]
lea r8, [rax - 0xd0]
lea rcx, [0x1400c6a00]
mov edx, r12d
call fcn.14004e0b0
xor r14d, r14d
cmp al, r14b
jne 0x140065363
mov dword [rdi], r14d
jmp 0x140065ae6
mov rax, qword [0x1400c6ac8]
movsxd rcx, dword [rsp + 0x30]
or r15, 0xffffffffffffffff
mov rcx, qword [rax + rcx*8]
mov dword [rdi], r15d
mov rbx, qword [rcx]
movzx eax, byte [rbx + 0xf4]
mov rsi, qword [rbx]
cmp eax, 0x11
jg 0x14006577b
je 0x14006568e
cmp eax, r14d
je 0x14006563b
cmp eax, 1
je 0x1400655d0
cmp eax, 8
je 0x1400655c6
cmp eax, 0xa
je 0x140065573
cmp eax, 0xc
je 0x14006535b
cmp eax, 0xd
jle 0x140065895
cmp eax, 0xf
jle 0x14006548c
cmp eax, 0x10
jne 0x140065895
lea r8d, [r15 + 0xa]
xor r9d, r9d
mov edx, 0x110a
mov rcx, rsi
mov dword [rdi], r14d
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, r14
je 0x140065ae6
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], 4
cmp bpl, r14b
je 0x140065461
mov ecx, 0x2000
call fcn.140016ed8
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 0x113e
mov rcx, rsi
mov dword [rsp + 0x70], 1
mov rbx, rax
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], 0xfff
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r14d
jne 0x140065633
mov rcx, rbx
call fcn.140016a60
jmp 0x140065ae6
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 0x113e
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r14d
je 0x140065ae6
mov eax, dword [rsp + 0xa0]
jmp 0x140065ae4
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.USER32.dll_IsMenu]
cmp eax, r14d
je 0x140065ae6
mov ecx, 0x208
call fcn.140016ed8
mov rcx, qword [rbx + 0x10]
xor r8d, r8d
mov dword [rsp + 0xc0], 0x50
lea r9, [rsp + 0xc0]
mov edx, r12d
mov rsi, rax
cmp bpl, r14b
je 0x14006550a
mov dword [rsp + 0xc4], reloc.WSOCK32.dll_recv
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0x100], 0x104
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
cmp eax, r14d
jne 0x140065502
mov dword [rdi], r14d
mov rcx, rsi
jmp 0x140065457
mov rax, rsi
jmp 0x140065ae8
mov dword [rsp + 0xc4], 1
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov rcx, rsi
cmp eax, r14d
je 0x140065457
call fcn.140016a60
mov r11d, dword [rsp + 0xcc]
mov al, r11b
mov dword [rdi], r11d
and al, 3
neg al
sbb ecx, ecx
and ecx, 0x40
add ecx, 0x40
test r11d, 0x8080
je 0x140065553
bts ecx, 8
test r11b, 8
je 0x14006555e
or ecx, 1
jmp 0x140065561
or ecx, 4
bt r11d, 0xc
jae 0x14006556c
bts ecx, 9
mov dword [rdi], ecx
jmp 0x140065ae6
xor r9d, r9d
xor r8d, r8d
mov edx, 0x130b
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rdi], eax
cmp bpl, r14b
je 0x140065ae6
lea r9, [rsp + 0x110]
movsxd r8, eax
mov edx, 0x133c
mov rcx, rsi
mov dword [rsp + 0x110], 8
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11d, dword [rsp + 0x130]
mov dword [rdi], r11d
jmp 0x140065ae6
mov edx, 0x408
jmp 0x140065ad5
xor r9d, r9d
xor r8d, r8d
mov edx, 0x188
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r15d
je 0x140065895
movsxd rdi, eax
xor r9d, r9d
mov edx, 0x18a
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea r11, [rax + 1]
mov eax, 2
mul r11
cmovo rax, r15
mov rcx, rax
call fcn.140016ed8
mov edx, 0x189
mov r8, rdi
mov r9, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, rbx
jmp 0x140065ae8
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r15d
je 0x140065895
movsxd rdi, eax
xor r9d, r9d
mov edx, 0x149
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea r11, [rax + 1]
mov eax, 2
mul r11
cmovo rax, r15
mov rcx, rax
call fcn.140016ed8
mov edx, 0x148
jmp 0x140065621
mov rax, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x60]
mov edx, 0xfffffff0
mov qword [rsp + 0x78], rax
mov dword [rdi], r14d
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [rsp + 0x70], 8
mov dword [rsp + 0x84], 0xf000
mov esi, eax
cmp bpl, r14b
je 0x140065717
mov ecx, 0x2000
call fcn.140016ed8
mov rcx, qword [rbx + 0x60]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 0x113e
mov rdi, rax
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x70], 1
mov dword [rsp + 0x90], 0xfff
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r14d
je 0x14006570f
mov rax, rdi
jmp 0x140065ae8
mov rcx, rdi
jmp 0x140065457
mov rcx, qword [rbx + 0x60]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 0x113e
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r14d
je 0x140065ae6
bt esi, 8
mov ecx, dword [rsp + 0x80]
jae 0x140065757
mov eax, ecx
shr eax, 0xc
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
mov dword [rdi], eax
test cl, 2
je 0x140065760
bts dword [rdi], 8
test cl, 0x20
je 0x140065769
bts dword [rdi], 0xa
test cl, 0x10
je 0x140065ae6
bts dword [rdi], 9
jmp 0x140065ae6
cmp eax, 0x12
je 0x140065ad0
cmp eax, 0x13
je 0x140065a75
cmp eax, 0x14
je 0x140065904
cmp eax, 0x15
je 0x1400658d9
cmp eax, 0x18
jle 0x140065895
cmp eax, 0x1a
jle 0x140065818
cmp eax, 0x1c
jne 0x140065895
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov edx, 0x1001
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r14d
je 0x14006535b
mov ecx, SafeArrayUnaccessData
call fcn.140016ed8
movzx ecx, word [rsp + 0xae]
movzx r9d, word [rsp + 0xaa]
movzx r8d, word [rsp + 0xa8]
mov dword [rsp + 0x20], ecx
lea rdx, str._d__02d__02d
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x140065633
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
cmp bpl, r14b
je 0x140065874
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
lea ebx, [rax + 1]
mov eax, 2
movsxd rcx, ebx
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.140016ed8
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
mov rbp, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, r14d
jne 0x14006586c
mov dword [rdi], r14d
mov rcx, rbp
jmp 0x140065457
mov rax, rbp
jmp 0x140065ae8
mov edx, 0xf0
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rdi], eax
cmp eax, r14d
jne 0x140065ae6
mov dword [rdi], 4
jmp 0x140065ae6
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
lea edi, [rax + 1]
mov eax, 2
movsxd rcx, edi
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.140016ed8
mov r8d, edi
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140065633
add rbx, 0xc8
mov rcx, rbx
call fcn.140050340
mov rcx, rbx
cmp al, r14b
je 0x1400658fa
call fcn.140062190
jmp 0x140065ae8
call fcn.140010880
jmp 0x140065ae4
mov r13, qword [rbx + 0x60]
mov edx, 0xffffffec
mov dword [rdi], r15d
mov rcx, r13
call qword [sym.imp.USER32.dll_GetWindowLongW]
xor edx, edx
lea rcx, [rsp + 0x38]
lea r8d, [rdx + 0x38]
mov esi, eax
call fcn.140017520
lea r9, [rsp + 0x138]
mov r8, r15
mov edx, 0x1053
mov rcx, r13
mov dword [rsp + 0x138], 1
mov qword [rsp + 0x148], r12
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsp + 0x3c], eax
cmp eax, r15d
je 0x140065ae6
test sil, 4
je 0x1400659b6
cmp bpl, r14b
je 0x1400659b6
lea r9, [rsp + 0x38]
xor r8d, r8d
mov edx, 0x104b
mov rcx, r13
mov dword [rsp + 0x38], 8
mov dword [rsp + 0x48], 0xf000
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r14d
je 0x140065ae6
mov eax, dword [rsp + 0x44]
shr eax, 0xc
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
jmp 0x140065ae4
mov ecx, 0x2000
call fcn.140016ed8
cmp r14w, word [rbx + 0xf8]
mov dword [rsp + 0x38], 1
mov rdi, rax
mov rbp, rax
mov dword [rsp + 0x58], 0xfff
mov esi, r14d
jge 0x140065a50
mov rcx, qword [rbx + 0x60]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov edx, 0x104b
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rbp
call fcn.140016a44
mov ecx, 0xffe
sub ecx, eax
cmp ecx, r14d
mov dword [rsp + 0x58], ecx
jle 0x140065707
mov rcx, rdi
call fcn.140016a44
lea rcx, [rdi + rax*2]
movzx eax, word [0x1400c6a14]
mov word [rcx], ax
mov word [rcx + 2], r14w
call qword [sym.imp.USER32.dll_CharNextW]
mov rbp, rax
movsx eax, word [rbx + 0xf8]
inc esi
cmp esi, eax
jl 0x1400659e3
mov rcx, qword [rbx + 0x60]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov edx, 0x104b
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140065707
mov r9d, 2
mov r8, r15
mov edx, 0x100c
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
lea rcx, [rsp + 0x38]
lea r8d, [rdx + 0x38]
mov dword [rdi], eax
call fcn.140017520
mov eax, dword [rdi]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov edx, 0x104b
mov rcx, rsi
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x38], 4
call qword [sym.imp.USER32.dll_SendMessageW]
neg rax
sbb ecx, ecx
and ecx, dword [rsp + 0x60]
jmp 0x14006556c
mov edx, 0x400
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rdi], eax
xor eax, eax
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret