Function at 0x140016720
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x1060]
mov eax, 0x1160
call fcn.140024d80
sub rsp, rax
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x1170], rbx
mov qword [rsp + 0x1178], rsi
mov qword [rsp + 0x1180], rdi
mov rax, qword [0x1400512d0]
xor rax, rsp
mov qword [rbp + 0x1050], rax
movups xmm0, xmmword [0x140043740]
movups xmmword [rbp + 0x30], xmm0
xor esi, esi
mov word [rbp + 0x40], si
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x42]
call fcn.140024640
xor edx, edx
mov r8d, 0x80e
lea rcx, [rbp + 0x840]
call fcn.140024640
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r9d, [rsi + 1]
mov r8d, 0xf003f
lea rcx, [rbp + 0x30]
call qword [sym.imp.SETUPAPI.dll_CM_Open_Class_KeyW]
test eax, eax
jne 0x140016c45
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140016c22
mov dword [rsp + 0x30], 0x800
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.UpperFilters
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140016bf1
test byte [0x1400512b0], 4
je 0x140016840
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x40]
lea r8, str.szFilters_s__dwBufLen_d_n
lea edx, [rsi + 3]
lea rcx, str.CEnhanceCallerService::CheckAndAddSynTPToKeyBoardClassUpperFilter
call fcn.1400206a0
lea rax, [rsp + 0x68]
mov qword [rbp], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 8], rax
lea rax, [rbp - 0x78]
mov qword [rbp - 0x18], rax
lea rax, [rsp + 0x48]
mov qword [rbp + 8], rax
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
xor r8d, r8d
lea rdx, [0x140040d7c]
lea rcx, [rsp + 0x68]
call fcn.14000e180
nop
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x58], si
xor r8d, r8d
lea rdx, [0x140040d7c]
lea rcx, [rbp - 0x58]
call fcn.14000e180
nop
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rsi
mov word [rbp - 0x78], si
xor r8d, r8d
lea rdx, [0x140040d7c]
lea rcx, [rbp - 0x78]
call fcn.14000e180
nop
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
xor r8d, r8d
lea rdx, [0x140040d7c]
lea rcx, [rsp + 0x48]
call fcn.14000e180
nop
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], rsi
mov word [rbp - 0x38], si
mov r8d, 5
lea rdx, str.SynTP
lea rcx, [rbp - 0x38]
call fcn.14000e180
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x10]
call fcn.14001e5c0
nop
lea r9, [rbp + 0x40]
mov r10, qword [rbp + 0x28]
mov r11, qword [rbp + 0x10]
movzx edi, word [rbp + 0x40]
test di, di
je 0x140016a2f
movsxd rbx, dword [rsp + 0x30]
nop dword [rax + rax]
lea rcx, [rbp + 0x40]
mov rax, r9
sub rax, rcx
sar rax, 1
cmp rax, rbx
jge 0x140016a2f
lea r8, [rbp + 0x10]
cmp r10, 8
cmovae r8, r11
mov rax, r9
sub r8, r9
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400169b4
add rax, 2
test ecx, ecx
jne 0x1400169a0
test edx, edx
je 0x1400169dd
or rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [r9 + rax*2], 0
jne 0x1400169c0
lea r9, [r9 + rax*2]
add r9, 2
cmp word [r9], 0
jne 0x140016970
jmp 0x140016a2f
test byte [0x1400512b0], 4
je 0x140016a0a
lea r9, [rbp + 0x10]
cmp r10, 8
cmovae r9, r11
lea r8, str._s_already_installed__done_n
mov edx, 3
lea rcx, str.CEnhanceCallerService::CheckAndAddSynTPToKeyBoardClassUpperFilter
call fcn.1400206a0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp + 0x28], 8
jb 0x140016c69
mov rcx, qword [rbp + 0x10]
call fcn.140021650
jmp 0x140016c69
mov r9d, dword [0x1400512b0]
test r9b, 4
je 0x140016a73
lea r9, [rbp + 0x10]
cmp r10, 8
cmovae r9, r11
lea r8, str.Will_add__s_to_the_list_at_the_beginning_n
mov edx, 3
lea rcx, str.CEnhanceCallerService::CheckAndAddSynTPToKeyBoardClassUpperFilter
call fcn.1400206a0
movzx edi, word [rbp + 0x40]
mov r10, qword [rbp + 0x28]
mov r11, qword [rbp + 0x10]
mov r9d, dword [0x1400512b0]
lea rcx, [rbp + 0x10]
cmp r10, 8
cmovae rcx, r11
lea rdx, [rbp + 0x840]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx], ax
lea rcx, [rcx + 2]
lea rdx, [rdx + 2]
test ax, ax
jne 0x140016a90
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x840]
or rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140016ab2
lea rbx, [rbp + 0x842]
lea rbx, [rbx + rax*2]
test di, di
je 0x140016b39
nop dword [rax]
lea rax, [rbp + 0x40]
mov rcx, rdx
sub rcx, rax
sar rcx, 1
movsxd rax, dword [rsp + 0x30]
cmp rcx, rax
jge 0x140016b39
mov rax, rdx
mov r8, rbx
sub r8, rdx
movzx ecx, word [rax]
mov word [r8 + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140016af0
or rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rdx + rax*2], 0
jne 0x140016b05
lea rdx, [rdx + rax*2]
add rdx, 2
or rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rbx + rax*2], 0
jne 0x140016b20
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rdx], 0
jne 0x140016ad0
test r9b, 4
je 0x140016b74
lea rcx, [rbp + 0x840]
mov rax, rbx
sub rax, rcx
sar rax, 1
inc eax
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x840]
lea r8, str.will_set_szFiltersNew_s__len_d_n
mov edx, 3
lea rcx, str.CEnhanceCallerService::CheckAndAddSynTPToKeyBoardClassUpperFilter
call fcn.1400206a0
mov word [rbx], si
lea rax, [rbp + 0x840]
sub rbx, rax
sar rbx, 1
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x840]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
lea rdx, str.UpperFilters
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140016bdf
test byte [0x1400512b0], 4
je 0x140016bdf
mov r9d, eax
lea r8, str.RegSetValueEx_Error:_lRet2__x_n
mov edx, 3
lea rcx, str.CEnhanceCallerService::CheckAndAddSynTPToKeyBoardClassUpperFilter
call fcn.1400205a0
nop
cmp qword [rbp + 0x28], 8
jb 0x140016c15
mov rcx, qword [rbp + 0x10]
call fcn.140021650
jmp 0x140016c15
test byte [0x1400512b0], 4
je 0x140016c15
mov r9d, eax
lea r8, str.RegQueryValueEx_UpperFilters__Error:_lRet_x_n
mov edx, 3
lea rcx, str.CEnhanceCallerService::CheckAndAddSynTPToKeyBoardClassUpperFilter
call fcn.1400205a0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140016c69
test byte [0x1400512b0], 4
je 0x140016c69
lea r8, str.hkeyClassNULL_n
mov edx, 3
lea rcx, str.CEnhanceCallerService::CheckAndAddSynTPToKeyBoardClassUpperFilter
call fcn.1400205a0
jmp 0x140016c69
test byte [0x1400512b0], 4
je 0x140016c69
mov r9d, eax
lea r8, str.CM_Open_Class_Key_ErroeCode_x_n
mov edx, 3
lea rcx, str.CEnhanceCallerService::CheckAndAddSynTPToKeyBoardClassUpperFilter
call fcn.1400205a0
mov rcx, qword [rbp + 0x1050]
xor rcx, rsp
call fcn.140021670
lea r11, [rsp + 0x1160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret