Function at 0x140050500
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x60
movzx edx, byte [0x140109ee2]
xor esi, esi
mov rcx, qword [0x1401128d8]
movzx r9d, byte [0x14015b41d]
movzx r10d, byte [0x14015b41c]
movzx r8d, byte [0x14015b40c]
mov qword [rax + 8], rbp
mov qword [rax + 0x10], r12
mov r12d, dword [0x140157c00]
mov qword [rax + 0x18], r13
movzx r13d, dl
mov qword [rax - 0x20], r14
mov eax, dword [0x14015a560]
cmp eax, 3
jne 0x140050598
test rcx, rcx
je 0x140050598
test r8b, r8b
jne 0x14005056b
cmp byte [0x14015b40f], sil
je 0x140050598
cmp dword [0x1401429e0], 0x62
jb 0x140050598
test r10b, r10b
jne 0x14005057e
test r9b, r9b
je 0x140050598
cmp word [0x14015b414], si
je 0x140050598
cmp byte [0x14015b417], sil
je 0x140050598
mov r14d, 1
jmp 0x1400505a0
mov r14d, esi
cmp eax, 3
jne 0x140050615
test rcx, rcx
je 0x140050615
test r8b, r8b
je 0x140050615
cmp word [0x14015b436], si
jne 0x1400505c5
cmp byte [0x14015b424], sil
jne 0x1400505c5
cmp byte [0x14015b423], sil
je 0x140050615
test r10b, r10b
jne 0x140050615
test r9b, r9b
jne 0x140050615
cmp byte [0x14015b42b], sil
jne 0x140050615
movzx ecx, word [0x14015b412]
movzx eax, cl
and al, 7
cmp al, 7
je 0x140050615
movzx eax, cl
and al, 0x23
cmp al, 0x23
je 0x140050615
mov eax, 0x1c0
and cx, ax
cmp cx, ax
je 0x140050615
cmp byte [0x14015b0c0], sil
jne 0x140050615
cmp byte [0x14015b427], sil
mov ebp, 1
je 0x140050617
mov ebp, esi
mov rcx, rdx
lea r8, [0x1400d4430]
and ecx, 0xf
mov rax, rdx
shr rax, 4
movzx eax, byte [rax + r8]
add al, byte [rcx + r8]
cmp al, 1
jbe 0x140050658
mov r8d, 0x310
lea rdx, str.C:_src_r3dusb_srcui.c
lea rcx, str.popcnt8_image_options____1
call fcn.1400a15c4
movzx edx, byte [0x140109ee2]
cmp byte [0x14015a580], sil
lea rdi, [0x14015a580]
jne 0x14005072f
mov rcx, qword [0x14015a568]
mov edx, 0x7de
mov qword [rsp + 0x50], r15
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 2
mov byte [0x14015a580], sil
mov rbx, rax
lea ecx, [rdx + 0x7e]
call fcn.1400966e0
mov r8d, 0x80
mov rdx, rax
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
test ebx, ebx
je 0x1400506ff
mov qword [rsp + 0x38], rsi
lea rax, [0x14015a580]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0x80
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400506ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
test rdi, rdi
je 0x14005070c
mov rcx, rdi
call fcn.14009b5a0
mov byte [0x14015a5ff], sil
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx edx, byte [0x140109ee2]
lea rdi, [0x14015a580]
mov r15, qword [rsp + 0x50]
test r14d, r14d
je 0x14005073b
test dl, 1
je 0x140050740
jmp 0x1400507ba
test dl, 1
je 0x1400507ba
xor dl, 1
mov byte [0x140109ee2], dl
test dl, 1
je 0x1400507ba
mov rcx, qword [0x14015a568]
mov edx, 0x7de
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rdi
mov rbx, rax
call fcn.140003550
mov rdx, rax
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rdi, rdi
je 0x14005078f
mov rcx, rdi
call fcn.14009b5a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movsxd r8, dword [0x140111a80]
xor r9d, r9d
mov rcx, qword [0x14015a1e8]
mov edx, 0x14e
call qword [sym.imp.USER32.dll_SendMessageW]
movzx edx, byte [0x140109ee2]
test ebp, ebp
je 0x1400507c8
test dl, 2
je 0x1400507d1
jmp 0x140050852
test dl, 2
je 0x140050852
xor dl, 2
mov byte [0x140109ee2], dl
test dl, 2
je 0x140050852
mov ecx, 0xc33
call fcn.14001b320
mov rcx, qword [0x14015a568]
mov edx, 0x7de
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rbx
mov rdi, rax
call fcn.140003550
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test rbx, rbx
je 0x14005082d
mov rcx, rbx
call fcn.14009b5a0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
cmp qword [0x140111618], rcx
setne cl
call fcn.140050040
call fcn.1400502d0
movzx edx, byte [0x140109ee2]
test r13b, r13b
je 0x14005086a
test r14d, r14d
jne 0x140050900
test ebp, ebp
jne 0x140050900
jmp 0x140050877
test r14d, r14d
jne 0x140050877
test ebp, ebp
je 0x140050900
test r12d, r12d
je 0x140050900
mov edi, r12d
movaps xmmword [rsp + 0x40], xmm6
movss xmm6, dword [0x1400f6448]
lea r14, [0x1400d4490]
neg edi
mov ebp, esi
test r13b, r13b
cmove edi, r12d
add dword [0x1401577ac], edi
add dword [0x1401577b0], edi
nop
mov rbx, qword [0x14015a568]
mov edx, dword [r14]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
movss dword [rsp + 0x30], xmm6
mov r9d, edi
mov rdx, rax
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov dword [rsp + 0x20], esi
mov rcx, rbx
call fcn.140043b20
inc ebp
lea r14, [r14 + 4]
cmp ebp, 0x1f
jb 0x1400508b0
mov ecx, edi
call fcn.14004f900
movzx edx, byte [0x140109ee2]
movaps xmm6, xmmword [rsp + 0x40]
mov r14, qword [rsp + 0x58]
lea rdi, [0x1400d4588]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rdi + 4]
and cl, dl
mov edx, dword [rdi]
neg cl
mov rcx, qword [0x14015a568]
sbb ebx, ebx
and ebx, 5
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.USER32.dll_ShowWindow]
inc esi
lea rdi, [rdi + 8]
cmp esi, 5
jae 0x14005096a
movzx edx, byte [0x140109ee2]
jmp 0x140050930
mov rcx, qword [0x14015a568]
xor edx, edx
lea r8d, [rdx + 1]
add rsp, 0x60
pop rdi
pop rsi
pop rbx
jmp qword [sym.imp.USER32.dll_InvalidateRect]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
and esp, dword [rbx]
or eax, 0x22206c0a
insb byte [rdi], dx
sub eax, 0x20225247
and al, byte [rdi + 0x72]
imul esp, dword gs:[rax], 0x28
imul esp, dword gs:[rax], 0x28
and byte [rax], ch
invalid
invalid