Function at 0x140002260
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1a8]
sub rsp, 0x2a8
mov rax, qword [0x1401cb558]
xor rax, rsp
mov qword [rbp + 0x180], rax
cmp dword [rdx + 0x18], 3
mov rsi, rdx
mov rdi, rcx
jne 0x1400022aa
mov r8, qword [rdx + 0x20]
lea r9, [rdx + 0x28]
mov rdx, qword [rcx + 8]
lea rcx, [0x1401db678]
call fcn.140013080
mov eax, dword [rsi + 0x18]
dec eax
test eax, 0xfffffffd
je 0x1400022bd
xor eax, eax
jmp 0x140002617
mov rdx, qword [rdi + 8]
lea r8, str.BUTTON
lea rcx, [0x1401db678]
mov qword [rsp + 0x2a0], r12
call fcn.140014070
mov r12, rax
test rax, rax
je 0x14000260f
mov eax, dword [rsi + 0x40]
mov qword [rsp + 0x2e0], rbx
mov qword [rsp + 0x298], r13
mov r13d, 3
mov qword [rsp + 0x290], r15
test al, 4
je 0x140002313
lea r15d, [r13 + 1]
jmp 0x14000233b
test al, 1
je 0x14000231c
mov r15d, r13d
jmp 0x14000233b
test al, 0x40
je 0x140002328
mov r15d, 2
jmp 0x14000233b
cmp dword [rdi + 0x60], 0
mov eax, 5
mov r15d, 1
cmovne r15d, eax
mov r8, qword [rsi + 0x20]
lea rbx, [rsi + 0x28]
mov qword [rsp + 0x30], 0
lea rcx, [0x1401db678]
mov qword [rsp + 0x28], rbx
mov r9d, 1
mov rdx, r12
mov dword [rsp + 0x20], r15d
call fcn.140012f00
movups xmm0, xmmword [rbx]
mov r8, qword [rsi + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [0x1401db678]
mov qword [rsp + 0x28], rbx
mov r9d, 1
mov rdx, r12
mov dword [rsp + 0x20], r15d
movups xmmword [rsp + 0x60], xmm0
call fcn.1400132d0
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x80]
mov r8d, 0x100
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r14d, dword [rsi + 0x40]
mov ebx, r14d
and ebx, 4
and r14d, 1
cmp qword [rdi + 0x50], 0
je 0x140002473
cmp dword [rdi + 0x2c], 0
je 0x140002401
cmp word [rbp - 0x80], 0
jne 0x1400023ec
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x54], 0xffffffff
jmp 0x14000240a
mov ecx, dword [rdi + 0x40]
add ecx, dword [rsp + 0x60]
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], 0xffffffff
jmp 0x14000240a
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.1400021e0
mov ecx, dword [rsp + 0x50]
mov edx, dword [rsp + 0x54]
add ecx, r14d
mov r9, qword [rdi + 0x50]
add edx, r14d
test r9, r9
je 0x140002473
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 + 0x298]
je 0x1400025d6
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140002491
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 r8, qword [rsp + 0x58]
je 0x140002529
cmp qword [rdi + 0x50], 0
je 0x140002512
mov eax, dword [rsp + 0x68]
mov r9d, dword [rdi + 0x44]
sub eax, r9d
mov ecx, dword [rdi + 0x58]
sub eax, ecx
mov edx, dword [rdi + 0x40]
sub eax, edx
sub eax, r8d
sub eax, dword [rsp + 0x60]
test eax, eax
jle 0x1400024fa
lea eax, [r9 + rcx]
mov dword [rsp + 0x54], 0xffffffff
add eax, edx
mov ebx, 0xffffffff
mov dword [rsp + 0x50], eax
jmp 0x140002536
lea eax, [rdx + 2]
mov dword [rsp + 0x54], 0xffffffff
add eax, ecx
mov ebx, 0xffffffff
mov dword [rsp + 0x50], eax
jmp 0x140002536
mov dword [rsp + 0x50], 0xffffffff
mov ebx, 0xffffffff
mov dword [rsp + 0x54], 0xffffffff
jmp 0x140002536
mov rbx, qword [rdi + 0x38]
mov qword [rsp + 0x50], rbx
shr rbx, 0x20
mov r9d, dword [rsp + 0x5c]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400021e0
mov edx, dword [rsp + 0x50]
xor eax, eax
mov ecx, dword [rsp + 0x54]
add edx, r14d
cmp ebx, 0xffffffff
mov dword [rsp + 0x70], edx
setne al
dec eax
add eax, r14d
add ecx, eax
cmp qword [rdi + 0x50], 0
je 0x140002574
lea eax, [rdx + 6]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x74], ecx
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x7c], eax
call fcn.140002d40
mov r8, qword [rsi + 0x20]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x48], rcx
mov r9d, 1
mov dword [rsp + 0x40], 0
lea rcx, [0x1401db678]
mov dword [rsp + 0x38], 0
mov rdx, r12
mov dword [rsp + 0x30], 0xffffffff
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
call fcn.1400130e0
test byte [rsi + 0x40], 0x10
mov r15, qword [rsp + 0x290]
mov rbx, qword [rsp + 0x2e0]
je 0x1400025fb
mov rcx, qword [rsi + 0x20]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov rdx, r12
lea rcx, [0x1401db678]
call fcn.140012ec0
mov eax, 4
mov r12, qword [rsp + 0x2a0]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14002a970
add rsp, 0x2a8
pop r14
pop rdi
pop rsi
pop rbp
ret