Function at 0x140050720
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21b0
call fcn.1401ea950
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rsp + 0x21a0], rax
mov r13, r8
mov qword [rsp + 0x40], r8
mov r12, rdx
mov qword [rsp + 0x30], rdx
mov r15, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x58], r9
xor r14d, r14d
mov word [rsp + 0x78], r14w
lea rdx, [rsp + 0x1a0]
call fcn.140051170
test eax, eax
js 0x140050bf0
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x1a0]
call fcn.140050550
test eax, eax
jne 0x1400507b9
mov eax, 0x80020009
jmp 0x140050bf0
movabs rbx, 0x100002600
mov rcx, qword [r15]
movzx eax, word [rcx]
cmp eax, 0x20
ja 0x1400507df
bt rbx, rax
jae 0x1400507df
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r15], rax
jmp 0x1400507c3
lea rdx, [rsp + 0x1a0]
mov rcx, r15
call fcn.140051170
test eax, eax
js 0x140050bf0
movzx eax, word [rsp + 0x78]
cmp eax, 8
je 0x140050b86
cmp eax, 0x11
je 0x1400509ed
cmp eax, 0x13
je 0x1400509af
cmp eax, 0x4008
jne 0x140050bda
lea rcx, [rsp + 0x1a0]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140050831
add eax, 2
mov qword [rsp + 0x90], r14
movsxd rcx, eax
test eax, eax
je 0x140050889
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 2
jb 0x14005087f
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x140050889
lea rcx, [rsp + 0x90]
call fcn.14004fd50
mov rbx, qword [rsp + 0x90]
jmp 0x140050899
mov ecx, 0x80070216
call fcn.140012d00
lea rbx, [rsp + 0x98]
mov qword [rsp + 0x90], rbx
jmp 0x1400508b9
test rbx, rbx
je 0x140050987
lea rdi, [rsp + 0x1a0]
cmp word [rsp + 0x1a0], 0
je 0x140050914
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rdi]
cmp cx, 0x5c
jne 0x140050903
cmp word [rax], 0x30
jne 0x140050903
mov word [rbx], r14w
add rbx, 2
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rdi, rax
jmp 0x14005090e
mov word [rbx], cx
add rbx, 2
add rdi, 2
cmp word [rdi], 0
jne 0x1400508d5
mov dword [rbx], 0
mov eax, r14d
mov rbx, qword [rsp + 0x90]
test rbx, rbx
setne al
test eax, eax
jne 0x140050934
lea edi, [rax + 0xd]
jmp 0x14005098c
mov r9d, r14d
mov r8, rbx
nop word [rax + rax]
mov rcx, rsi
inc rcx
cmp word [r8 + rcx*2], 0
jne 0x140050943
inc ecx
lea r8, [r8 + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x140050940
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rbx
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rbx, qword [rsp + 0x90]
jmp 0x14005098c
mov edi, 0xe
lea rax, [rsp + 0x98]
cmp rbx, rax
je 0x140050bcd
lea rcx, [rsp + 0x90]
call fcn.14004fd30
jmp 0x140050bcd
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x80]
mov r9d, 4
jmp 0x140050bb6
lea rax, [rsp + 0x1a0]
or rsi, 0xffffffffffffffff
mov rbx, rsi
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x140050a00
mov dword [rsp + 0x80], ebx
test bl, 1
jne 0x140050ad2
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x90], r14
mov rcx, rdi
test eax, eax
je 0x140050a72
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 1
jb 0x140050a68
cmp rcx, 0x100
jbe 0x140050a72
mov rdx, rcx
lea rcx, [rsp + 0x90]
call fcn.14004fd50
mov rcx, qword [rsp + 0x90]
jmp 0x140050a82
mov ecx, 0x80070216
call fcn.140012d00
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x90], rcx
jmp 0x140050ab3
test rcx, rcx
jne 0x140050adc
lea rax, [rsp + 0x98]
test rax, rax
je 0x140050ad2
lea rcx, [rsp + 0x90]
call fcn.14004fd30
mov eax, 0x80004005
jmp 0x140050bf0
movsxd r8, edi
xor edx, edx
call sub.MSVCR110.dll_memset
mov esi, r14d
mov r12, r14
movsxd r13, ebx
test ebx, ebx
jle 0x140050b36
mov eax, esi
cdq
sub eax, edx
sar eax, 1
movsxd rbx, eax
add rbx, qword [rsp + 0x90]
movzx ecx, word [rsp + r12*2 + 0x1a0]
call fcn.140050690
movzx edx, al
mov ecx, esi
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
movzx ecx, al
shl dl, cl
or byte [rbx], dl
inc esi
inc r12
cmp r12, r13
jl 0x140050af3
mov dword [rsp + 0x28], edi
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea rax, [rsp + 0x98]
cmp qword [rsp + 0x90], rax
je 0x140050bcd
lea rcx, [rsp + 0x90]
call fcn.14004fd30
jmp 0x140050bcd
lea rax, [rsp + 0x1a0]
or rsi, 0xffffffffffffffff
lea rsi, [rsi + 1]
cmp word [rax + rsi*2], r14w
jne 0x140050b92
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x1a0]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x140050bda
mov ecx, edi
call fcn.140051160
jmp 0x140050bf0
mov rdx, qword [rsp + 0x58]
mov rcx, r15
call fcn.140051170
test eax, eax
cmovs r14d, eax
mov eax, r14d
mov rcx, qword [rsp + 0x21a0]
xor rcx, rsp
call fcn.1401e3980
add rsp, 0x21b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret