Function at 0x180009880
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180154010]
xor rax, rsp
mov qword [rbp + 0x190], rax
movzx edi, dx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
xor edx, edx
mov r8d, 0x107
lea rcx, [rbp + 0x80]
call fcn.18006cd10
nop
cmp byte [str.SOFTWARENVIDIA_CorporationNvStreamSrv], r14b
je 0x180009c8e
mov rbx, qword [rbp + 0x80]
test rbx, rbx
je 0x180009923
lea rdx, [rbp + 0x88]
lea rcx, str.SOFTWARENVIDIA_CorporationNvStreamSrv
call fcn.1800f9950
test eax, eax
je 0x180009975
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x180009923
mov qword [rbp + 0x80], r14
mov byte [rbp + 0x88], al
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20106
xor r8d, r8d
lea rdx, str.SOFTWARENVIDIA_CorporationNvStreamSrv
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete bl
test eax, eax
jne 0x18000996d
lea r8, str.SOFTWARENVIDIA_CorporationNvStreamSrv
mov edx, 0xff
lea rcx, [rbp + 0x88]
call fcn.180092f08
test bl, bl
je 0x180009c8e
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
lea rcx, [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rcx, [0x180000000]
lea rax, [rcx + 0x1236f0]
mov qword [rsp + 0x40], rax
lea rax, [rcx + 0x1236e0]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x38], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x28], rax
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x28], rax
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.180015b10
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x4c], edx
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [0x1801224d0]
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x3c], edx
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [0x180122550]
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x3c], edx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x58]
call fcn.180015c80
nop
lea rax, [0x1801224d8]
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x40], r14
mov dword [rbp - 0x38], r14d
movzx edx, word [rbp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.180010c70
mov rcx, rax
mov dl, 0x2f
call fcn.180016f10
mov rcx, rax
movzx edx, word [rbp + 0x4a]
call fcn.180010c70
mov rcx, rax
mov dl, 0x2f
call fcn.180016f10
mov rcx, rax
movzx edx, word [rbp + 0x4e]
call fcn.180010c70
mov rcx, rax
mov dl, 0x20
call fcn.180016f10
mov rcx, rax
movzx edx, word [rbp + 0x50]
call fcn.180010c70
mov rcx, rax
mov dl, 0x3a
call fcn.180016f10
mov rcx, rax
movzx edx, word [rbp + 0x52]
call fcn.180010c70
mov rcx, rax
mov dl, 0x3a
call fcn.180016f10
mov rcx, rax
movzx edx, word [rbp + 0x54]
call fcn.180010c70
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x68], xmm0
movdqa xmm1, xmmword [0x180125d80]
movdqu xmmword [rbp + 0x68], xmm1
mov byte [rbp + 0x58], 0
mov ebx, 0x11
mov dword [rsp + 0x30], ebx
mov ecx, dword [rbp - 0x38]
test cl, 2
jne 0x180009b4a
mov rax, qword [rbp - 0x68]
mov r8, qword [rax]
test r8, r8
je 0x180009b4a
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x40]
cmovb r8, qword [rbp - 0x40]
sub r8, rdx
jmp 0x180009b70
test cl, 4
jne 0x180009b79
mov rax, qword [rbp - 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x180009b79
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x58]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
lea rcx, [rbp + 0x58]
call fcn.180002d60
and ebx, 0xffffffef
mov dword [rsp + 0x30], ebx
mov ebx, 9
mov dword [rsp + 0x30], ebx
lea r8, [rbp + 0x58]
cmp qword [rbp + 0x70], 0x10
cmovae r8, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x180009bd5
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x180009bb0
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
and ebx, 0xfffffff7
mov dword [rsp + 0x30], ebx
mov rdx, qword [rbp + 0x70]
cmp rdx, 0x10
jb 0x180009c17
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009c12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180009cd8
call fcn.18003fe68
movdqa xmm0, xmmword [0x180125d80]
movdqu xmmword [rbp + 0x68], xmm0
mov byte [rbp + 0x58], 0
mov dword [rsp + 0x38], edi
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x180009c83
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.NvGamepadCount
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x180009c83
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x180009c83
mov qword [rbp + 0x80], r14
mov byte [rbp + 0x88], al
lea rcx, [rsp + 0x40]
call fcn.180009ce0
nop
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x180009cb1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x180009cb1
mov qword [rbp + 0x80], r14
mov byte [rbp + 0x88], al
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.18003f930
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.180090e5c
nop
int3