Function at 0x7ff7901afa0c
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
push rbp
lea rbp, [rax - 0x3b8]
sub rsp, 0x4b0
mov rax, qword [0x7ff7904d6b68]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
xor esi, esi
mov dword [rsp + 0x48], 0x14
lea rax, [rsp + 0x48]
mov r13, 0xffffffff80000001
mov qword [rsp + 0x30], rax
lea r8, str.Flags
lea rax, [rsp + 0x60]
mov rcx, r13
mov qword [rsp + 0x28], rax
lea r9d, [rsi + 2]
lea rdx, str.Control_PanelAccessibilityHighContrast
mov qword [rsp + 0x20], rsi
mov edi, esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov ebx, 0x80070000
test eax, eax
jne 0x7ff7901afbab
js 0x7ff7901afaae
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrToIntW]
nop dword [rax + rax]
mov edi, eax
xor r9d, r9d
mov dword [rsp + 0x50], 0x10
lea r8, [rsp + 0x50]
lea edx, [r9 + 0x10]
lea ecx, [rdx + 0x32]
call qword [sym.imp.api_ms_win_ntuser_sysparams_l1_1_0.dll_SystemParametersInfoW]
nop dword [rax + rax]
test eax, eax
je 0x7ff7901afb7e
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 0x208
mov qword [rsp + 0x30], rax
lea r8, str.InstallHighContrast
lea rax, [rbp - 0x80]
mov r9d, 2
mov qword [rsp + 0x28], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemes
mov rcx, r13
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x7ff79022b90a
movzx ecx, si
mov word [rbp - 0x80], cx
jle 0x7ff7901afb34
movzx eax, ax
or eax, ebx
test eax, eax
jns 0x7ff79022b913
test byte [rsp + 0x54], 1
jne 0x7ff79022ba3d
mov eax, esi
mov word [rbp - 0x80], ax
test ax, ax
jne 0x7ff79022b91c
mov bl, byte [rsp + 0x54]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x41]
and bl, 1
and edi, 1
call fcn.7ff7901afbc4
test eax, eax
jns 0x7ff79022bb44
cmp dil, bl
jne 0x7ff79022bb4f
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.7ff7901bf100
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r13, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov word [rsp + 0x60], si
jle 0x7ff7901afa99
jmp 0x7ff79022b8fe
movzx eax, ax
or eax, ebx
test eax, eax
jmp 0x7ff7901afa99
movzx ecx, word [rbp - 0x80]
jmp 0x7ff7901afb32
test cx, cx
je 0x7ff7901afb3a
test byte [rsp + 0x54], 1
je 0x7ff79022b981
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x7ff79022b981
lea rdx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpIW]
nop dword [rax + rax]
test eax, eax
je 0x7ff79022b9ad
xor r9d, r9d
lea rdx, [rbp + 0x190]
mov r8d, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_string_l2_1_1.dll_SHLoadIndirectString]
nop dword [rax + rax]
test eax, eax
js 0x7ff79022b981
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp + 0x190]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpIW]
nop dword [rax + rax]
test eax, eax
je 0x7ff79022b9ad
or dword [rsp + 0x54], 1
lea rax, [rbp - 0x80]
mov r9d, 3
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x50]
lea edx, [r9 + 0xd]
lea ecx, [rdx + 0x33]
call qword [sym.imp.api_ms_win_ntuser_sysparams_l1_1_0.dll_SystemParametersInfoW]
nop dword [rax + rax]
lea r8, str.InstallHighContrast
mov rcx, r13
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemes
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHDeleteValueW]
nop dword [rax + rax]
xor edx, edx
lea rax, [rsp + 0x48]
lea r9, [0x7ff790486140]
mov qword [rsp + 0x20], rax
lea rcx, [0x7ff790496968]
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
nop dword [rax + rax]
test eax, eax
js 0x7ff7901afb7e
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
movabs r10, 0xddf816bd5c599b70
mov rax, qword [rax + 0xc0]
call qword [0x7ff79045bf28]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x7ff79045bf28]
nop
jmp 0x7ff7901afb7e
lea rax, [rbp - 0x80]
mov dword [rsp + 0x28], 0x104
mov r9d, 2
mov qword [rsp + 0x20], rax
lea r8, str.Current
mov rcx, r13
lea rdx, str.Control_PanelAppearance
call fcn.7ff7901f0578
test eax, eax
js 0x7ff7901afb45
cmp word [rbp - 0x80], si
je 0x7ff7901afb45
lea rdx, str._themeui.dll__850
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x7ff7901afb45
lea rdx, str._themeui.dll__851
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x7ff7901afb45
lea rbx, str._themeui.dll__852
mov rdx, rbx
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x7ff7901afb45
lea rdx, str._themeui.dll__853
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x7ff7901afb45
lea rax, [rbp - 0x80]
mov edx, 0x104
sub rbx, rax
lea rcx, [rbp - 0x80]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x7ff79022bb2d
movzx eax, word [rbx + rcx]
test ax, ax
je 0x7ff79022bb2d
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x7ff79022bb0b
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
movzx eax, word [rbp - 0x80]
jmp 0x7ff7901afb4b
cmp bl, byte [rsp + 0x40]
je 0x7ff79022bb4f
xor dword [rsp + 0x54], 1
mov r9d, 3
lea r8, [rsp + 0x50]
lea edx, [r9 + 0xd]
lea ecx, [rdx + 0x33]
call qword [sym.imp.api_ms_win_ntuser_sysparams_l1_1_0.dll_SystemParametersInfoW]
nop dword [rax + rax]
nop
jmp 0x7ff7901afb7e