Function at 0x40e470
Capabilities:
Create registry key via stdregprov

Disassembly:
push r14
push r13
mov r13, rdx
push r12
mov r12, rcx
push rdi
push rsi
push rbx
sub rsp, 0xb8
call fcn.0040e1b0
mov r14, qword [0x00429150]
lea rsi, [rsp + 0x98]
lea rdx, str.CreateKey
mov qword [rsp + 0x58], 0
mov rcx, rsi
mov qword [rsp + 0x60], 0
mov rax, qword [r14]
mov rbx, qword [rax + 0x98]
call fcn.0040f7b0
mov rdx, qword [rsp + 0x98]
test rdx, rdx
je 0x40e4d5
mov rdx, qword [rdx]
xor r8d, r8d
lea r9, [rsp + 0x58]
mov rcx, r14
mov qword [rsp + 0x20], 0
call rbx
mov rcx, rsi
mov dword [0x00429140], eax
call fcn.0040f750
cmp dword [0x00429140], 0
mov rbx, qword [sym.imp.ole32.dll_CoUninitialize]
js 0x40e6a5
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x68], 0
mov rax, qword [rcx]
call qword [rax + 0x78]
mov dword [0x00429140], eax
test eax, eax
js 0x40e69a
lea r14, [rsp + 0x80]
mov rdi, qword [sym.imp.OLEAUT32.dll_VariantInit]
mov rcx, r14
call rdi
mov dword [rsp + 0x88], r12d
lea r12, [rsp + 0x78]
mov rcx, rsi
mov word [rsp + 0x80], 3
call rdi
mov rcx, r12
mov rdx, r13
mov word [rsp + 0x98], 8
call fcn.0040f7b0
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x40e588
mov rcx, qword [rcx]
call qword [sym.imp.OLEAUT32.dll_SysAllocString]
mov rcx, r12
mov qword [rsp + 0xa0], rax
call fcn.0040f750
mov rcx, qword [rsp + 0x68]
mov r9, r14
xor r8d, r8d
lea rdx, str.hDefKey
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x68]
mov r9, rsi
xor r8d, r8d
mov dword [0x00429140], eax
lea rdx, str.sSubKeyName
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0
call qword [rax + 0x28]
mov r14, qword [0x00429170]
mov rcx, r12
mov rdi, qword [rsp + 0x68]
mov dword [0x00429140], eax
lea rdx, str.CreateKey
mov rax, qword [r14]
mov rsi, qword [rax + 0xc0]
call fcn.0040f7b0
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x40e61c
mov r8, qword [r8]
lea r13, [rsp + 0x70]
lea rdx, str.StdRegProv
mov qword [rsp + 0x48], r8
mov rcx, r13
call fcn.0040f7b0
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x48]
test rdx, rdx
je 0x40e647
mov rdx, qword [rdx]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov rcx, r14
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], 0
call rsi
mov rcx, r13
mov dword [0x00429140], eax
call fcn.0040f750
mov rcx, r12
call fcn.0040f750
mov rcx, qword [rsp + 0x68]
cmp dword [0x00429140], 0
mov rax, qword [rcx]
jns 0x40e6d6
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x00429150]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x00429170]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x00429160]
mov rax, qword [rcx]
call qword [rax + 0x10]
call rbx
mov eax, dword [0x00429140]
jmp 0x40e71a
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x00429150]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x00429170]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x00429160]
mov rax, qword [rcx]
call qword [rax + 0x10]
call rbx
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret