Function at 0x140003634
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 - 0x3fa8]
mov eax, 0x4080
call fcn.14001bf20
sub rsp, rax
mov rax, qword [0x140031f88]
xor rax, rsp
mov qword [rbp + 0x3f70], rax
xor ebx, ebx
mov r14, rcx
test rcx, rcx
je 0x140003a15
lea rcx, [rbp + 0x1f70]
mov r12d, 0x2000
mov r8d, r12d
test edx, edx
je 0x1400038b5
xor edx, edx
call fcn.14001afe6
xor r15d, r15d
cmp dword [r14 + 0x28], 0xffffffff
je 0x140003a15
lea rdi, [r14 + 8]
mov esi, 0x1000
mov r13d, 0x80040201
mov r8, r12
lea rcx, [rsp + 0x70]
xor edx, edx
call fcn.14001afe6
cmp qword [rdi - 8], 0
mov rdx, rsi
je 0x14000370e
mov r9, qword [rdi]
lea rcx, [rbp + 0x1f70]
mov r15, qword [rdi - 8]
call fcn.14000a170
test eax, eax
js 0x140003a17
mov r9, qword [rdi]
lea rcx, [rsp + 0x70]
mov rdx, rsi
call fcn.14000a170
mov ebx, eax
test eax, eax
js 0x140003a17
jmp 0x1400037a7
lea r9, [rbp + 0x1f70]
lea rcx, [rsp + 0x70]
call fcn.14000a170
test eax, eax
js 0x140003a17
lea r8, [rsp + 0x50]
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.14000a0fc
test eax, eax
js 0x140003a17
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
mov rdx, rsi
lea r9, [0x140021b58]
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.14000a170
test eax, eax
js 0x140003a17
lea r8, [rsp + 0x58]
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.14000a0fc
mov ebx, eax
test eax, eax
js 0x14000379f
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x70]
mov r9, qword [rdi]
mov rdx, rsi
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.14000a170
mov ebx, eax
test ebx, ebx
js 0x140003a15
test r15, r15
je 0x1400038a3
test byte [rdi + 0x20], 6
je 0x1400037ce
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.140003444
test eax, 0xfffffffd
jne 0x1400038a3
test byte [rdi + 0x20], 8
lea rdx, [rsp + 0x70]
mov rcx, r15
je 0x1400037f8
mov r8, qword [rdi + 8]
call fcn.140003588
test eax, 0xfffffffd
je 0x140003890
mov ebx, r13d
jmp 0x140003890
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
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 0x1400038a3
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14000387f
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 + 0x60]
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 + 0x60]
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 0x140003a15
jmp 0x1400036bb
xor edx, edx
mov rcx, r14
call fcn.140003634
mov eax, r13d
jmp 0x140003a17
xor edx, edx
call fcn.14001afe6
xor r15d, r15d
cmp dword [r14 + 0x28], 0xffffffff
je 0x140003a15
lea rdi, [r14 + 8]
mov esi, 0x1000
mov r14d, 0xfffffffd
mov r13d, 0x80040201
mov r8, r12
lea rcx, [rsp + 0x70]
xor edx, edx
call fcn.14001afe6
cmp qword [rdi - 8], 0
mov rdx, rsi
je 0x140003932
mov r9, qword [rdi]
lea rcx, [rbp + 0x1f70]
mov r15, qword [rdi - 8]
call fcn.14000a170
test eax, eax
js 0x140003a17
mov r9, qword [rdi]
lea rcx, [rsp + 0x70]
mov rdx, rsi
call fcn.14000a170
mov ebx, eax
test eax, eax
js 0x140003a17
jmp 0x1400039c7
lea r9, [rbp + 0x1f70]
lea rcx, [rsp + 0x70]
call fcn.14000a170
test eax, eax
js 0x140003a17
lea r8, [rsp + 0x58]
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.14000a0fc
test eax, eax
js 0x140003a17
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x70]
mov rdx, rsi
lea r9, [0x140021b58]
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.14000a170
test eax, eax
js 0x140003a17
lea r8, [rsp + 0x50]
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.14000a0fc
mov ebx, eax
test eax, eax
js 0x1400039c3
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
mov r9, qword [rdi]
mov rdx, rsi
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.14000a170
mov ebx, eax
test ebx, ebx
js 0x140003a15
test r15, r15
je 0x140003a07
test byte [rdi + 0x20], 0xb
jne 0x1400039e9
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.140003444
test r14d, eax
je 0x140003a07
mov ebx, r13d
jmp 0x140003a07
test byte [rdi + 0x20], 8
je 0x140003a07
mov r8, qword [rdi + 8]
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.140003588
test r14d, eax
cmovne ebx, r13d
add rdi, 0x30
cmp dword [rdi + 0x20], 0xffffffff
jne 0x1400038df
mov eax, ebx
mov rcx, qword [rbp + 0x3f70]
xor rcx, rsp
call fcn.14001af60
lea r11, [rsp + 0x4080]
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