Function at 0x140040e90
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140053040]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, r8
mov qword [rsp + 0x40], r8
mov esi, edx
mov qword [rsp + 0x48], r8
xor r12d, r12d
mov r15, qword [0x140053e80]
cmp qword [r8 + 0x38], r12
je 0x14004145b
test esi, esi
je 0x14004148b
mov rax, qword [r15 + 0x78]
cmp rax, 6
jb 0x140040f22
lea rdi, [r15 + 0x60]
cmp rax, 0xf
jbe 0x140040eff
mov rdi, qword [r15 + 0x60]
mov qword [r15 + 0x70], 6
mov r8d, 6
lea rdx, str.Window
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + 6], 0
jmp 0x140040f37
lea r9, str.Window
mov edx, 6
lea rcx, [r15 + 0x60]
call fcn.140003270
lea r8, [r15 + 0x60]
lea rdx, [rsp + 0x20]
call fcn.14003f8f0
lea rcx, [r15 + 0x80]
mov rdx, rax
call fcn.140041f50
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140040f99
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040f94
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040f94
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400424b8
lea rbx, [r15 + 0xa0]
mov rax, qword [rbx + 0x18]
cmp rax, 0xb
jb 0x140040fd9
mov rdi, rbx
cmp rax, 0xf
jbe 0x140040fb6
mov rdi, qword [rbx]
mov qword [rbx + 0x10], 0xb
mov r8d, 0xb
lea rdx, str.WindowClass
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + 0xb], 0
jmp 0x140040fed
lea r9, str.WindowClass
mov edx, 0xb
mov rcx, rbx
call fcn.140003270
mov r8, rbx
lea rdx, [rsp + 0x20]
call fcn.14003f8f0
lea rcx, [r15 + 0xc0]
mov rdx, rax
call fcn.140041f50
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x14004104e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041049
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041049
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400424b8
xorps xmm0, xmm0
movups xmmword [r15 + 0xf0], xmm0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetTopWindow]
mov rbx, rax
mov rdi, r12
test rax, rax
je 0x1400410c9
nop dword [rax]
mov dword [rsp + 0x170], r12d
lea rdx, [rsp + 0x170]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400410b3
cmp dword [rsp + 0x170], esi
jne 0x1400410b3
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
jne 0x1400410b3
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
cmovne rdi, rbx
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
test rax, rax
jne 0x140041070
mov qword [r15 + 0x100], rdi
test rdi, rdi
je 0x1400414c1
mov r8d, 0x104
lea rdx, [rsp + 0x180]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rax, [rsp + 0x180]
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140041110
movabs rsi, 0x7fffffffffffffff
cmp rbx, rsi
ja 0x1400414f7
cmp rbx, 0xf
ja 0x140041169
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], 0xf
mov r8, rbx
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x20], 0
movabs r13, 0x8000000000000000
jmp 0x140041227
mov r14, rbx
or r14, 0xf
cmp r14, rsi
jbe 0x140041188
mov r14, rsi
movabs r13, 0x8000000000000000
lea rax, [r13 + 0x27]
jmp 0x1400411b9
mov r12d, 0x16
cmp r14, r12
cmovb r14, r12
lea rcx, [r14 + 1]
cmp rcx, 0x1000
jb 0x1400411dc
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400414fd
movabs r13, 0x8000000000000000
mov rcx, rax
call fcn.140042234
test rax, rax
je 0x1400411d5
lea r12, [rax + 0x27]
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
jmp 0x1400411f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400411eb
call fcn.140042234
mov r12, rax
jmp 0x1400411ee
xor r12d, r12d
movabs r13, 0x8000000000000000
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
mov r8, rbx
lea rdx, [rsp + 0x180]
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
mov byte [r12 + rbx], 0
mov r14, qword [rsp + 0x40]
xor r12d, r12d
mov ebx, 0x16
lea rcx, [r15 + 0x150]
lea rdx, [rsp + 0x20]
call fcn.140042080
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14004127a
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041275
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400413c0
call fcn.1400424b8
mov r8d, 0x104
lea rdx, [rsp + 0x180]
mov rcx, qword [r15 + 0x100]
call qword [sym.imp.USER32.dll_GetWindowTextA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rax, [rsp + 0x180]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400412a5
cmp rdi, rsi
ja 0x140041503
cmp rdi, 0xf
ja 0x1400412ea
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0xf
mov r8, rdi
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rdi + 0x20], 0
jmp 0x14004137b
mov rax, rdi
or rax, 0xf
cmp rax, rsi
jbe 0x140041315
lea rax, [r13 + 0x27]
mov rcx, rax
call fcn.140042234
test rax, rax
je 0x14004133c
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140041355
mov rsi, rax
cmp rax, 0x16
cmovb rsi, rbx
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x140041343
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140041509
jmp 0x1400412fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140041352
call fcn.140042234
mov rbx, rax
jmp 0x140041355
mov rbx, r12
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rsi
mov r8, rdi
lea rdx, [rsp + 0x180]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], 0
lea rcx, [r15 + 0x110]
lea rdx, [rsp + 0x20]
call fcn.140042080
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400413cc
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400413c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400413c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400424b8
mov dword [r15 + 0x1b0], 1
lea rcx, [r15 + 8]
mov rdx, r14
call fcn.140041dc0
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x10]
test al, al
je 0x14004150f
mov r8, qword [0x140053e58]
mov rdx, qword [0x140053e50]
mov rcx, r15
call fcn.14003f470
nop
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x18]
nop
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x14004142e
mov rax, qword [rcx]
cmp rcx, r14
setne dl
call qword [rax + 0x20]
mov qword [r14 + 0x38], r12
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140042130
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rdx, str.CallBack_is_empty
lea rcx, [rsp + 0x20]
call fcn.140002760
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14003f160
lea rdx, [0x140050810]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.PID_are_empty
lea rcx, [rsp + 0x20]
call fcn.140002760
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14003f160
lea rdx, [0x140050810]
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.DestWindow_isnt_exist
lea rcx, [rsp + 0x20]
call fcn.140002760
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.14003f160
lea rdx, [0x140050810]
lea rcx, [rsp + 0xc8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.140001260
int3
call fcn.1400011c0
int3
call fcn.140001260
int3
call fcn.1400011c0
int3
lea rdx, str.CreateMyWindow___call_failed
lea rcx, [rsp + 0x20]
call fcn.140002760
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.14003f160
lea rdx, [0x140050810]
lea rcx, [rsp + 0x100]
call sub.VCRUNTIME140.dll__CxxThrowException
int3