Function at 0x1400b4420
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140173040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov ebx, edx
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x14017dcc0], eax
jg 0x1400b469c
test ebx, ebx
je 0x1400b4565
lea rdx, str.ShouldDeleteUseGlobalTimerRes
lea rcx, [rbp - 0x20]
call fcn.14003f460
lea rdx, [rbp - 0x20]
lea rcx, [0x14017dce8]
call fcn.140074840
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400b44a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, 1
lea rdx, str.ShouldDeleteUseGlobalTimerRes
lea rcx, [0x14017dcd0]
call fcn.1400743b0
mov dword [rbp - 0x20], ebx
lea rax, [rbp - 0x18]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSession_Managerkernel
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400b4695
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
lea rdx, str.GlobalTimerResolutionRequests
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x30]
test eax, eax
jne 0x1400b468f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400ff350
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
xor ebx, ebx
mov dword [rbp - 0x20], ebx
mov eax, dword [0x14017dcd8]
or eax, 2
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x14017dce0]
mov rcx, qword [0x14017dcd0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400b45e2
lea rdx, str.ShouldDeleteUseGlobalTimerRes
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1400b45d8
lea rdx, str.ShouldDeleteUseGlobalTimerRes
lea rcx, [0x14017dcd0]
call fcn.140072f30
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSession_Managerkernel
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400b4546
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, str.GlobalTimerResolutionRequests
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400b4546
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 2]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSession_Managerkernel
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400b4695
lea rdx, str.GlobalTimerResolutionRequests
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp - 0x30]
test eax, eax
je 0x1400b4540
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x1400b4548
lea rcx, [0x14017dcc0]
call fcn.1400feccc
cmp dword [0x14017dcc0], 0xffffffff
jne 0x1400b4460
lea r8, [0x1401454c0]
mov rdx, 0xffffffff80000002
lea rcx, [0x14017dcd0]
call fcn.140072e60
lea rcx, [0x1401383e0]
call fcn.1400ff03c
nop
lea rcx, [0x14017dcc0]
call fcn.1400fec60
jmp 0x1400b4460