Function at 0x140042590
Capabilities:
Get graphical window text
Set global application hook

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov edi, r9d
mov dword [rbp - 0x68], r9d
mov ebx, r8d
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x50], rdx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r15d, eax
test eax, eax
je 0x140042a62
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rcx, rax
je 0x140042614
cmp dword [rcx], r15d
je 0x140042a62
add rcx, 0x38
cmp rcx, rax
jne 0x140042602
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x14004273b
mov edx, 0x208
lea rcx, [rbp - 0x40]
call fcn.140051ac0
mov ecx, 0x208
lea rax, [rbp - 0x40]
cmp word [rax], r12w
je 0x140042648
add rax, 2
sub rcx, 1
jne 0x140042638
test rcx, rcx
je 0x1400426b0
mov eax, 0x208
sub rax, rcx
test rcx, rcx
cmove rax, r12
mov edx, 0x208
sub rdx, rax
lea rcx, [rbp - 0x40]
lea rcx, [rcx + rax*2]
je 0x1400426a1
mov eax, 0x7ffffffe
lea r9, [0x1400ae83c]
sub r9, rcx
nop dword [rax]
test rax, rax
je 0x1400426a1
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x1400426a1
mov word [rcx], r8w
add rcx, 2
dec rax
sub rdx, 1
jne 0x140042680
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r12w
lea r8, str.nViewH64.dll
mov edx, 0x208
lea rcx, [rbp - 0x40]
call fcn.140042390
lea rcx, [rbp - 0x40]
call fcn.14004dff0
mov rbx, rax
test rax, rax
je 0x1400426e8
mov edi, 3
lea r12d, [rdi + 0x67]
lea r13, str.loaded_hook_dll:__s
jmp 0x1400426f8
mov edi, 1
lea r12d, [rdi + 0x6d]
lea r13, str.failed_to_load_hook_dll:__s
call fcn.14004e890
mov rcx, rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r12d
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainThreadHookManager.cpp
lea r8, str.ThreadHookManager::loadHookDll
mov edx, edi
call fcn.14004f020
mov qword [rsi + 0x18], rbx
mov edi, dword [rbp - 0x68]
xor r12d, r12d
test rbx, rbx
je 0x140042ab4
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov ecx, 0x28
call fcn.1400647cc
mov rbx, rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x78], r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r12
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x7c], ecx
mov dword [rsp + 0x60], r15d
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], r12d
movabs r13, 0x666666666666666
cmp byte [rax + 0x19], 0
jne 0x1400427a9
cmp r14, qword [rax + 0x20]
jae 0x1400427fe
cmp qword [rsp + 0x70], r13
je 0x140042ae6
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r12
mov ecx, 0x28
call fcn.1400647cc
nop
mov qword [rax + 0x20], r14
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
movups xmm0, xmmword [rbp - 0x58]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.140018ff0
test edi, edi
je 0x140042840
mov dword [rsp + 0x78], 1
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x14004282b
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140041fd0
add qword [rsi + 8], 0x38
jmp 0x140042a51
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, rsi
call fcn.140041b60
jmp 0x140042a51
mov rdi, qword [rsi + 0x18]
mov dword [rsp + 0x60], r15d
lea rdx, str.fnCallMessageHookEx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, r15d
mov r8, rdi
mov rdx, rax
mov ecx, 4
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbp - 0x80], rax
mov ebx, dword [rsp + 0x60]
lea rdx, str.fnCallReturnMessageHookEx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, ebx
mov r8, rdi
mov rdx, rax
mov ecx, 0xc
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbp - 0x78], rax
mov ebx, dword [rsp + 0x60]
lea rdx, str.fnGetMessageHookEx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, ebx
mov r8, rdi
mov rdx, rax
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbp - 0x70], rax
cmp qword [rbp - 0x80], 0
je 0x140042a51
cmp qword [rbp - 0x78], 0
je 0x140042a51
test rax, rax
je 0x140042a51
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x7c], eax
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx + 8]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], r12d
mov rcx, rbx
cmp byte [rax + 0x19], 0
jne 0x140042937
nop word [rax + rax]
mov qword [rbp - 0x58], rax
cmp qword [rax + 0x20], r14
jae 0x140042924
mov dword [rbp - 0x50], r12d
mov rax, qword [rax + 0x10]
jmp 0x140042931
mov dword [rbp - 0x50], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140042910
cmp byte [rcx + 0x19], 0
jne 0x140042943
cmp r14, qword [rcx + 0x20]
jae 0x140042998
cmp qword [rsp + 0x70], r13
je 0x140042ae0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r12
mov ecx, 0x28
call fcn.1400647cc
nop
mov qword [rax + 0x20], r14
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
movups xmm0, xmmword [rbp - 0x58]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.140018ff0
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x1400429b6
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140041fd0
add qword [rsi + 8], 0x38
jmp 0x1400429c6
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, rsi
call fcn.140041b60
xor r9d, r9d
xor r8d, r8d
mov rax, qword [0x1400ca5a8]
mov edx, dword [rax + 0x28]
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
mov qword [rbp - 0x68], r12
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x32
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea r8d, [r9 + 0x28]
mov rax, qword [0x1400ca5a8]
mov edx, dword [rax + 0x28]
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp qword [rbp - 0x68], 0
jne 0x140042a51
mov r8d, 0x104
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [0x140097d70]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140042a51
mov rdx, r14
mov rcx, rsi
call fcn.140042ec0
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.140041df0
jmp 0x140042ab4
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rcx, rax
je 0x140042a97
nop
cmp dword [rcx], r15d
je 0x140042a80
add rcx, 0x38
cmp rcx, rax
jne 0x140042a70
jmp 0x140042a97
add rcx, 8
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x68]
call fcn.140041ed0
mov r14, qword [rsp + 0x50]
test edi, edi
jne 0x140042ab4
mov r9, rbx
xor r8d, r8d
mov rax, qword [0x1400ca5a8]
mov edx, dword [rax + 0x28]
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
mov al, 1
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140064920
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140019330
nop
call fcn.140019330
int3