Function at 0x140002250
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140115740]
xor rax, rsp
mov qword [rbp + 0x180], rax
cmp dword [rdx + 0x18], 3
mov rsi, rdx
mov rdi, rcx
jne 0x140002298
mov r8, qword [rdx + 0x20]
lea r9, [rdx + 0x28]
mov rdx, qword [rcx + 8]
lea rcx, [0x1401254b8]
call fcn.1400129e0
mov eax, dword [rsi + 0x18]
dec eax
test eax, 0xfffffffd
je 0x1400022ab
xor eax, eax
jmp 0x140002619
mov rdx, qword [rdi + 8]
lea r8, str.BUTTON
lea rcx, [0x1401254b8]
mov qword [rsp + 0x290], r15
call fcn.1400139d0
mov r15, rax
test rax, rax
je 0x140002611
mov eax, dword [rsi + 0x40]
mov qword [rsp + 0x2e0], rbx
mov qword [rsp + 0x2a8], r12
mov qword [rsp + 0x2a0], r13
mov r13d, 3
mov qword [rsp + 0x298], r14
test al, 4
je 0x140002309
lea r14d, [r13 + 1]
jmp 0x140002331
test al, 1
je 0x140002312
mov r14d, r13d
jmp 0x140002331
test al, 0x40
je 0x14000231e
mov r14d, 2
jmp 0x140002331
cmp dword [rdi + 0x60], 0
mov eax, 5
mov r14d, 1
cmovne r14d, eax
mov r8, qword [rsi + 0x20]
lea rbx, [rsi + 0x28]
mov qword [rsp + 0x30], 0
lea rcx, [0x1401254b8]
mov qword [rsp + 0x28], rbx
mov r9d, 1
mov rdx, r15
mov dword [rsp + 0x20], r14d
call fcn.140012860
movups xmm0, xmmword [rbx]
mov r8, qword [rsi + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [0x1401254b8]
mov qword [rsp + 0x28], rbx
mov r9d, 1
mov rdx, r15
mov dword [rsp + 0x20], r14d
movups xmmword [rsp + 0x60], xmm0
call fcn.140012c30
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x80]
mov r8d, 0x100
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r12d, dword [rsi + 0x40]
mov ebx, r12d
and ebx, 4
and r12d, 1
cmp qword [rdi + 0x50], 0
je 0x140002469
cmp dword [rdi + 0x2c], 0
je 0x1400023f7
cmp word [rbp - 0x80], 0
jne 0x1400023e2
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x54], 0xffffffff
jmp 0x140002400
mov ecx, dword [rdi + 0x40]
add ecx, dword [rsp + 0x60]
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], 0xffffffff
jmp 0x140002400
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x50], rax
mov r9d, dword [rdi + 0x5c]
lea rdx, [rsp + 0x50]
mov r8d, dword [rdi + 0x58]
mov rcx, rdi
call fcn.1400021d0
mov ecx, dword [rsp + 0x50]
mov edx, dword [rsp + 0x54]
add ecx, r12d
mov r9, qword [rdi + 0x50]
add edx, r12d
test r9, r9
je 0x140002469
test ebx, ebx
mov eax, 0x23
cmove eax, r13d
xor r8d, r8d
mov dword [rsp + 0x48], eax
mov eax, dword [rdi + 0x5c]
mov dword [rsp + 0x40], eax
mov eax, dword [rdi + 0x58]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
xor edx, edx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsi + 0x20]
mov qword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_DrawStateW]
cmp word [rbp - 0x80], 0
mov r13, qword [rsp + 0x2a0]
je 0x1400025d0
lea rax, [rbp - 0x80]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140002484
mov rcx, qword [rsi + 0x20]
lea r9, [rsp + 0x58]
lea rdx, [rbp - 0x80]
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp dword [rdi + 0x2c], 0
mov rcx, qword [rsp + 0x58]
je 0x14000251f
cmp qword [rdi + 0x50], 0
je 0x140002508
mov eax, dword [rsp + 0x68]
mov r9d, dword [rdi + 0x44]
sub eax, r9d
mov edx, dword [rdi + 0x58]
sub eax, edx
mov r8d, dword [rdi + 0x40]
sub eax, r8d
sub eax, ecx
sub eax, dword [rsp + 0x60]
test eax, eax
jle 0x1400024ef
lea eax, [r9 + rdx]
mov dword [rsp + 0x54], 0xffffffff
add eax, r8d
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x50]
jmp 0x140002528
lea eax, [r8 + 2]
mov dword [rsp + 0x54], 0xffffffff
add eax, edx
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x50]
jmp 0x140002528
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x54], 0xffffffff
mov rax, qword [rsp + 0x50]
jmp 0x140002528
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x50], rax
mov r9d, dword [rsp + 0x5c]
lea rdx, [rsp + 0x50]
xor ebx, ebx
shr rax, 0x20
cmp eax, 0xffffffff
mov r8d, ecx
mov rcx, rdi
setne bl
dec ebx
call fcn.1400021d0
mov ecx, dword [rsp + 0x50]
lea eax, [r12 + rbx]
mov edx, dword [rsp + 0x54]
add ecx, r12d
add edx, eax
mov dword [rsp + 0x70], ecx
cmp qword [rdi + 0x50], 0
je 0x14000256e
lea eax, [rcx + 6]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x68]
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0x74], edx
call fcn.140002d30
mov r8, qword [rsi + 0x20]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x48], rcx
mov r9d, 1
mov dword [rsp + 0x40], 0
lea rcx, [0x1401254b8]
mov dword [rsp + 0x38], 0
mov rdx, r15
mov dword [rsp + 0x30], 0xffffffff
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call fcn.140012a40
test byte [rsi + 0x40], 0x10
mov r14, qword [rsp + 0x298]
mov r12, qword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x2e0]
je 0x1400025fd
mov rcx, qword [rsi + 0x20]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov rdx, r15
lea rcx, [0x1401254b8]
call fcn.140012820
mov eax, 4
mov r15, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400265c0
add rsp, 0x2b0
pop rdi
pop rsi
pop rbp
ret