Function at 0x1600b7abc
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21b0
call fcn.160072500
sub rsp, rax
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x160270bd8]
xor rax, rsp
mov qword [rsp + 0x21a0], rax
mov rsi, r8
mov qword [rsp + 0x40], r8
mov r15, rdx
mov qword [rsp + 0x60], rdx
mov r12, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x80], r9
xor ebx, ebx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x1a0]
call fcn.1600bb738
test eax, eax
js 0x1600b7f52
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x1a0]
call fcn.1600bec08
test eax, eax
jne 0x1600b7b59
mov eax, 0x80020009
jmp 0x1600b7f52
mov rcx, r12
call fcn.1600be23c
lea rdx, [rsp + 0x1a0]
mov rcx, r12
call fcn.1600bb738
test eax, eax
js 0x1600b7f52
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x1600b7eea
cmp eax, 0x11
je 0x1600b7d37
cmp eax, 0x13
je 0x1600b7cd6
cmp eax, 0x4008
jne 0x1600b7f3b
lea rax, [rsp + 0x1a0]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1600b7bb0
mov r14d, 2
add edi, r14d
mov qword [rsp + 0x90], rbx
movsxd rcx, edi
mov edx, r14d
call fcn.1600b4800
cmp rax, 0x100
jbe 0x1600b7bf7
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1600b7fc4
mov rdi, qword [rsp + 0x90]
jmp 0x1600b7c07
lea rdi, [rsp + 0x98]
mov qword [rsp + 0x90], rdi
mov r13, qword [rsp + 0x60]
jmp 0x1600b7c30
test rdi, rdi
je 0x1600b7cae
lea rsi, [rsp + 0x1a0]
cmp word [rsp + 0x1a0], bx
je 0x1600b7c85
mov r15d, 0x30
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x1600b7c76
cmp word [rax], r15w
jne 0x1600b7c76
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rsi, rax
jmp 0x1600b7c7c
mov word [rdi], cx
add rsi, r14
add rdi, 2
cmp word [rsi], bx
jne 0x1600b7c4d
mov word [rdi], bx
mov word [rdi + r14], bx
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x40]
mov rcx, r13
call fcn.1600bdd44
mov esi, eax
mov rdi, qword [rsp + 0x90]
jmp 0x1600b7cb3
mov esi, reloc.OLEAUT32.dll_SafeArrayCreate
lea rax, [rsp + 0x98]
cmp rdi, rax
je 0x1600b7f2e
lea rcx, [rsp + 0x90]
call fcn.1600ba8d0
jmp 0x1600b7f2e
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x50], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
lea rcx, [rsp + 0x50]
call fcn.160010bd0
jmp 0x1600b7f2e
lea rax, [rsp + 0x1a0]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1600b7d43
mov dword [rsp + 0x38], edi
test dil, 1
je 0x1600b7d60
mov eax, 0x80004005
jmp 0x1600b7f52
mov eax, edi
cdq
mov r14d, 2
idiv r14d
movsxd r13, eax
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x90], rbx
mov rsi, r13
mov qword [rsp + 0x78], r13
lea edx, [r14 - 1]
mov rcx, r13
call fcn.1600b4800
cmp rax, 0x100
jbe 0x1600b7db2
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1600b7fc4
mov rcx, qword [rsp + 0x90]
jmp 0x1600b7dc2
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x90], rcx
jmp 0x1600b7df9
test rcx, rcx
jne 0x1600b7e10
lea rcx, [rsp + 0x90]
call fcn.1600ba8d0
jmp 0x1600b7d56
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov r9d, ebx
movsxd r11, edi
test edi, edi
jle 0x1600b7e99
mov r8, rbx
mov r15d, 0x30
mov eax, r9d
cdq
idiv r14d
movsxd r10, eax
add r10, qword [rsp + 0x90]
movzx edx, word [rsp + r8*2 + 0x1a0]
mov eax, edx
cmp edx, r15d
jb 0x1600b7e75
cmp eax, 0x39
jbe 0x1600b7e70
cmp eax, 0x40
jbe 0x1600b7e75
cmp eax, 0x46
jbe 0x1600b7e6b
add eax, 0xffffff9f
cmp eax, 5
ja 0x1600b7e75
sub dl, 0x57
jmp 0x1600b7e77
sub dl, 0x37
jmp 0x1600b7e77
sub dl, r15b
jmp 0x1600b7e77
mov dl, bl
mov ecx, r9d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [r10], dl
inc r9d
inc r8
cmp r8, r11
jl 0x1600b7e2d
mov dword [rsp + 0x28], r13d
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 + 0x60]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
lea rax, [rsp + 0x98]
cmp qword [rsp + 0x90], rax
je 0x1600b7f2e
lea rcx, [rsp + 0x90]
call fcn.1600ba8d0
jmp 0x1600b7f2e
lea rax, [rsp + 0x1a0]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1600b7ef6
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x1600b7f3b
mov ecx, esi
call fcn.1600b8290
jmp 0x1600b7f52
mov rdx, qword [rsp + 0x80]
mov rcx, r12
call fcn.1600bb738
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x21a0]
xor rcx, rsp
call fcn.16006e590
add rsp, 0x21b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret