Function at 0x1400504b0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
cmp dword [0x1400b1420], 0
mov r13, r8
mov rbp, rdx
je 0x1400504ec
lea rcx, [0x1400c1e50]
call fcn.140040060
jmp 0x1400507da
mov edi, dword [rdx + 0x10]
mov rsi, qword [rdx + 0x20]
or rbx, 0xffffffffffffffff
mov r12d, edi
mov r14d, edi
and edi, 1
and r12d, 0x10
and r14d, 6
je 0x14005050f
lea ecx, [rbx + 0xf]
jmp 0x14005051f
mov edx, dword [r8 + 0x8c]
cmp edx, ebx
jne 0x140050527
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetSysColor]
mov edx, eax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [r13 + 0x88]
mov dword [rsp + 0xa8], eax
cmp ecx, ebx
jne 0x140050560
mov ebx, reloc.WSOCK32.dll_ntohs
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetSysColorBrush]
mov ecx, ebx
mov r15, rax
call qword [sym.imp.USER32.dll_GetSysColor]
or rbx, 0xffffffffffffffff
jmp 0x140050570
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov r15, rax
mov eax, dword [r13 + 0x88]
mov edx, eax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetBkColor]
mov rdx, r15
mov rcx, rsi
mov dword [rsp + 0x30], eax
call qword [sym.imp.GDI32.dll_SelectObject]
movdqu xmm0, xmmword [rbp + 0x28]
mov qword [rsp + 0x40], rax
movdqu xmmword [rsp + 0x48], xmm0
test edi, edi
je 0x1400505e1
lea rcx, [rsp + 0x48]
mov r8d, ebx
mov edx, ebx
call qword [sym.imp.USER32.dll_InflateRect]
mov ecx, reloc.WSOCK32.dll_recv
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, eax
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
lea rdx, [rsp + 0x48]
mov rcx, rsi
mov r8, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_FrameRect]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x14005060e
test r12d, r12d
je 0x1400505f6
lea rcx, [rsp + 0x48]
mov r8d, ebx
mov edx, ebx
call qword [sym.imp.USER32.dll_InflateRect]
mov r9d, reloc.WSOCK32.dll_recv
lea rdx, [rsp + 0x48]
mov rcx, rsi
lea r8d, [r9 - 0xc]
call qword [sym.imp.USER32.dll_DrawFrameControl]
movdqu xmm0, xmmword [rbp + 0x28]
lea rcx, [rsp + 0x48]
movdqu xmmword [rsp + 0x48], xmm0
test edi, edi
je 0x140050632
mov edx, 0xfffffffe
mov r8d, edx
call qword [sym.imp.USER32.dll_InflateRect]
jmp 0x140050652
mov edx, 0xfffffffd
test r12d, r12d
jne 0x140050641
mov edx, 0xfffffffe
mov r8d, edx
call qword [sym.imp.USER32.dll_InflateRect]
dec dword [rsp + 0x48]
dec dword [rsp + 0x4c]
lea rdx, [rsp + 0x48]
mov r8, r15
mov rcx, rsi
call qword [sym.imp.USER32.dll_FillRect]
test edi, edi
jne 0x14005066c
test r14d, r14d
je 0x140050676
add dword [rsp + 0x48], 2
add dword [rsp + 0x4c], 2
mov rcx, qword [r13]
mov edx, 0xfffffff0
mov edi, 0x105
call qword [sym.imp.USER32.dll_GetWindowLongW]
lea ecx, [rdi + 0x20]
bt eax, 0xd
cmovae edi, ecx
mov rcx, qword [r13]
xor r9d, r9d
lea edx, [r9 + 0xe]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
lea ebx, [rax + 1]
mov eax, 2
movsxd rcx, ebx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140018cc8
mov rcx, qword [r13]
mov r8d, ebx
mov rdx, rax
mov qword [rsp + 0x38], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [rsp + 0x20], edi
mov rdi, qword [rsp + 0x38]
or rbx, 0xffffffffffffffff
lea r9, [rsp + 0x48]
mov rdx, rdi
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_DrawTextW]
test r14d, r14d
je 0x140050743
movdqu xmm0, xmmword [rbp + 0x28]
lea ecx, [rbx + 0x12]
movdqu xmmword [rsp + 0x48], xmm0
dec dword [rsp + 0x48]
call qword [sym.imp.USER32.dll_GetSysColor]
mov rcx, rsi
mov edx, eax
call qword [sym.imp.GDI32.dll_SetTextColor]
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], 0x125
call qword [sym.imp.USER32.dll_DrawTextW]
test r12d, r12d
je 0x140050799
movdqu xmm0, xmmword [rbp + 0x28]
xor ecx, ecx
movdqu xmmword [rsp + 0x48], xmm0
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
lea rdx, [rsp + 0x48]
mov rcx, rsi
mov r8, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_FrameRect]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov edx, 0xfffffffc
lea rcx, [rsp + 0x48]
mov r8d, edx
call qword [sym.imp.USER32.dll_InflateRect]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov rcx, rdi
call fcn.140018ec8
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [rsp + 0xa8]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetBkColor]
mov eax, 1
lea r11, [rsp + 0x60]
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