Function at 0x180039970
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rbp + 0xc8], rax
mov rdi, r9
mov rsi, r8
mov r12, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
cmp qword [rdx + 0x18], 8
jb 0x1800399bf
mov rdx, qword [rdx]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001b
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
je 0x180039aeb
lea rcx, [rsp + 0x60]
call fcn.180012fc0
nop
lea rdx, str.RegCreateKeyEx_Failed._lStatus:
lea rcx, [rsp + 0x60]
call fcn.18001da90
mov rcx, rax
mov edx, ebx
call fcn.180011f20
mov rcx, rax
lea rdx, str.._strSubKey:
call fcn.18001da90
mov rcx, rax
mov rdx, r12
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.__strKeyName:
call fcn.18001da90
mov rcx, rax
mov rdx, rsi
call fcn.18001ddc0
lea rdx, str.CRegUtility::WriteRegValue
lea rcx, [rbp + 0x78]
call fcn.1800104c0
nop
lea rdx, str.RegUtility.cpp
lea rcx, [rbp + 0x50]
call fcn.1800104c0
nop
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.1800130a0
mov rbx, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x82
lea r8, [rbp + 0x50]
xor edx, edx
call fcn.1800326a0
nop
lea rcx, [rbp + 0xa0]
call fcn.1800126d0
nop
lea rcx, [rbp + 0x50]
call fcn.18008f070
nop
lea rcx, [rbp + 0x78]
call fcn.18008f070
nop
lea rcx, [rbp - 0x18]
call fcn.180013040
lea rcx, [rbp - 0x18]
call fcn.180012100
xor al, al
jmp 0x180039d7c
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x180039afb
mov rcx, qword [rdi]
jmp 0x180039afe
mov rcx, rdi
cmp qword [rsi + 0x18], 8
jb 0x180039b0a
mov rdx, qword [rsi]
jmp 0x180039b0d
mov rdx, rsi
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov r13b, 1
test eax, eax
je 0x180039c29
lea rcx, [rsp + 0x60]
call fcn.180012fc0
nop
lea rdx, str.RegSetValueEx_Failed._lStatus:
lea rcx, [rsp + 0x60]
call fcn.18001da90
mov rcx, rax
mov edx, ebx
call fcn.180011f20
mov rcx, rax
lea rdx, str.._strSubKey:
call fcn.18001da90
mov rcx, rax
mov rdx, r12
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.__strKeyName:
call fcn.18001da90
mov rcx, rax
mov rdx, rsi
call fcn.18001ddc0
lea rdx, str.CRegUtility::WriteRegValue
lea rcx, [rbp + 0x50]
call fcn.1800104c0
nop
lea rdx, str.RegUtility.cpp
lea rcx, [rbp + 0x78]
call fcn.1800104c0
nop
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.1800130a0
mov rbx, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x8f
lea r8, [rbp + 0x78]
xor edx, edx
call fcn.1800326a0
nop
lea rcx, [rbp + 0xa0]
call fcn.1800126d0
nop
lea rcx, [rbp + 0x78]
call fcn.18008f070
nop
lea rcx, [rbp + 0x50]
call fcn.18008f070
nop
lea rcx, [rbp - 0x18]
call fcn.180013040
lea rcx, [rbp - 0x18]
call fcn.180012100
xor r13b, r13b
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x60]
call fcn.180012fc0
nop
lea rdx, str.bRet:
lea rcx, [rsp + 0x60]
call fcn.18001da90
mov rcx, rax
movzx edx, r13b
call fcn.180011980
mov rcx, rax
lea rdx, str._strSubKey:
call fcn.18001da90
mov rcx, rax
mov rdx, r12
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.._strKeyName:
call fcn.18001da90
mov rcx, rax
mov rdx, rsi
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.._strKeyValue:
call fcn.18001da90
mov rcx, rax
mov rdx, rdi
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.._dwType:
call fcn.18001da90
mov rcx, rax
mov edx, 1
call fcn.18002ef10
mov rcx, rax
lea rdx, str.._samDesired:
call fcn.18001da90
mov rcx, rax
xor edx, edx
call fcn.18002ef10
lea rdx, str.CRegUtility::WriteRegValue
lea rcx, [rbp + 0x50]
call fcn.1800104c0
nop
lea rdx, str.RegUtility.cpp
lea rcx, [rbp + 0x78]
call fcn.1800104c0
nop
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.1800130a0
mov rbx, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, reloc.OLEAUT32.dll_DllRegisterServer
lea r8, [rbp + 0x78]
mov edx, 3
call fcn.1800326a0
nop
lea rcx, [rbp + 0xa0]
call fcn.1800126d0
nop
lea rcx, [rbp + 0x78]
call fcn.18008f070
nop
lea rcx, [rbp + 0x50]
call fcn.18008f070
nop
lea rcx, [rbp - 0x18]
call fcn.180013040
lea rcx, [rbp - 0x18]
call fcn.180012100
movzx eax, r13b
mov rcx, qword [rbp + 0xc8]
xor rcx, rsp
call fcn.1800be9b0
add rsp, 0x1d0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret