Function at 0x140002be0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21a0
call fcn.140148110
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rsp + 0x2190], rax
mov r15, r8
mov qword [rsp + 0x58], r8
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x68], r9
xor ebx, ebx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x190]
call fcn.140002a50
test eax, eax
js 0x140003137
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x190]
call fcn.140002950
test eax, eax
jne 0x140002c72
mov eax, 0x80020009
jmp 0x140003137
mov rcx, qword [r13]
movzx eax, word [rcx]
cmp eax, 0x20
ja 0x140002c9a
movabs rdx, 0x100002600
bt rdx, rax
jae 0x140002c9a
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r13], rax
jmp 0x140002c72
lea rdx, [rsp + 0x190]
mov rcx, r13
call fcn.140002a50
test eax, eax
js 0x140003137
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x140003101
cmp eax, 0x11
je 0x140002f12
cmp eax, 0x13
je 0x140002ea7
cmp eax, 0x4008
jne 0x140003123
lea rcx, [rsp + 0x190]
or r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [rcx + rax*2], bx
jne 0x140002cec
add eax, 2
mov qword [rsp + 0x80], rbx
movsxd rcx, eax
test eax, eax
je 0x140002d44
xor edx, edx
mov rax, r14
div rcx
cmp rax, 2
jb 0x140002d39
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x140002d44
lea rcx, [rsp + 0x80]
call fcn.140004a98
mov rdi, qword [rsp + 0x80]
jmp 0x140002d54
mov ecx, 0x80070057
call fcn.140001b20
int3
lea rdi, [rsp + 0x88]
mov qword [rsp + 0x80], rdi
jmp 0x140002d78
test rdi, rdi
je 0x140002e7f
lea rsi, [rsp + 0x190]
cmp word [rsp + 0x190], bx
je 0x140002dd6
mov r15d, 0x30
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x140002dc6
cmp word [rax], r15w
jne 0x140002dc6
mov word [rdi], bx
add rdi, 2
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x140002dd1
mov word [rdi], cx
add rdi, 2
add rsi, 2
cmp word [rsi], bx
jne 0x140002d99
mov dword [rdi], 0
mov rdi, qword [rsp + 0x80]
cmp qword [r12], rbx
jne 0x140002e02
lea r8, str.m_hKey___0
mov edx, 0x16b3
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008624c
mov eax, ebx
test rdi, rdi
setne al
test eax, eax
jne 0x140002e31
lea r8, str.__atl_condVal
mov edx, 0x16b4
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008624c
mov ecx, 0x80004005
call fcn.140001b20
int3
mov r9d, ebx
mov r8, rdi
mov rcx, r14
inc rcx
cmp word [r8 + rcx*2], bx
jne 0x140002e3a
inc ecx
lea r8, [r8 + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x140002e37
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdi
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rdi, qword [rsp + 0x80]
jmp 0x140002e84
mov esi, 0xe
lea rax, [rsp + 0x88]
cmp rdi, rax
je 0x140003116
lea rcx, [rsp + 0x80]
call fcn.140004764
jmp 0x140003116
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x190]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
cmp qword [r12], rbx
jne 0x140002ee5
lea r8, str.m_hKey___0
mov edx, 0x169a
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008624c
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140003114
lea rax, [rsp + 0x190]
or r14, 0xffffffffffffffff
mov rdi, r14
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140002f21
mov dword [rsp + 0x38], edi
test dil, 1
je 0x140002f3e
mov eax, 0x80004005
jmp 0x140003137
mov eax, edi
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x80], rbx
mov rcx, rsi
test eax, eax
je 0x140002f97
xor edx, edx
mov rax, r14
div rcx
cmp rax, 1
jae 0x140002f74
mov ecx, 0x80070057
call fcn.140001b20
int3
cmp rcx, 0x100
jbe 0x140002f97
mov rdx, rcx
lea rcx, [rsp + 0x80]
call fcn.140004a98
mov rcx, qword [rsp + 0x80]
jmp 0x140002fa7
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x80], rcx
jmp 0x140002fcf
test rcx, rcx
jne 0x140002ff7
lea rax, [rsp + 0x88]
test rax, rax
je 0x140002f34
lea rcx, [rsp + 0x80]
call fcn.140004764
jmp 0x140002f34
movsxd r8, esi
xor edx, edx
call sub.msvcrt.dll_memset
mov r14d, ebx
mov rcx, rbx
mov qword [rsp + 0x40], rbx
movsxd rax, edi
test edi, edi
jle 0x1400030b5
mov r15d, 0x30
mov rsi, rax
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
add rdi, qword [rsp + 0x80]
movzx edx, word [rsp + rcx*2 + 0x190]
mov eax, edx
cmp edx, r15d
jl 0x140003068
cmp eax, 0x39
jle 0x140003063
cmp eax, 0x40
jle 0x140003068
cmp eax, 0x46
jle 0x14000305e
add eax, 0xffffff9f
cmp eax, 5
ja 0x140003068
sub dl, 0x57
jmp 0x140003082
sub dl, 0x37
jmp 0x140003082
sub dl, r15b
jmp 0x140003082
lea r8, [0x14014d8c4]
mov edx, 0x2f1
lea rcx, str.sdkinc_atlmfc_statreg.h
call fcn.14008624c
mov dl, bl
mov ecx, r14d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [rdi], dl
inc r14d
mov rcx, qword [rsp + 0x40]
inc rcx
mov qword [rsp + 0x40], rcx
cmp rcx, rsi
jl 0x140003020
mov esi, dword [rsp + 0x30]
mov dword [rsp + 0x28], esi
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea rax, [rsp + 0x88]
cmp qword [rsp + 0x80], rax
je 0x140003116
lea rcx, [rsp + 0x80]
call fcn.140004764
jmp 0x140003116
lea r8, [rsp + 0x190]
mov rdx, r15
mov rcx, r12
call fcn.140001e5c
mov esi, eax
test esi, esi
je 0x140003123
mov ecx, esi
call fcn.140001bac
jmp 0x140003137
mov rdx, qword [rsp + 0x68]
mov rcx, r13
call fcn.140002a50
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x2190]
xor rcx, rsp
call fcn.1401474d0
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret