Function at 0x140036a40
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 - 0x450]
sub rsp, 0x550
mov rax, qword [0x14006a040]
xor rax, rsp
mov qword [rbp + 0x440], rax
xor edi, edi
mov rcx, qword [0x14006b770]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
lea ebx, [rax + 1]
movsxd r8, ebx
lea rcx, [rbp - 0x10]
call fcn.140048730
nop
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rdx, qword [rbp - 0x10]
mov r8d, ebx
mov rcx, qword [0x14006b770]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rdx, qword [rbp - 0x10]
mov rax, qword [rbp]
lea r9, [rdx + rax*2]
lea rdx, [rbp - 0x10]
cmova rdx, qword [rbp - 0x10]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
cmp rdx, r9
jne 0x140036b0b
mov esi, edi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], sil
jmp 0x140036b1e
sub r9, rdx
sar r9, 1
lea rcx, [rbp - 0x30]
call fcn.140049cb0
mov rsi, qword [rbp - 0x20]
mov r8d, 0x104
lea rdx, [rbp + 0x330]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
lea rax, [rbp + 0x330]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140036b50
lea rdx, [rbp + 0x330]
lea rcx, [rbp - 0x50]
call fcn.140004c00
nop
lea rbx, [rbp - 0x50]
mov r14, qword [rbp - 0x50]
mov r15, qword [rbp - 0x38]
cmp r15, 0xf
cmova rbx, r14
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x140036c1b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x230], xmm0
movups xmmword [rbp + 0x240], xmm0
movups xmmword [rbp + 0x250], xmm0
movups xmmword [rbp + 0x260], xmm0
movups xmmword [rbp + 0x270], xmm0
mov qword [rbp + 0x280], rax
mov dword [rbp + 0x288], eax
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp + 0x28d]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + 0x28c], 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 + 0x230], 0
jne 0x140036c16
nop
cmp r8, rbx
je 0x140036c1b
dec r8
movzx eax, byte [r8]
cmp byte [rbp + rax + 0x230], 0
je 0x140036c00
sub r8, rbx
jmp 0x140036c22
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
inc r8
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rbp - 0x50]
cmp r15, 0xf
cmova rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140004c00
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x140036c8e
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036c89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037254
call fcn.14004de50
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x40], xmm0
movq r14, xmm0
movabs r8, 0x7fffffffffffffff
mov rax, r8
sub rax, r14
cmp rax, rsi
jb 0x140037373
lea r12, [rbp - 0x50]
movq rcx, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova r12, rcx
lea r13, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova r13, qword [rbp - 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xor edx, edx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x58], rdx
lea r15, [r14 + rsi]
mov ebx, 0xf
lea rdi, [rbp - 0x70]
cmp r15, rbx
jbe 0x140036d84
mov rbx, r15
or rbx, 0xf
cmp rbx, r8
jbe 0x140036d46
mov rbx, r8
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14004de58
test rax, rax
je 0x140037254
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140036d80
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140036d6e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140037379
jmp 0x140036d27
test rcx, rcx
je 0x140036d7d
call fcn.14004de58
mov rdi, rax
jmp 0x140036d80
mov rdi, rdx
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], 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, 0x110
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rdx, qword [rbp - 0x70]
mov r8d, 0x20
lea rcx, [rbp + 0x10]
call fcn.14003f0c0
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], r13
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xc], edx
cmp qword [rbp + 0xa0], 0
jne 0x140036e56
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.140044180
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rdx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x60]
mov rcx, rax
call fcn.14004a280
lea rdx, [0x140044350]
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
xor r12d, r12d
jmp 0x1400371e2
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rax
xor r12d, r12d
mov qword [rsp + 0x50], r12
mov word [rsp + 0x58], 1
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0x58]
mov qword [rsp + 0x40], rax
test rax, rax
sete byte [rsp + 0x48]
mov byte [rsp + 0x49], r12b
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x70], rcx
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], 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 + 0x58]
mov rdi, qword [rsp + 0x50]
test rax, rax
jne 0x140036ee1
movzx r14d, byte [rsp + 0x48]
jmp 0x140036f00
test rbx, rbx
je 0x140036ef9
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 0x140036ef9
movzx esi, al
jmp 0x140036efc
mov rbx, r12
mov r14b, 1
nop
test r15b, r15b
jne 0x140036f1e
test rdi, rdi
je 0x140036f18
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 0x140036f1b
mov rdi, r12
mov r15b, 1
test rbx, rbx
jne 0x140036fc3
test rdi, rdi
jne 0x140036fcc
lea rcx, [rbp + 0x20]
call fcn.140042d40
test rax, rax
jne 0x140036f5a
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x10]
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 + 0x120]
call sub.VCRUNTIME140.dll_memset
mov r8d, 2
lea rdx, str.Dump_Byte.txt
lea rcx, [rbp + 0x120]
call fcn.140040860
nop
cmp qword [rbp + 0x1a8], 0
jne 0x14003703c
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.140044180
lea rdx, [0x140044350]
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 0x14003713e
test rdi, rdi
jne 0x140036f30
test r14b, r14b
jne 0x140036fec
test rbx, rbx
je 0x140036fe9
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 0x140036fe9
movzx esi, al
jmp 0x140036fec
mov rbx, r12
mov byte [rsp + 0x30], sil
mov rax, qword [rbp - 0x80]
cmp rax, qword [rbp - 0x78]
je 0x140037004
mov byte [rax], sil
inc qword [rbp - 0x80]
jmp 0x140037017
lea r8, [rsp + 0x30]
mov rdx, qword [rbp - 0x80]
lea rcx, [rsp + 0x78]
call fcn.14004cd70
test rbx, rbx
je 0x140036ef9
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 0x140036ef9
mov byte [rsp + 0x48], 0
jmp 0x140036ee1
mov rdi, r12
mov rax, qword [rbp - 0x80]
cmp rax, qword [rsp + 0x78]
je 0x140037108
nop
lea rdx, [0x1400588c4]
lea rcx, [rbp + 0x120]
call fcn.140044180
lea rdx, [0x140002870]
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, [0x140002850]
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 + 0x50]
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 [rsp + 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, [0x14005a80c]
call fcn.140044180
lea rax, [rdi + 1]
mov rdi, rax
test al, 0xf
jne 0x1400370f6
lea rdx, [0x140044350]
lea rcx, [rbp + 0x120]
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 - 0x80]
sub rax, qword [rsp + 0x78]
cmp rdi, rax
jb 0x140037050
lea rcx, [rbp + 0x128]
call fcn.140042d40
test rax, rax
jne 0x14003713b
mov rax, qword [rbp + 0x120]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x120]
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 + 0x120]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x120], rax
mov rax, qword [rbp + 0x120]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x11c], edx
lea rcx, [rbp + 0x128]
call fcn.1400407f0
lea rcx, [rbp + 0x130]
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 + 0x1c8]
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 [rsp + 0x78]
test rcx, rcx
je 0x1400371e2
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400371d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400371d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x10], r13
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xc], edx
lea rcx, [rbp + 0x20]
call fcn.1400407f0
lea rcx, [rbp + 0x28]
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 + 0xc0]
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 - 0x58]
cmp rdx, 0xf
jbe 0x140037260
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003725b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003725b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x1400372ae
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400372a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400372a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
mov rax, qword [rbp - 0x18]
cmp rax, 0xf
jbe 0x1400372fe
lea rdx, [rax + 1]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400372f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400372f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
nop
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x140037341
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003733c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003733c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
mov eax, ebx
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.14004de30
lea r11, [rsp + 0x550]
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.140002030
nop
call fcn.140001f90
int3