Function at 0x140016140
Capabilities:
Get graphical window text
Query or enumerate registry value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x100
lea rbp, [rsp + 0x60]
mov qword [rbp + 0xc8], rbx
mov qword [rbp + 0xd0], rsi
mov qword [rbp + 0xd8], rdi
mov rax, qword [0x14005f660]
xor rax, rbp
mov qword [rbp + 0x98], rax
xor eax, eax
xor r14d, r14d
mov rbx, rcx
mov rcx, qword [rcx + 8]
lea rdx, [rbp + 0x88]
lea r8d, [r14 + 8]
mov word [rbp + 0x88], r14w
mov qword [rbp + 0x8a], rax
mov dword [rbp + 0x92], eax
mov word [rbp + 0x96], ax
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdi, [r14 - 0x10]
test eax, eax
je 0x14001621c
lea rdx, str.static
lea rcx, [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14001621c
mov rcx, qword [rbx + 8]
mov edx, edi
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r8d, eax
bts r8d, 8
cmp eax, r8d
je 0x1400161f6
mov rcx, qword [rbx + 8]
mov edx, edi
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [rbx + 8]
mov edx, edi
call qword [sym.imp.USER32.dll_GetWindowLongW]
movzx ecx, al
lea eax, [rcx - 3]
cmp eax, 6
jbe 0x140016215
lea eax, [rcx - 0xd]
cmp eax, 2
ja 0x14001621c
and byte [rbx + 0x94], 0xfe
mov edx, 0x7f89
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov r15d, 1
mov qword [rbx + 0x58], rax
test byte [rbx + 0x94], r15b
je 0x1400162e2
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetParent]
lea edx, [r15 + 0x30]
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rbx + 0x68], rax
test rax, rax
jne 0x140016273
lea ecx, [rax + 0xd]
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rbx + 0x68], rax
cmp qword [rbx + 0x68], r14
je 0x1400162e2
cmp qword [rbx + 0x60], r14
jne 0x1400162e2
xor edx, edx
lea rcx, [rbp + 0x14]
mov dword [rbp + 0x10], r14d
lea r8d, [rdx + 0x58]
call fcn.140027620
mov rcx, qword [rbx + 0x68]
lea r8, [rbp + 0x10]
mov edx, 0x5c
call qword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [rbx + 0x90]
and eax, 0x30
cmp al, 0x30
jne 0x1400162bb
mov dword [rbp + 0x20], 0x2bc
jmp 0x1400162cd
movzx eax, byte [rbp + 0x25]
test byte [rbx + 0x90], r15b
cmove eax, r15d
mov byte [rbp + 0x25], al
lea rcx, [rbp + 0x10]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
or byte [rbx + 0x94], 8
mov qword [rbx + 0x60], rax
mov r9d, dword [0x140060c0c]
mov edx, dword [0x140060c08]
mov r8d, dword [0x140060c14]
mov rax, qword [0x140062078]
mov ecx, dword [0x140060c10]
mov r10, qword [rbx + 8]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r10
sub r8d, r9d
sub ecx, edx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x20], edx
lea rdx, str.tooltips_class32
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea rsi, [rbx + 0x80]
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rsi], rax
cmp qword [rbx + 0x48], r14
jne 0x1400163b1
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x1400163b1
lea r8d, [rax + 1]
movsxd rax, r8d
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140016382
movabs rcx, 0xffffffffffffff0
and rcx, rdi
mov rax, rcx
call fcn.140035a30
sub rsp, rcx
mov rcx, qword [rbx + 8]
lea rdi, [rsp + 0x60]
mov rdx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1400163b1
mov rdx, rdi
mov rcx, rbx
call fcn.140015ab4
mov rcx, rbx
call fcn.140015ca0
cmp qword [rbx + 0x50], r14
jne 0x1400163e0
mov eax, dword [rbx + 0x90]
shr eax, 2
test r15b, al
jne 0x1400163e0
mov rdx, qword [rbx + 0x48]
test rdx, rdx
je 0x140016408
mov rcx, rbx
call fcn.140015f1c
jmp 0x140016408
mov rcx, qword [rsi]
xor r9d, r9d
mov r8, r15
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageW]
mov r8, qword [rbx + 0x50]
mov rdx, qword [rbx + 8]
lea r9, [rbx + 0x70]
mov rcx, rsi
call fcn.140015fc0
test byte [rbx + 0x94], r15b
je 0x140016566
lea r8, str.SoftwareMicrosoftInternet_ExplorerSettings
lea rcx, [rbp + 0x70]
mov r9d, 0x2001f
mov rdx, 0xffffffff80000001
mov qword [rbp + 0x70], r14
mov dword [rbp + 0x78], r14d
mov qword [rbp + 0x80], r14
call fcn.14000ec28
mov rdi, qword [rbp + 0x70]
test eax, eax
jne 0x140016558
xor eax, eax
lea r9, [rbp + 4]
lea rdx, str.Anchor_Color
mov qword [rbp + 0x72], rax
mov qword [rbp + 0x7a], rax
mov dword [rbp + 0x82], eax
mov word [rbp + 0x86], ax
lea rax, [rbp]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x70]
mov rcx, rdi
mov word [rbp + 0x70], r14w
mov dword [rbp], 0x18
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or esi, 0xffffffff
test eax, eax
jne 0x1400164e2
mov eax, dword [rbp + 4]
dec eax
cmp eax, r15d
ja 0x1400164e2
mov eax, dword [rbp]
test eax, eax
je 0x1400164c3
test r15b, al
jne 0x1400164e2
shr rax, 1
cmp word [rbp + rax*2 + 0x6e], r14w
je 0x1400164c8
jmp 0x1400164e2
mov word [rbp + 0x70], r14w
mov eax, r14d
test eax, eax
jne 0x1400164e2
lea rcx, [rbp + 0x70]
call fcn.140016070
cmp eax, esi
je 0x1400164e2
mov dword [rbx + 0x88], eax
lea rax, [rbp]
lea r9, [rbp + 4]
lea rdx, str.Anchor_Color_Visited
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x70]
xor r8d, r8d
mov rcx, rdi
mov dword [rbp], 0x18
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140016558
mov eax, dword [rbp + 4]
dec eax
cmp eax, r15d
ja 0x140016558
mov eax, dword [rbp]
test eax, eax
je 0x140016539
test r15b, al
jne 0x140016558
shr rax, 1
cmp word [rbp + rax*2 + 0x6e], r14w
je 0x14001653e
jmp 0x140016558
mov word [rbp + 0x70], r14w
mov eax, r14d
test eax, eax
jne 0x140016558
lea rcx, [rbp + 0x70]
call fcn.140016070
cmp eax, esi
je 0x140016558
mov dword [rbx + 0x8c], eax
test rdi, rdi
je 0x140016566
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x98]
xor rcx, rbp
call fcn.1400268f0
mov rbx, qword [rbp + 0xc8]
mov rsi, qword [rbp + 0xd0]
mov rdi, qword [rbp + 0xd8]
lea rsp, [rbp + 0xa0]
pop r15
pop r14
pop rbp
ret