Function at 0x140003be4
Capabilities:
Set registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x70
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x80], rdi
mov rax, qword [0x1400163a0]
xor rax, rbp
mov qword [rbp + 0x30], rax
mov r13, rcx
mov qword [rbp + 0x10], rcx
xor r15d, r15d
mov qword [rbp + 0x28], r9
mov ecx, 0x2000
mov qword [rbp + 0x18], r8
mov ebx, r15d
mov qword [rbp + 0x20], rdx
mov r12, r8
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140003fa9
mov rdx, rax
mov rcx, r13
call fcn.1400047b8
mov edi, eax
test eax, eax
js 0x140003d27
mov edi, r15d
lea rsi, [0x1400105c0]
mov rdx, qword [rsi]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140003ca6
inc edi
add rsi, 0x10
cmp edi, 3
jb 0x140003c6c
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov edi, 0x80020009
jmp 0x140004165
lea rcx, [0x1400105c0]
movsxd rax, edi
add rax, rax
movzx r15d, word [rcx + rax*8 + 8]
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140003f9a
mov rcx, qword [r13]
cmp word [rcx], 9
jb 0x140003d04
cmp word [rcx], 0xa
jbe 0x140003cf2
cmp word [rcx], 0xd
je 0x140003cf2
cmp word [rcx], 0x20
jne 0x140003d04
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov qword [r13], rax
jmp 0x140003cd6
mov rdx, rsi
mov rcx, r13
call fcn.1400047b8
xor r10d, r10d
mov edi, eax
test eax, eax
jns 0x140003d3b
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
jmp 0x140004165
mov dword [rbp + 8], r10d
cmp r15w, 8
je 0x140003f22
cmp r15w, 0x11
je 0x140003d99
cmp r15w, 0x13
jne 0x140004105
lea r9, [rbp + 8]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
nop dword [rax + rax]
mov eax, dword [rbp + 8]
mov r9d, 4
mov dword [rbp], eax
mov rdx, r12
lea rax, [rbp]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
jmp 0x140003f07
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], r10w
jne 0x140003d9d
test dil, 1
jne 0x140003e29
mov eax, edi
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov dword [rbp], eax
cmp r15, 0x400
ja 0x140003df8
mov rcx, r15
call fcn.1400042f4
xor r10d, r10d
test al, al
je 0x140003df8
lea rax, [r15 + 0xf]
cmp rax, r15
ja 0x140003de5
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000e5c0
sub rsp, rax
lea r12, [rsp + 0x30]
jmp 0x140003e24
lea rcx, [r15 + 0x10]
cmp rcx, r15
jae 0x140003e06
mov r12, r10
jmp 0x140003e24
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
xor r10d, r10d
test rax, rax
je 0x140003e01
mov qword [rax], r10
lea r12, [rax + 0x10]
mov rbx, rax
test r12, r12
jne 0x140003e51
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov edi, 0x80004005
jmp 0x140004160
mov r8, r15
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_memset
xor ecx, ecx
movsxd r11, edi
mov r9d, ecx
test edi, edi
jle 0x140003ef1
xor r13d, r13d
mov r10d, r13d
movzx r8d, word [rsi + r10*2]
cmp r8w, 0x30
jb 0x140003eb5
cmp r8w, 0x39
jbe 0x140003eaf
cmp r8w, 0x40
jbe 0x140003eb5
cmp r8w, 0x46
jbe 0x140003ea9
cmp r8w, 0x60
jbe 0x140003eb5
cmp r8w, 0x66
ja 0x140003eb5
sub r8b, 0x57
jmp 0x140003eb8
sub r8b, 0x37
jmp 0x140003eb8
sub r8b, 0x30
jmp 0x140003eb8
mov r8b, r13b
mov eax, r9d
test r9d, r9d
jns 0x140003ec4
lea eax, [r9 + 1]
sar eax, 1
mov ecx, r9d
and ecx, 1
movsxd rdx, eax
shl ecx, 2
mov eax, 4
sub eax, ecx
inc r9d
mov cl, al
inc r10
shl r8b, cl
or byte [rdx + r12], r8b
cmp r10, r11
jl 0x140003e74
mov r13, qword [rbp + 0x10]
mov eax, dword [rbp]
mov r9d, 3
mov rdx, qword [rbp + 0x18]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0x20]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
jmp 0x140004105
or rdi, 0xffffffffffffffff
mov rcx, rsi
mov r15, r10
cmp byte [rbp + 0x90], r10b
je 0x1400040b8
mov rax, rdi
inc rax
cmp word [rsi + rax*2], r10w
jne 0x140003f3c
cmp eax, 0xffe
jle 0x140003f72
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov edi, 0x80004005
jmp 0x140004165
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x140003fb3
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov edi, 0x8007000e
jmp 0x140004165
mov rcx, qword [r13 + 8]
lea rdx, [0x140011318]
call fcn.140003a44
xor r10d, r10d
mov r13, rax
mov rcx, rsi
test rax, rax
je 0x1400040b4
mov rdx, rax
call fcn.140003aec
xor r10d, r10d
mov r12, rax
test rax, rax
je 0x1400040ad
cmp rax, qword [rbp + 0x28]
je 0x140004011
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharPrevW]
nop dword [rax + rax]
xor r10d, r10d
cmp word [rax], 0x22
je 0x1400040ad
mov r8, r12
mov word [r15], r10w
sub r8, rsi
mov rdx, rsi
sar r8, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcpynW]
nop dword [rax + rax]
lea r8, [0x140011328]
mov edx, 0x1000
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
mov r8, r13
mov edx, 0x1000
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
lea r8, [0x140011328]
mov edx, 0x1000
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
mov rax, rdi
xor ecx, ecx
inc rax
cmp word [r13 + rax*2], cx
jne 0x140004082
lea r8, [r12 + rax*2]
mov edx, 0x1000
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
mov rcx, r15
xor r10d, r10d
jmp 0x1400040b0
mov rcx, rsi
mov r12, qword [rbp + 0x18]
mov r13, qword [rbp + 0x10]
inc rdi
cmp word [rcx + rdi*2], r10w
jne 0x1400040b8
lea eax, [rdi*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, r12
mov rcx, qword [rbp + 0x20]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test r15, r15
je 0x140004105
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rdx, qword [rbp + 0x28]
mov rcx, r13
call fcn.1400047b8
xor r15d, r15d
mov edi, eax
mov rcx, rsi
test eax, eax
jns 0x14000412e
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, r14
jmp 0x140004154
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov edi, r15d
jmp 0x140004160
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
test rbx, rbx
jne 0x14000414e
mov eax, edi
mov rcx, qword [rbp + 0x30]
xor rcx, rbp
call fcn.14000d8c0
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
mov rdi, qword [rbp + 0x80]
lea rsp, [rbp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret