Function at 0x18002ea00
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [0x1800881a0]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov edx, 1
lea rcx, [rsp + 0xb0]
call fcn.180019030
lea rcx, [rsp + 0xb0]
call fcn.18001bf00
nop
cmp qword [rsp + 0xe8], 0
je 0x18002eaa4
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x88]
call fcn.18001be50
nop
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xb0]
call fcn.18001c490
nop
lea rcx, [rsp + 0x88]
call fcn.180011730
lea rcx, [rsp + 0xb0]
call fcn.1800324c0
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x100]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x60], 1
mov eax, dword [rsp + 0x60]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18002eb2d
xor r9d, r9d
lea r8, [0x180089ffc]
lea rdx, [0x18008a004]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov byte [rsp + 0x50], 0
cmp dword [rsp + 0x54], 0
jne 0x18002ece2
mov rcx, qword [rsp + 0xf8]
call fcn.180006e60
shl rax, 1
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0xf8]
call fcn.1800324e0
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x18002eba7
mov dword [rsp + 0x58], 1
jmp 0x18002ebaf
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x50], al
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a70]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x5c], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a70]
movsxd rdx, dword [rsp + 0x5c]
lea r8, [0x180087a70]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a70]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087a70]
mov dword [rdx + rcx], eax
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x18002ec8c
cmp qword [rsp + 0xf0], 0
jne 0x18002ec57
lea rax, str.poz
mov qword [rsp + 0x78], rax
jmp 0x18002ec64
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xb0]
call fcn.1800324e0
mov r9, qword [rsp + 0x78]
mov r8, rax
lea rdx, [0x18008b8f8]
mov ecx, 2
call fcn.180040a70
jmp 0x18002ece0
cmp qword [rsp + 0xf0], 0
jne 0x18002eca5
lea rax, str.poz
mov qword [rsp + 0x68], rax
jmp 0x18002ecb2
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xb0]
call fcn.1800324e0
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x68]
mov r8, rax
lea rdx, [0x18008a418]
mov ecx, 3
call fcn.180040a70
jmp 0x18002ed36
cmp qword [rsp + 0xf0], 0
jne 0x18002ecfb
lea rax, str.poz
mov qword [rsp + 0x70], rax
jmp 0x18002ed08
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb0]
call fcn.1800324e0
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x70]
mov r8, rax
lea rdx, [0x18008a3e8]
mov ecx, 4
call fcn.180040a70
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x51], al
lea rcx, [rsp + 0xb0]
call fcn.180011730
movzx eax, byte [rsp + 0x51]
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.18004d370
add rsp, 0xd8
ret