Function at 0x14027c018
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21a0
call fcn.140138e50
sub rsp, rax
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rsp + 0x2190], rax
mov r13, r8
mov r12, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x78], r9
xor ebx, ebx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x190]
call fcn.1402967ec
test eax, eax
js 0x14027c4c1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x190]
call fcn.14029de30
test eax, eax
jne 0x14027c0a1
mov eax, 0x80020009
jmp 0x14027c4c1
mov rcx, r15
call fcn.14029ad80
lea rdx, [rsp + 0x190]
mov rcx, r15
call fcn.1402967ec
test eax, eax
js 0x14027c4c1
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x14027c455
cmp eax, 0x11
je 0x14027c2ae
cmp eax, 0x13
je 0x14027c229
cmp eax, 0x4008
jne 0x14027c4ad
lea rax, [rsp + 0x190]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14027c0f8
mov esi, 2
add edi, esi
mov qword [rsp + 0x80], rbx
movsxd rcx, edi
mov edx, esi
call fcn.140276158
cmp rax, 0x100
jbe 0x14027c13c
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14027c540
mov rdi, qword [rsp + 0x80]
jmp 0x14027c14c
lea rdi, [rsp + 0x88]
mov qword [rsp + 0x80], rdi
jmp 0x14027c16f
test rdi, rdi
je 0x14027c201
lea r14, [rsp + 0x190]
cmp word [rsp + 0x190], bx
je 0x14027c1db
mov r15d, 0x30
mov rcx, r14
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
movzx ecx, word [r14]
cmp cx, 0x5c
jne 0x14027c1c6
cmp word [rax], r15w
jne 0x14027c1c6
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov r14, rax
jmp 0x14027c1cc
mov word [rdi], cx
add r14, rsi
add rdi, 2
cmp word [r14], bx
jne 0x14027c190
mov r15, qword [rsp + 0x40]
mov word [rdi], bx
mov word [rdi + rsi], bx
mov r8, qword [rsp + 0x80]
mov rdx, r13
mov rcx, r12
call fcn.14029ac84
mov esi, eax
mov rdi, qword [rsp + 0x80]
jmp 0x14027c206
mov esi, SafeArrayDestroy
lea rax, [rsp + 0x88]
cmp rdi, rax
je 0x14027c4a0
lea rcx, [rsp + 0x80]
call fcn.14027de30
jmp 0x14027c4a0
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x190]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x14027c267
lea rcx, [rsp + 0x40]
call fcn.14027ab0c
mov eax, edi
jmp 0x14027c4c1
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, r13
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov esi, eax
lea rcx, [rsp + 0x40]
call fcn.14027ab0c
jmp 0x14027c4a0
lea rax, [rsp + 0x190]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14027c2ba
mov dword [rsp + 0x38], edi
test dil, 1
jne 0x14027c36a
mov eax, edi
cdq
mov esi, 2
idiv esi
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x80], rbx
movsxd r14, eax
mov qword [rsp + 0x70], r14
lea edx, [rsi - 1]
mov rcx, r14
call fcn.140276158
cmp rax, 0x100
jbe 0x14027c31c
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14027c540
mov rcx, qword [rsp + 0x80]
jmp 0x14027c32c
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x80], rcx
jmp 0x14027c358
test rcx, rcx
jne 0x14027c374
lea rcx, [rsp + 0x80]
call fcn.14027de30
mov eax, 0x80004005
jmp 0x14027c4c1
mov r8, r14
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r14d, ebx
movsxd r11, edi
test edi, edi
jle 0x14027c401
mov r10, rbx
movzx eax, word [rsp + r10*2 + 0x190]
cmp eax, 0x30
jb 0x14027c3c4
cmp eax, 0x39
jbe 0x14027c3be
cmp eax, 0x40
jbe 0x14027c3c4
cmp eax, 0x46
jbe 0x14027c3b8
cmp eax, 0x60
jbe 0x14027c3c4
cmp eax, 0x66
ja 0x14027c3c4
lea r9d, [rax - 0x57]
jmp 0x14027c3c7
lea r9d, [rax - 0x37]
jmp 0x14027c3c7
lea r9d, [rax - 0x30]
jmp 0x14027c3c7
mov r9d, ebx
mov eax, r14d
cdq
idiv esi
movsxd r8, eax
mov rdx, qword [rsp + 0x80]
mov ecx, r14d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl r9b, cl
or byte [r8 + rdx], r9b
inc r14d
inc r10
cmp r10, r11
jl 0x14027c38b
mov r15, qword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov esi, eax
lea rax, [rsp + 0x88]
cmp qword [rsp + 0x80], rax
je 0x14027c4a0
lea rcx, [rsp + 0x80]
call fcn.14027de30
jmp 0x14027c4a0
lea rax, [rsp + 0x190]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14027c461
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x190]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov esi, eax
test esi, esi
je 0x14027c4ad
mov ecx, esi
call fcn.14027ca38
jmp 0x14027c4c1
mov rdx, qword [rsp + 0x78]
mov rcx, r15
call fcn.1402967ec
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x2190]
xor rcx, rsp
call fcn.1400a15a0
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret