Function at 0x140005284
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f98]
mov eax, 0x4070
call fcn.14001bab0
sub rsp, rax
mov rax, qword [0x14002cf88]
xor rax, rsp
mov qword [rbp + 0x3f60], rax
xor ebx, ebx
mov rsi, rcx
test rcx, rcx
je 0x1400055cb
lea rcx, [rbp + 0x1f60]
mov r13d, 0x2000
mov r8d, r13d
test edx, edx
je 0x1400054ba
xor edx, edx
call sub.msvcrt.dll_memset
xor r15d, r15d
cmp dword [rsi + 0x28], 0xffffffff
je 0x1400055cb
lea rdi, [rsi + 8]
mov r14d, 0x1000
mov r8, r13
lea rcx, [rsp + 0x60]
xor edx, edx
mov r12, r15
call sub.msvcrt.dll_memset
mov r15, qword [rdi - 8]
mov rdx, r14
test r15, r15
je 0x140005356
mov r9, qword [rdi]
lea rcx, [rbp + 0x1f60]
call fcn.14000bec8
test eax, eax
js 0x1400055cd
mov r9, qword [rdi]
lea rcx, [rsp + 0x60]
mov rdx, r14
call fcn.14000bec8
mov ebx, eax
test eax, eax
js 0x1400055cd
jmp 0x1400053b1
lea r9, [rbp + 0x1f60]
lea rcx, [rsp + 0x60]
call fcn.14000bec8
test eax, eax
js 0x1400055cd
lea r8, [0x140020c98]
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.14000520c
test eax, eax
js 0x1400055cd
mov r8, qword [rdi]
lea rcx, [rsp + 0x60]
mov rdx, r14
call fcn.14000520c
mov ebx, eax
test eax, eax
js 0x1400055cd
mov r15, r12
test r12, r12
je 0x1400054a6
test byte [rdi + 0x20], 6
je 0x1400053cf
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.14000500c
test eax, 0xfffffffd
jne 0x1400054a6
test byte [rdi + 0x20], 8
lea rdx, [rsp + 0x60]
mov rcx, r15
je 0x1400053fb
mov r8, qword [rdi + 8]
call fcn.140005158
test eax, 0xfffffffd
je 0x140005493
mov ebx, 0x80040201
jmp 0x140005493
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400054a6
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140005482
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov rdx, qword [rdi + 8]
mov r9d, 1
xor r8d, r8d
lea ecx, [rax*2 + 2]
mov rax, qword [rdi + 0x10]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
add rdi, 0x30
cmp dword [rdi + 0x20], 0xffffffff
je 0x1400055cb
jmp 0x140005305
xor edx, edx
mov rcx, rsi
call fcn.140005284
mov eax, 0x80040201
jmp 0x1400055cd
xor edx, edx
call sub.msvcrt.dll_memset
xor r15d, r15d
cmp dword [rsi + 0x28], 0xffffffff
je 0x1400055cb
lea rdi, [rsi + 8]
mov r14d, 0x1000
mov r12d, 0x80040201
mov r8, r13
lea rcx, [rsp + 0x60]
xor edx, edx
mov rsi, r15
call sub.msvcrt.dll_memset
mov r15, qword [rdi - 8]
mov rdx, r14
test r15, r15
je 0x14000552f
mov r9, qword [rdi]
lea rcx, [rbp + 0x1f60]
call fcn.14000bec8
test eax, eax
js 0x1400055cd
mov r9, qword [rdi]
lea rcx, [rsp + 0x60]
mov rdx, r14
call fcn.14000bec8
mov ebx, eax
test eax, eax
js 0x1400055cd
jmp 0x14000557e
lea r9, [rbp + 0x1f60]
lea rcx, [rsp + 0x60]
call fcn.14000bec8
test eax, eax
js 0x1400055cd
lea r8, [0x140020c98]
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.14000520c
test eax, eax
js 0x1400055cd
mov r8, qword [rdi]
lea rcx, [rsp + 0x60]
mov rdx, r14
call fcn.14000520c
mov ebx, eax
test eax, eax
js 0x1400055cd
mov r15, rsi
test rsi, rsi
je 0x1400055bd
test byte [rdi + 0x20], 0xb
jne 0x14000559d
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.14000500c
test eax, 0xfffffffd
je 0x1400055bd
mov ebx, r12d
jmp 0x1400055bd
test byte [rdi + 0x20], 8
je 0x1400055bd
mov r8, qword [rdi + 8]
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.140005158
test eax, 0xfffffffd
cmovne ebx, r12d
add rdi, 0x30
cmp dword [rdi + 0x20], 0xffffffff
jne 0x1400054de
mov eax, ebx
mov rcx, qword [rbp + 0x3f60]
xor rcx, rsp
call fcn.140001fe0
lea r11, [rsp + 0x4070]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret