Function at 0x140003ef0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140003f58
cmp dword [rsp + 0x30], 1
je 0x140003fce
cmp dword [rsp + 0x30], 2
je 0x140004045
cmp dword [rsp + 0x30], 3
je 0x1400040bb
cmp dword [rsp + 0x30], 4
je 0x14000412b
jmp 0x140004199
lea rax, [0x14002bd80]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003fc2
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [0x14002bd80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140003fc0
mov rcx, qword [0x14002bd80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003fc9
xor eax, eax
jmp 0x1400041a6
jmp 0x140004199
lea rax, [0x14002bd80]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140004039
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [0x14002bd80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140004037
mov rcx, qword [0x14002bd80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004040
xor eax, eax
jmp 0x1400041a6
jmp 0x140004199
lea rax, [0x14002bd80]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400040af
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [0x14002bd80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400040ad
mov rcx, qword [0x14002bd80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400040b6
xor eax, eax
jmp 0x1400041a6
jmp 0x140004199
lea rax, [0x14002bd80]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140004125
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [0x14002bd80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140004123
mov rcx, qword [0x14002bd80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004129
xor eax, eax
jmp 0x1400041a6
jmp 0x140004199
lea rax, [0x14002bd80]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000005
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140004195
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [0x14002bd80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140004193
mov rcx, qword [0x14002bd80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004199
xor eax, eax
jmp 0x1400041a6
mov eax, 1
jmp 0x1400041a6
add rsp, 0x58
ret