Function at 0x1400083f4
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21a0
call fcn.140141b50
sub rsp, rax
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x2190], rax
mov r12, r8
mov r15, rdx
mov r13, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x78], r9
lea rdx, [rsp + 0x190]
call fcn.1400099bc
xor ebx, ebx
test eax, eax
js 0x140008891
mov edi, ebx
lea rsi, str.SMDB
movsxd r14, edi
cmp r14, 4
jae 0x14000888c
mov rdx, qword [rsi]
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140008491
inc edi
add rsi, 0x10
jmp 0x140008461
add r14, r14
lea rax, str.SMDB
movzx edi, word [rax + r14*8 + 8]
mov rcx, r13
call fcn.14000ace0
lea rdx, [rsp + 0x190]
mov rcx, r13
call fcn.1400099bc
test eax, eax
js 0x140008891
cmp di, 8
je 0x14000884f
cmp di, 0x11
je 0x1400086c7
cmp di, 0x13
je 0x140008626
mov eax, 0x4008
cmp di, ax
jne 0x140008876
lea rax, [rsp + 0x190]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1400084f9
mov r14d, 2
add edi, r14d
mov qword [rsp + 0x80], rbx
movsxd rcx, edi
mov edx, r14d
call fcn.140007da4
mov rdi, rax
cmp qword [rsp + 0x80], rbx
je 0x140008543
lea r8, str.m_p__0
mov edx, 0x207
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlalloc.h
call fcn.140088f60
cmp rdi, 0x100
jbe 0x140008566
mov rdx, rdi
lea rcx, [rsp + 0x80]
call fcn.1400088bc
mov rdi, qword [rsp + 0x80]
jmp 0x140008576
lea rdi, [rsp + 0x88]
mov qword [rsp + 0x80], rdi
jmp 0x14000859a
test rdi, rdi
je 0x14000860f
lea rsi, [rsp + 0x190]
cmp word [rsp + 0x190], bx
je 0x1400085f5
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x1400085e6
cmp word [rax], 0x30
jne 0x1400085e6
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
mov rsi, rax
jmp 0x1400085ec
mov word [rdi], cx
add rsi, r14
add rdi, 2
cmp word [rsi], bx
jne 0x1400085b1
and dword [rdi], 0
mov r8, qword [rsp + 0x80]
mov rdx, r12
mov rcx, r15
call fcn.14000aac4
mov edi, eax
jmp 0x140008614
mov edi, 0xe
lea rcx, [rsp + 0x80]
call fcn.140007ee0
jmp 0x140008864
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x190]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x140008664
lea rcx, [rsp + 0x40]
call fcn.140007e10
mov eax, edi
jmp 0x140008891
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
cmp qword [r15], rbx
jne 0x140008689
lea r8, str.m_hKey___0
mov edx, 0x16d4
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140088f60
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
lea rcx, [rsp + 0x40]
call fcn.140007e10
jmp 0x140008864
lea rax, [rsp + 0x190]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1400086d3
mov dword [rsp + 0x38], edi
test dil, 1
je 0x1400086f0
mov eax, 0x80004005
jmp 0x140008891
mov eax, edi
cdq
mov r14d, 2
idiv r14d
movsxd r14, eax
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x80], rbx
mov rsi, r14
mov qword [rsp + 0x70], r14
mov edx, 1
mov rcx, r14
call fcn.140007da4
mov r13, rax
cmp qword [rsp + 0x80], rbx
je 0x140008746
lea r8, str.m_p__0
mov edx, 0x207
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlalloc.h
call fcn.140088f60
cmp r13, 0x100
jbe 0x140008769
mov rdx, r13
lea rcx, [rsp + 0x80]
call fcn.1400088bc
mov rcx, qword [rsp + 0x80]
jmp 0x140008779
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x80], rcx
jmp 0x1400087a7
test rcx, rcx
jne 0x1400087be
lea rcx, [rsp + 0x80]
call fcn.140007ee0
jmp 0x1400086e6
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov esi, ebx
movsxd r13, edi
test edi, edi
jle 0x140008811
mov rdi, rbx
movzx ecx, word [rsp + rdi*2 + 0x190]
call fcn.140008d50
movzx edx, al
mov ecx, esi
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl edx, cl
mov ecx, esi
shr rcx, 1
mov rax, qword [rsp + 0x80]
or byte [rcx + rax], dl
inc esi
inc rdi
cmp rdi, r13
jl 0x1400087d4
mov dword [rsp + 0x28], r14d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
lea rcx, [rsp + 0x80]
call fcn.140007ee0
jmp 0x140008864
lea r8, [rsp + 0x190]
mov rdx, r12
mov rcx, r15
call fcn.14000ab8c
mov edi, eax
test edi, edi
je 0x140008871
mov ecx, edi
call fcn.140008a80
jmp 0x140008891
mov r13, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x78]
mov rcx, r13
call fcn.1400099bc
test eax, eax
cmovs ebx, eax
mov eax, ebx
jmp 0x140008891
mov eax, 0x80020009
mov rcx, qword [rsp + 0x2190]
xor rcx, rsp
call fcn.1400071e0
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret