Function at 0x14005f178
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, [0x1400a9420]
lea r8, [rax + 0x20]
call fcn.140058a70
xor edx, edx
cmp al, dl
jne 0x14005f1bc
xor eax, eax
jmp 0x14005f481
movsxd r14, dword [rsp + 0x148]
mov rax, qword [0x1400a94c0]
movsxd rdi, dword [rsp + 0x48]
mov rcx, qword [rax + r14*8]
mov r9, qword [0x1400a94e8]
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 0x14005f230
lea rcx, [0x1400a9420]
mov r8d, edi
mov edx, r14d
call fcn.1400597f4
mov r9, qword [0x1400a94e8]
mov ebp, 1
xor edx, edx
bt ebx, 0xb
jae 0x14005f263
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 [0x1400a94e8]
mov ebp, 1
movzx ecx, byte [rsp + 0x148]
cmp ecx, 0x14
jg 0x14005f70d
je 0x14005f625
cmp ecx, 9
je 0x14005f5c0
cmp ecx, 0xb
je 0x14005f568
cmp ecx, 0xc
je 0x14005f1b5
cmp ecx, 0xd
jle 0x14005f385
cmp ecx, 0xf
jle 0x14005f4a2
cmp ecx, 0x11
jne 0x14005f87e
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 0x14005f307
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 0x14005f340
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 0x14005f380
mov rdx, qword [rsi + 0x60]
lea rcx, [0x1400a9420]
call fcn.1400587f8
lea rcx, [0x1400a9420]
mov edx, r14d
mov r8d, eax
call fcn.1400597f4
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 0x14005f47f
mov ebp, 1
mov edi, r14d
mov r12d, 0xc0
test bl, bl
jns 0x14005f3b9
xor edx, edx
mov rcx, r15
mov edi, r12d
call qword [sym.imp.USER32.dll_EnableWindow]
test bl, 0x40
je 0x14005f3cc
mov edx, ebp
mov rcx, r15
mov edi, r12d
call qword [sym.imp.USER32.dll_EnableWindow]
mov r8d, ebx
and r8d, 0x20
je 0x14005f3d8
add edi, 0x30
mov r12d, ebx
and r12d, 0x10
je 0x14005f3e4
add edi, 0x30
mov eax, 0x1008
test bl, 8
je 0x14005f3f0
add edi, eax
bt ebx, 0xc
jae 0x14005f3f8
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 0x14005f429
mov ecx, dword [r13 + 0x29c]
movzx eax, al
cmp eax, ecx
je 0x14005f429
cmp ecx, 0xffffffff
jne 0x14005f47f
cmp r8d, r14d
je 0x14005f439
xor edx, edx
mov rcx, r15
call qword [sym.imp.USER32.dll_ShowWindow]
cmp r12d, r14d
je 0x14005f46a
mov edx, 4
mov rcx, r15
call qword [sym.imp.USER32.dll_ShowWindow]
cmp byte [rsp + 0x148], 0x1a
jne 0x14005f46a
test byte [rsi + 0xf6], 0x40
je 0x14005f46a
mov edx, ebp
mov rcx, r15
call qword [sym.imp.USER32.dll_EnableWindow]
lea rcx, [0x1400a9420]
mov r9d, ebp
mov r8, rsi
mov rdx, r13
call fcn.140058b04
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 0x14005f1b5
test bl, 0x20
jne 0x14005f1b5
test bl, 0x80
lea ecx, [r14 + 3]
mov eax, r14d
cmovne eax, ecx
test bl, 1
je 0x14005f4f0
or eax, 8
cmp r13d, r14d
je 0x14005f4f9
bts eax, 7
test byte [rsp + 0x5c], 8
je 0x14005f508
test bl, 4
jne 0x14005f508
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 0x14005f551
lea r9, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
cmp eax, r14d
je 0x14005f557
bt dword [rsp + 0x5c], 0xc
jae 0x14005f557
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 0x14005f5b6
mov r13, qword [rsp + 0x40]
xor r14d, r14d
test bl, 0x10
je 0x14005f38d
movzx r8d, byte [rsi + 0xf7]
cmp byte [r13 + 0x2a4], r14b
je 0x14005f598
mov eax, dword [r13 + 0x2a0]
mov dword [r13 + 0x29c], eax
lea rcx, [0x1400a9420]
mov rdx, r13
call fcn.1400614f8
movzx r11d, byte [rsi + 0xf7]
mov dword [r13 + 0x2a0], r11d
mov ebp, 1
jmp 0x14005f38d
mov ecx, ebx
xor r14d, r14d
and ecx, 7
cmp ecx, r14d
je 0x14005f601
cmp ecx, 1
mov rcx, r15
je 0x14005f5ef
xor r9d, r9d
xor r8d, r8d
mov edx, 0x467
call qword [sym.imp.USER32.dll_SendMessageW]
lea ebp, [r14 + 1]
jmp 0x14005f388
mov r9, 0xffffffffffff0000
or r8, 0xffffffffffffffff
mov edx, 0x465
jmp 0x14005f60f
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 0x14005f38d
jmp 0x14005f5b6
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 0x14005f1b5
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 0x14005f6c4
test bl, 5
je 0x14005f6c4
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 0x14005f706
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 0x14005f481
sub ecx, 0x16
je 0x14005f7b9
sub ecx, 2
je 0x14005f76f
sub ecx, 1
je 0x14005f74d
cmp ecx, 1
jne 0x14005f385
mov r8d, ebx
and r8d, 7
je 0x14005f385
lea rcx, [0x1400a9420]
and r8d, 3
mov edx, edi
call fcn.14005d1c0
jmp 0x14005f380
mov eax, ebx
and eax, 7
je 0x14005f385
mov r8d, eax
mov edx, 0xf1
mov rcx, r15
and r8, 3
xor r9d, r9d
jmp 0x14005f37a
bt ebx, 9
mov r13, qword [rsp + 0x40]
jae 0x14005f7b1
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 0x14005f7ac
lea rcx, [0x1400a9420]
mov r8d, edi
mov edx, r14d
call fcn.1400597f4
mov ebp, 1
xor r14d, r14d
jmp 0x14005f38d
mov r11d, dword [0x1400a9504]
mov ecx, 3
cmp r11d, ecx
mov r10d, ecx
jl 0x14005f385
lea r8, [r9 + 0x18]
xor r14d, r14d
mov rdx, qword [r8]
mov r13, qword [rsp + 0x40]
cmp qword [rdx], r14
je 0x14005f802
mov rdx, qword [rdx]
mov eax, dword [r13 + 8]
cmp dword [rdx + 8], eax
jne 0x14005f802
cmp byte [rdx + 0xf4], cl
jne 0x14005f802
mov rax, qword [rsi + 0x60]
cmp qword [rdx], rax
je 0x14005f814
inc r10d
add r8, 8
cmp r10d, r11d
jg 0x14005f38d
jmp 0x14005f7d8
mov al, byte [rsi + 0xf6]
test bl, al
jne 0x14005f38d
test al, 0x10
je 0x14005f38d
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 0x14005f38d
mov r13, qword [rsp + 0x40]
jmp 0x14005f7b1