Function at 0x140005480
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x310
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov edi, r8d
mov rbx, rcx
test edx, edx
jne 0x140005657
cmp edi, 0x40d
ja 0x140005740
je 0x14000567c
mov eax, edi
sub eax, 1
je 0x14000552e
sub eax, 1
je 0x140005615
cmp eax, 0x400
jne 0x140005657
lea rcx, [rsp + 0x50]
call fcn.140092c70
mov rcx, qword [rbx + 0x20]
lea rax, [0x1400c5d08]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x80], 0x40f
mov qword [rsp + 0xa8], 0xa5
mov qword [rsp + 0x68], 0xa6
call fcn.140092c60
mov eax, 1
jmp 0x140005659
mov rcx, qword [rcx + 0x20]
mov edx, 0x40f
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, qword [rbx + 0x240]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rsi, rax
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x140005646
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x140005646
lea rbp, [rbx + 0x38]
mov r8d, 0x104
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx + 0x240]
lea r9, [rsp + 0x20]
xor esi, esi
mov qword [rsp + 0x20], 2
xorps xmm0, xmm0
mov qword [rsp + 0x40], rsi
mov edx, 0x1053
mov qword [rsp + 0x28], rbp
movdqu xmmword [rsp + 0x30], xmm0
lea r8, [rsi - 1]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x1400055de
mov rcx, qword [rbx + 0x20]
lea edx, [rsi + 3]
mov r9, rbp
mov r8d, 0xda
call fcn.140091bf0
cmp eax, 6
jne 0x140005615
mov rcx, qword [rbx + 0x20]
lea r8, [0x140005030]
mov r9, rbx
mov edx, 0xd8
call fcn.140018880
cmp dword [rbx + 0x248], esi
jne 0x140005615
mov rcx, qword [rbx + 0x20]
mov r9, rbp
mov edx, 4
mov r8d, 0xdf
call fcn.140091bf0
test byte [rbx + 0x30], 4
mov r8, rdi
mov rcx, qword [rbx + 0x20]
je 0x140005632
mov rdx, rdi
call qword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
jmp 0x140005659
xor r9d, r9d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
jmp 0x140005659
mov rcx, qword [rbx + 0x20]
xor r8d, r8d
mov edx, 0xd7
call fcn.140091750
xor eax, eax
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140094850
mov rbx, qword [rsp + 0x338]
add rsp, 0x310
pop rdi
pop rsi
pop rbp
ret
lea r9, [0x1400e25b0]
xor r8d, r8d
lea rcx, [rsp + 0xf0]
call fcn.140018f60
mov rbp, qword [rbx + 0x20]
mov ecx, 0x8002
xor esi, esi
call fcn.140094b74
lea rcx, [rsp + 0x50]
mov rdi, rax
call fcn.140092c70
or dword [rsp + 0xb0], 0x200
lea rax, [rsp + 0xf0]
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x80], rdi
mov rcx, rbp
mov dword [rsp + 0x88], 0x4000
mov qword [rsp + 0xa8], 0xd5
mov qword [rsp + 0x68], 0x102
mov word [rdi], si
call fcn.140092c50
test eax, eax
je 0x140005715
mov rdx, rdi
mov rcx, rbp
call fcn.140019a60
mov rsi, rax
mov rcx, rdi
call fcn.140062970
test rsi, rsi
je 0x140005736
mov rdx, rsi
mov rcx, rbx
call fcn.140005040
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
jmp 0x140005659
sub edi, 0x40e
je 0x140005771
cmp edi, 2
jne 0x140005657
mov rcx, qword [rcx + 0x240]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1009
call qword [sym.imp.USER32.dll_SendMessageW]
lea eax, [rdi - 1]
jmp 0x140005659
call fcn.140005380
mov eax, 1
jmp 0x140005659