Function at 0x1400585f0
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, 0x100
mov ebx, r8d
lea r9, [rsp + 0x48]
lea rcx, [0x1400c1e50]
lea r8, [rax + 0x20]
call fcn.140050800
xor edx, edx
cmp al, dl
jne 0x140058634
xor eax, eax
jmp 0x1400588f9
movsxd r14, dword [rsp + 0x148]
mov rax, qword [0x1400c1ef0]
movsxd rdi, dword [rsp + 0x48]
mov rcx, qword [rax + r14*8]
mov r9, qword [0x1400c1f18]
cmp ebx, edx
mov rax, qword [rcx]
cmovl ebx, edx
mov r12, rdi
mov qword [rsp + 0x40], rax
mov rax, qword [r9 + rdi*8]
mov r13d, ebx
and r13d, 0x100
mov rsi, qword [rax]
mov ebp, edx
mov al, byte [rsi + 0xf4]
mov r15, qword [rsi]
mov byte [rsp + 0x148], al
je 0x1400586a8
lea rcx, [0x1400c1e50]
mov r8d, edi
mov edx, r14d
call fcn.140050270
mov r9, qword [0x1400c1f18]
mov ebp, 1
xor edx, edx
bt ebx, 0xb
jae 0x1400586db
mov dword [rsp + 0x30], reloc.WSOCK32.dll_send
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], edx
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.USER32.dll_SetWindowPos]
mov r9, qword [0x1400c1f18]
mov ebp, 1
movzx ecx, byte [rsp + 0x148]
cmp ecx, 0x14
jg 0x140058b85
je 0x140058a9d
cmp ecx, 9
je 0x140058a38
cmp ecx, 0xb
je 0x1400589e0
cmp ecx, 0xc
je 0x14005862d
cmp ecx, 0xd
jle 0x1400587fd
cmp ecx, 0xf
jle 0x14005891a
cmp ecx, 0x11
jne 0x140058cf5
lea edx, [rcx - 0x21]
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov rax, qword [rsi + 0x18]
mov dword [rsp + 0xa0], 8
mov qword [rsp + 0xa8], rax
mov al, bl
mov dword [rsp + 0xb4], 0xf010
and al, 1
neg al
mov eax, 0x1000
sbb ecx, ecx
and ecx, eax
add ecx, eax
bt ebx, 9
mov dword [rsp + 0xb0], ecx
jae 0x14005877f
or ecx, 0x10
mov dword [rsp + 0xb0], ecx
mov rcx, qword [rsi + 0x60]
lea r9, [rsp + 0xa0]
xor r8d, r8d
mov edx, 0x113f
call qword [sym.imp.USER32.dll_SendMessageW]
bt ebx, 0xa
jae 0x1400587b8
mov r9, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x60]
mov edx, 0x1102
mov r8d, 2
call qword [sym.imp.USER32.dll_SendMessageW]
test r13d, r13d
je 0x1400587f8
mov rdx, qword [rsi + 0x60]
lea rcx, [0x1400c1e50]
call fcn.1400508a0
lea rcx, [0x1400c1e50]
mov edx, r14d
mov r8d, eax
call fcn.140050270
mov r9, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x60]
mov edx, 0x110b
mov r8d, 9
call qword [sym.imp.USER32.dll_SendMessageW]
mov ebp, 1
xor r14d, r14d
mov r13, qword [rsp + 0x40]
and ebx, 0x10f8
jle 0x1400588f7
mov ebp, 1
mov edi, r14d
mov r12d, 0xc0
test bl, bl
jns 0x140058831
xor edx, edx
mov rcx, r15
mov edi, r12d
call qword [sym.imp.USER32.dll_EnableWindow]
test bl, 0x40
je 0x140058844
mov edx, ebp
mov rcx, r15
mov edi, r12d
call qword [sym.imp.USER32.dll_EnableWindow]
mov r8d, ebx
and r8d, 0x20
je 0x140058850
add edi, 0x30
mov r12d, ebx
and r12d, 0x10
je 0x14005885c
add edi, 0x30
mov eax, 0x1008
test bl, 8
je 0x140058868
add edi, eax
bt ebx, 0xc
jae 0x140058870
add edi, eax
mov al, byte [rsi + 0xf7]
not dil
and dil, byte [rsi + 0xf6]
or dil, bl
mov byte [rsi + 0xf6], dil
cmp al, 0xff
je 0x1400588a1
mov ecx, dword [r13 + 0x294]
movzx eax, al
cmp eax, ecx
je 0x1400588a1
cmp ecx, 0xffffffff
jne 0x1400588f7
cmp r8d, r14d
je 0x1400588b1
xor edx, edx
mov rcx, r15
call qword [sym.imp.USER32.dll_ShowWindow]
cmp r12d, r14d
je 0x1400588e2
mov edx, 4
mov rcx, r15
call qword [sym.imp.USER32.dll_ShowWindow]
cmp byte [rsp + 0x148], 0x1a
jne 0x1400588e2
test byte [rsi + 0xf6], 0x40
je 0x1400588e2
mov edx, ebp
mov rcx, r15
call qword [sym.imp.USER32.dll_EnableWindow]
lea rcx, [0x1400c1e50]
mov r9d, ebp
mov r8, rsi
mov rdx, r13
call fcn.1400403b0
mov eax, ebp
lea r11, [rsp + 0x100]
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
mov rcx, qword [rsi + 0x10]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, edi
mov dword [rsp + 0x50], 0x50
mov dword [rsp + 0x54], 1
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
xor r14d, r14d
cmp eax, r14d
je 0x14005862d
test bl, 0x20
jne 0x14005862d
test bl, 0x80
lea ecx, [r14 + 3]
mov eax, r14d
cmovne eax, ecx
test bl, 1
je 0x140058968
or eax, 8
cmp r13d, r14d
je 0x140058971
bts eax, 7
test byte [rsp + 0x5c], 8
je 0x140058980
test bl, 4
jne 0x140058980
or eax, 8
mov rcx, qword [rsi + 0x10]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, edi
mov dword [rsp + 0x5c], eax
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov rcx, qword [rsi + 0x10]
xor r8d, r8d
bt ebx, 9
mov edx, edi
jb 0x1400589c9
lea r9, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
cmp eax, r14d
je 0x1400589cf
bt dword [rsp + 0x5c], 0xc
jae 0x1400589cf
mov rcx, qword [rsi + 0x10]
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov r13, qword [rsp + 0x40]
mov rcx, qword [r13]
call qword [sym.imp.USER32.dll_DrawMenuBar]
jmp 0x140058a2e
mov r13, qword [rsp + 0x40]
xor r14d, r14d
test bl, 0x10
je 0x140058805
movzx r8d, byte [rsi + 0xf7]
cmp byte [r13 + 0x29c], r14b
je 0x140058a10
mov eax, dword [r13 + 0x298]
mov dword [r13 + 0x294], eax
lea rcx, [0x1400c1e50]
mov rdx, r13
call fcn.14004f360
movzx r11d, byte [rsi + 0xf7]
mov dword [r13 + 0x298], r11d
mov ebp, 1
jmp 0x140058805
mov ecx, ebx
xor r14d, r14d
and ecx, 7
cmp ecx, r14d
je 0x140058a79
cmp ecx, 1
mov rcx, r15
je 0x140058a67
xor r9d, r9d
xor r8d, r8d
mov edx, 0x467
call qword [sym.imp.USER32.dll_SendMessageW]
lea ebp, [r14 + 1]
jmp 0x140058800
mov r9, 0xffffffffffff0000
or r8, 0xffffffffffffffff
mov edx, 0x465
jmp 0x140058a87
xor r9d, r9d
mov edx, 0x466
mov rcx, r15
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
mov r13, qword [rsp + 0x40]
cmp rax, r14
je 0x140058805
jmp 0x140058a2e
mov rdi, qword [rsi + 0x60]
lea r9, [rsp + 0xd8]
xor r14d, r14d
or r8, 0xffffffffffffffff
mov edx, 0x1053
mov rcx, rdi
mov esi, r14d
mov dword [rsp + 0xd8], 1
mov qword [rsp + 0xe8], r12
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbp, rax
cmp eax, 0xffffffff
je 0x14005862d
lea edx, [r14 - 0x14]
mov rcx, rdi
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x58], r14d
mov dword [rsp + 0x50], 8
call qword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
je 0x140058b3c
test bl, 5
je 0x140058b3c
mov eax, 0x1000
mov ecx, 0x2000
cmp ebx, 1
cmove eax, ecx
lea r9, [rsp + 0x50]
mov edx, 0x104c
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], 0xf000
call qword [sym.imp.USER32.dll_SendMessageW]
mov rsi, rax
test ebx, 0x2100
je 0x140058b7e
mov eax, dword [rsp + 0x5c]
or ecx, 0xffffffff
cmp r13d, r14d
cmovne eax, ecx
bt ebx, 0xd
mov ecx, 3
cmovb eax, r14d
mov dword [rsp + 0x60], ecx
lea r9, [rsp + 0x50]
mov rcx, rdi
movsxd r8, ebp
mov edx, 0x102b
mov dword [rsp + 0x5c], eax
call qword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov eax, esi
jmp 0x1400588f9
sub ecx, 0x16
je 0x140058c31
sub ecx, 2
je 0x140058be7
sub ecx, 1
je 0x140058bc5
cmp ecx, 1
jne 0x1400587fd
mov r8d, ebx
and r8d, 7
je 0x1400587fd
lea rcx, [0x1400c1e50]
and r8d, 3
mov edx, edi
call fcn.14004f7f0
jmp 0x1400587f8
mov eax, ebx
and eax, 7
je 0x1400587fd
mov r8d, eax
mov edx, 0xf1
mov rcx, r15
and r8, 3
xor r9d, r9d
jmp 0x1400587f2
bt ebx, 9
mov r13, qword [rsp + 0x40]
jae 0x140058c29
mov rcx, qword [r13]
xor r9d, r9d
mov r8, rdi
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageW]
call qword [sym.imp.USER32.dll_GetFocus]
cmp rax, qword [rsi]
jne 0x140058c24
lea rcx, [0x1400c1e50]
mov r8d, edi
mov edx, r14d
call fcn.140050270
mov ebp, 1
xor r14d, r14d
jmp 0x140058805
mov r11d, dword [0x1400c1f34]
mov ecx, 3
cmp r11d, ecx
mov r10d, ecx
jl 0x1400587fd
lea r8, [r9 + 0x18]
xor r14d, r14d
mov rdx, qword [r8]
mov r13, qword [rsp + 0x40]
cmp qword [rdx], r14
je 0x140058c7a
mov rdx, qword [rdx]
mov eax, dword [r13 + 8]
cmp dword [rdx + 8], eax
jne 0x140058c7a
cmp byte [rdx + 0xf4], cl
jne 0x140058c7a
mov rax, qword [rsi + 0x60]
cmp qword [rdx], rax
je 0x140058c8b
inc r10d
add r8, 8
cmp r10d, r11d
jle 0x140058c50
jmp 0x140058805
mov al, byte [rsi + 0xf6]
test bl, al
jne 0x140058805
test al, 0x10
je 0x140058805
movsxd rax, r10d
mov dword [rsp + 0x28], r14d
mov rcx, qword [r9 + rax*8]
mov rcx, qword [rcx]
movsx eax, word [rcx + 0xf2]
movsx r9d, word [rcx + 0xf0]
movsx r8d, word [rcx + 0xee]
movsx edx, word [rcx + 0xec]
mov rcx, qword [rcx]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_MoveWindow]
mov r8, qword [rsi + 0x60]
xor r9d, r9d
mov edx, 0x469
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140058805
mov r13, qword [rsp + 0x40]
jmp 0x140058c29