Function at 0x14004cbe0
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x11a8
call fcn.14009ff00
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400ee620]
xor rax, rbp
mov qword [rbp + 0x1160], rax
mov r15, r8
mov qword [rbp + 0x20], r8
mov r14, rdx
mov qword [rbp + 8], rdx
mov rsi, rcx
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x10], r8
mov qword [rbp + 0x38], r9
xor r13d, r13d
mov word [rbp], r13w
lea rdx, [rbp + 0x160]
call fcn.14004ba20
test eax, eax
js 0x14004d0d2
lea rdx, [rbp]
lea rcx, [rbp + 0x160]
call fcn.14004b830
test eax, eax
jne 0x14004cc73
mov eax, 0x80020009
jmp 0x14004d0d2
mov rcx, qword [rsi]
mov al, byte [rcx]
cmp al, 9
jl 0x14004cc93
cmp al, 0xa
jle 0x14004cc88
cmp al, 0xd
je 0x14004cc88
cmp al, 0x20
jne 0x14004cc93
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [rsi], rax
jmp 0x14004cc73
lea rdx, [rbp + 0x160]
mov rcx, rsi
call fcn.14004ba20
test eax, eax
js 0x14004d0d2
movzx eax, word [rbp]
cmp eax, 8
je 0x14004d07a
cmp eax, 0x11
je 0x14004cf1f
cmp eax, 0x13
je 0x14004cdf1
cmp eax, 0x4008
jne 0x14004d0bd
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov qword [rbp + 0x50], r13
movsxd rcx, eax
test eax, eax
je 0x14004cd23
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x14004cd08
mov ecx, 0x80070057
call fcn.1400395a0
cmp rcx, 0x100
jbe 0x14004cd23
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.14004bcd0
mov rbx, qword [rbp + 0x50]
jmp 0x14004cd2b
lea rbx, [rbp + 0x58]
mov qword [rbp + 0x50], rbx
jmp 0x14004cd40
test rbx, rbx
je 0x14004cdd1
lea rdi, [rbp + 0x160]
cmp byte [rbp + 0x160], 0
je 0x14004cdb3
nop dword [rax]
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
movzx ecx, byte [rdi]
cmp cl, 0x5c
jne 0x14004cd8a
cmp byte [rax], 0x30
jne 0x14004cd8a
mov byte [rbx], 0
inc rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rdi, rax
jmp 0x14004cdae
mov byte [rbx], cl
movzx ecx, byte [rdi]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x14004cda8
inc rbx
inc rdi
movzx eax, byte [rdi]
test al, al
je 0x14004cdb3
mov byte [rbx], al
inc rbx
inc rdi
cmp byte [rdi], 0
jne 0x14004cd60
mov byte [rbx], 0
mov byte [rbx + 1], 0
mov r8, qword [rbp + 0x50]
mov rdx, r15
mov rcx, r14
call fcn.14004b6b0
mov edi, eax
mov rbx, qword [rbp + 0x50]
jmp 0x14004cdd6
mov edi, reloc.WS2_32.dll_ntohl
lea rax, [rbp + 0x58]
cmp rbx, rax
je 0x14004d0b0
lea rcx, [rbp + 0x50]
call fcn.14004bcc0
jmp 0x14004d0b0
mov rbx, r13
mov qword [rbp + 8], rbx
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd r12, eax
add r12, r12
mov eax, 0x80000000
add rax, r12
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x14004cf00
cmp r12d, 0x400
jg 0x14004ce61
movsxd rdi, r12d
mov rcx, rdi
call fcn.14003c730
test al, al
je 0x14004ce61
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x14004ce4e
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14009ff00
sub rsp, rax
lea rcx, [rsp + 0x30]
jmp 0x14004ce96
movsxd rdi, r12d
or rax, 0xffffffffffffffff
sub rax, rdi
cmp rax, 0x10
jb 0x14004cef5
lea rcx, [rdi + 0x10]
call fcn.140084ebc
test rax, rax
jne 0x14004ce88
mov rcx, r13
jmp 0x14004ce96
mov qword [rax], r13
mov rbx, rax
mov qword [rbp + 8], rax
lea rcx, [rax + 0x10]
shr rdi, 1
mov r9d, 3
mov r8d, edi
lea rdx, [rbp + 0x160]
call fcn.140039540
test rax, rax
je 0x14004cf00
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov r8d, dword [rbp]
mov rdx, r15
mov rcx, r14
call fcn.14004b670
mov edi, eax
test rbx, rbx
je 0x14004d0b0
nop
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.140084154
test rbx, rbx
jne 0x14004cee0
jmp 0x14004d0b0
mov ecx, 0x80070057
call fcn.1400395a0
nop
test rbx, rbx
je 0x14004cf15
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.140084154
test rbx, rbx
jne 0x14004cf05
mov eax, 0x8007000e
jmp 0x14004d0d2
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [rbp + 0x18], eax
test al, 1
je 0x14004cf3f
mov eax, 0x80004005
jmp 0x14004d0d2
cdq
sub eax, edx
sar eax, 1
movsxd r12, eax
mov dword [rbp], r12d
mov qword [rbp + 0x50], r13
mov rcx, r12
test eax, eax
je 0x14004cf8a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x14004cf6f
mov ecx, 0x80070057
call fcn.1400395a0
cmp rcx, 0x100
jbe 0x14004cf8a
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.14004bcd0
mov rcx, qword [rbp + 0x50]
jmp 0x14004cf92
lea rcx, [rbp + 0x58]
mov qword [rbp + 0x50], rcx
jmp 0x14004cfb6
test rcx, rcx
jne 0x14004cfd7
lea rax, [rbp + 0x58]
test rax, rax
je 0x14004cfcd
lea rcx, [rbp + 0x50]
call fcn.14004bcc0
mov eax, 0x80004005
jmp 0x14004d0d2
movsxd r8, r12d
xor edx, edx
call fcn.140083880
mov r14d, r13d
mov r15, r13
movsxd rax, ebx
test ebx, ebx
jle 0x14004d03b
mov r12, rax
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
mov rbx, qword [rbp + 0x50]
movzx ecx, byte [rbp + r15 + 0x160]
call fcn.14004b930
movzx r11d, al
mov ecx, r14d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
movzx ecx, al
shl r11b, cl
or byte [rdi + rbx], r11b
inc r14d
inc r15
cmp r15, r12
jl 0x14004cff1
mov r12d, dword [rbp]
mov dword [rsp + 0x28], r12d
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x50], rax
je 0x14004d0b0
lea rcx, [rbp + 0x50]
call fcn.14004bcc0
jmp 0x14004d0b0
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x14004d0bd
mov ecx, edi
call fcn.14004b500
jmp 0x14004d0d2
mov rdx, qword [rbp + 0x38]
mov rcx, rsi
call fcn.14004ba20
test eax, eax
cmovs r13d, eax
mov eax, r13d
mov rcx, qword [rbp + 0x1160]
xor rcx, rbp
call fcn.140083f40
lea rsp, [rbp + 0x1178]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret