Function at 0x14001f120
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x460]
sub rsp, 0x560
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor edi, edi
mov dword [rsp + 0x50], edi
mov rcx, qword [0x140041488]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
lea ebx, [rax + 1]
movsxd r8, ebx
lea rcx, [rbp]
call fcn.140029f80
nop
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
mov r8d, ebx
mov rcx, qword [0x140041488]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
mov rax, qword [rbp + 0x10]
lea r9, [rdx + rax*2]
lea rdx, [rbp]
cmova rdx, qword [rbp]
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rdi
cmp rdx, r9
jne 0x14001f1ef
mov esi, edi
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], sil
jmp 0x14001f202
sub r9, rdx
sar r9, 1
lea rcx, [rbp - 0x20]
call fcn.14002b440
mov rsi, qword [rbp - 0x10]
mov r8d, 0x104
lea rdx, [rbp + 0x340]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rdi
lea rax, [rbp + 0x340]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14001f234
lea rdx, [rbp + 0x340]
lea rcx, [rbp - 0x40]
call fcn.1400040c0
nop
lea rbx, [rbp - 0x40]
mov r14, qword [rbp - 0x40]
mov r15, qword [rbp - 0x28]
cmp r15, 0xf
cmova rbx, r14
mov rdi, qword [rbp - 0x30]
test rdi, rdi
je 0x14001f2fe
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x240], xmm0
movups xmmword [rbp + 0x250], xmm0
movups xmmword [rbp + 0x260], xmm0
movups xmmword [rbp + 0x270], xmm0
movups xmmword [rbp + 0x280], xmm0
mov qword [rbp + 0x290], rax
mov dword [rbp + 0x298], eax
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp + 0x29d]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + 0x29c], 1
lea rax, [rdi - 1]
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
add r8, rbx
movzx eax, byte [r8]
cmp byte [rbp + rax + 0x240], 0
jne 0x14001f2f9
cmp r8, rbx
je 0x14001f2fe
dec r8
movzx eax, byte [r8]
cmp byte [rbp + rax + 0x240], 0
je 0x14001f2e3
sub r8, rbx
jmp 0x14001f305
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
inc r8
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rbp - 0x40]
cmp r15, 0xf
cmova rdx, r14
lea rcx, [rsp + 0x60]
call fcn.1400040c0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x14001f371
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f36c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f9f0
call fcn.14002dd70
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp - 0x30], xmm0
movq r14, xmm0
movabs r8, 0x7fffffffffffffff
mov rax, r8
sub rax, r14
cmp rax, rsi
jb 0x14001fb0f
lea r12, [rbp - 0x40]
movq rcx, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova r12, rcx
lea r13, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova r13, qword [rbp - 0x20]
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xor edx, edx
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rdx
lea r15, [r14 + rsi]
mov ebx, 0xf
lea rdi, [rbp - 0x60]
cmp r15, rbx
jbe 0x14001f467
mov rbx, r15
or rbx, 0xf
cmp rbx, r8
jbe 0x14001f429
mov rbx, r8
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14002dd78
test rax, rax
je 0x14001f9f0
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14001f463
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14001f451
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001fb15
jmp 0x14001f40a
test rcx, rcx
je 0x14001f460
call fcn.14002dd78
mov rdi, rax
jmp 0x14001f463
mov rdi, rdx
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], rbx
mov r8, r14
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rdi + r14]
mov r8, rsi
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r15], 0
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rbx, qword [rbp - 0x60]
lea rax, [0x1400358f8]
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0xd0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x50], 7
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x20], r13
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x30], rax
mov byte [rbp + 0xac], 0
mov byte [rbp + 0xa1], 0
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
xor r12d, r12d
mov qword [rbp + 0xb0], r12
mov rax, qword [0x140041698]
mov qword [rbp + 0xa4], rax
mov qword [rbp + 0x98], r12
lea r8d, [r12 + 0x21]
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.140027e30
test rax, rax
jne 0x14001f58c
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r12 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x20], r13
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x1c], edx
cmp qword [rbp + 0xb0], 0
jne 0x14001f5fc
lea rdx, str.Error_opening_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400287b0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
mov rcx, rax
call fcn.14002b870
lea rdx, [0x140028980]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ebx, 1
jmp 0x14001f97e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
mov qword [rsp + 0x60], r12
mov word [rsp + 0x68], 1
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0x68]
mov qword [rsp + 0x40], rax
test rax, rax
sete byte [rsp + 0x48]
mov byte [rsp + 0x49], 0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r12
lea rcx, [rbp - 0x78]
mov qword [rbp - 0x80], rcx
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
movzx esi, byte [rsp + 0x49]
mov rbx, qword [rsp + 0x40]
movzx r15d, byte [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
test rax, rax
jne 0x14001f680
movzx r14d, byte [rsp + 0x48]
jmp 0x14001f6a0
test rbx, rbx
je 0x14001f698
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x14001f698
movzx esi, al
jmp 0x14001f69b
mov rbx, r12
mov r14b, 1
nop
test r15b, r15b
jne 0x14001f6be
test rdi, rdi
je 0x14001f6b8
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
jne 0x14001f6bb
mov rdi, r12
mov r15b, 1
test rbx, rbx
jne 0x14001f763
test rdi, rdi
jne 0x14001f76c
lea rcx, [rbp + 0x30]
call fcn.140027d70
test rax, rax
jne 0x14001f6fa
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x130]
call sub.VCRUNTIME140.dll_memset
mov r8d, 2
lea rdx, str.Dump_Byte.txt
lea rcx, [rbp + 0x130]
call fcn.1400266b0
nop
cmp qword [rbp + 0x1b8], 0
jne 0x14001f7db
lea rdx, str.Error_opening_output_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400287b0
lea rdx, [0x140028980]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ebx, 1
jmp 0x14001f8dc
test rdi, rdi
jne 0x14001f6d0
test r14b, r14b
jne 0x14001f78c
test rbx, rbx
je 0x14001f789
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x14001f789
movzx esi, al
jmp 0x14001f78c
mov rbx, r12
mov byte [rsp + 0x30], sil
mov rax, qword [rbp - 0x70]
cmp rax, qword [rbp - 0x68]
je 0x14001f7a4
mov byte [rax], sil
inc qword [rbp - 0x70]
jmp 0x14001f7b6
lea r8, [rsp + 0x30]
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x78]
call fcn.14002ccc0
test rbx, rbx
je 0x14001f698
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x14001f698
mov byte [rsp + 0x48], 0
jmp 0x14001f680
mov rdi, r12
mov rax, qword [rbp - 0x70]
cmp rax, qword [rbp - 0x78]
je 0x14001f8a6
nop dword [rax]
lea rdx, [0x140033920]
lea rcx, [rbp + 0x130]
call fcn.1400287b0
lea rdx, [0x140002430]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rdx, [0x140002410]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rbx, rax
mov edx, 2
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, qword [rax]
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call r8
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov byte [rdx + rbx + 0x58], gethostbyname
mov rax, qword [rbp - 0x78]
movzx edx, byte [rax + rdi]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x14003451c]
call fcn.1400287b0
lea rax, [rdi + 1]
mov rdi, rax
test al, 0xf
jne 0x14001f895
lea rdx, [0x140028980]
lea rcx, [rbp + 0x130]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword [rbp - 0x70]
sub rax, qword [rbp - 0x78]
cmp rdi, rax
jb 0x14001f7f0
lea rcx, [rbp + 0x138]
call fcn.140027d70
test rax, rax
jne 0x14001f8d9
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x130]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov ebx, r12d
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x130], rax
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x12c], edx
lea rcx, [rbp + 0x138]
call fcn.140026640
lea rcx, [rbp + 0x140]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x1d8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14001f97e
mov rdx, qword [rbp - 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f96d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001f96d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r12
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x20], r13
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x30]
call fcn.140026640
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x14001f9fc
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f9f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001f9f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x14001fa4a
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fa45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001fa45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], 0
mov rax, qword [rbp - 8]
cmp rax, 0xf
jbe 0x14001fa9a
lea rdx, [rax + 1]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fa94
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001fa94
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x14001fadd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fad8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001fad8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
mov eax, ebx
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.14002dd50
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001c30
nop
call fcn.140001b90
int3