Function at 0x140002bb0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21a0
call fcn.140142910
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rsp + 0x2190], rax
mov r15, r8
mov qword [rsp + 0x50], r8
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], 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.140002a20
test eax, eax
js 0x140003104
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x190]
call fcn.140002920
test eax, eax
jne 0x140002c42
mov eax, 0x80020009
jmp 0x140003104
mov rcx, qword [r13]
movzx eax, word [rcx]
cmp eax, 0x20
ja 0x140002c6a
movabs rdx, 0x100002600
bt rdx, rax
jae 0x140002c6a
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r13], rax
jmp 0x140002c42
lea rdx, [rsp + 0x190]
mov rcx, r13
call fcn.140002a20
test eax, eax
js 0x140003104
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x1400030ce
cmp eax, 0x11
je 0x140002edf
cmp eax, 0x13
je 0x140002e74
cmp eax, 0x4008
jne 0x1400030f0
lea rcx, [rsp + 0x190]
or r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [rcx + rax*2], bx
jne 0x140002cbc
add eax, 2
mov qword [rsp + 0x80], rbx
movsxd rcx, eax
test eax, eax
je 0x140002d14
xor edx, edx
mov rax, r14
div rcx
cmp rax, 2
jb 0x140002d09
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x140002d14
lea rcx, [rsp + 0x80]
call fcn.140004a90
mov rdi, qword [rsp + 0x80]
jmp 0x140002d24
mov ecx, 0x80070057
call fcn.140001b00
int3
lea rdi, [rsp + 0x88]
mov qword [rsp + 0x80], rdi
jmp 0x140002d48
test rdi, rdi
je 0x140002e4c
lea rsi, [rsp + 0x190]
cmp word [rsp + 0x190], bx
je 0x140002da6
mov r15d, 0x30
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x140002d96
cmp word [rax], r15w
jne 0x140002d96
mov word [rdi], bx
add rdi, 2
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x140002da1
mov word [rdi], cx
add rdi, 2
add rsi, 2
cmp word [rsi], bx
jne 0x140002d69
and dword [rdi], 0
mov rdi, qword [rsp + 0x80]
cmp qword [r12], rbx
jne 0x140002dcf
lea r8, str.m_hKey___0
mov edx, 0x16b3
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008410c
mov eax, ebx
test rdi, rdi
setne al
test eax, eax
jne 0x140002dfe
lea r8, str.__atl_condVal
mov edx, 0x16b4
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008410c
mov ecx, 0x80004005
call fcn.140001b00
int3
mov r9d, ebx
mov r8, rdi
mov rcx, r14
inc rcx
cmp word [r8 + rcx*2], bx
jne 0x140002e07
inc ecx
lea r8, [r8 + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x140002e04
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdi
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rdi, qword [rsp + 0x80]
jmp 0x140002e51
mov esi, 0xe
lea rax, [rsp + 0x88]
cmp rdi, rax
je 0x1400030e3
lea rcx, [rsp + 0x80]
call fcn.14000498c
jmp 0x1400030e3
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 0x140002eb2
lea r8, str.m_hKey___0
mov edx, 0x169a
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008410c
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 0x1400030e1
lea rax, [rsp + 0x190]
or r14, 0xffffffffffffffff
mov rdi, r14
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140002eee
mov dword [rsp + 0x38], edi
test dil, 1
je 0x140002f0b
mov eax, 0x80004005
jmp 0x140003104
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 0x140002f64
xor edx, edx
mov rax, r14
div rcx
cmp rax, 1
jae 0x140002f41
mov ecx, 0x80070057
call fcn.140001b00
int3
cmp rcx, 0x100
jbe 0x140002f64
mov rdx, rcx
lea rcx, [rsp + 0x80]
call fcn.140004a90
mov rcx, qword [rsp + 0x80]
jmp 0x140002f74
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x80], rcx
jmp 0x140002f9c
test rcx, rcx
jne 0x140002fc4
lea rax, [rsp + 0x88]
test rax, rax
je 0x140002f01
lea rcx, [rsp + 0x80]
call fcn.14000498c
jmp 0x140002f01
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 0x140003082
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 0x140003035
cmp eax, 0x39
jle 0x140003030
cmp eax, 0x40
jle 0x140003035
cmp eax, 0x46
jle 0x14000302b
add eax, 0xffffff9f
cmp eax, 5
ja 0x140003035
sub dl, 0x57
jmp 0x14000304f
sub dl, 0x37
jmp 0x14000304f
sub dl, r15b
jmp 0x14000304f
lea r8, [0x14014959c]
mov edx, 0x2f1
lea rcx, str.sdkinc_atlmfc_statreg.h
call fcn.14008410c
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 0x140002fed
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 + 0x50]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea rax, [rsp + 0x88]
cmp qword [rsp + 0x80], rax
je 0x1400030e3
lea rcx, [rsp + 0x80]
call fcn.14000498c
jmp 0x1400030e3
lea r8, [rsp + 0x190]
mov rdx, r15
mov rcx, r12
call fcn.140001e28
mov esi, eax
test esi, esi
je 0x1400030f0
mov ecx, esi
call fcn.140001b8c
jmp 0x140003104
mov rdx, qword [rsp + 0x68]
mov rcx, r13
call fcn.140002a20
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x2190]
xor rcx, rsp
call fcn.140141cf0
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret