Function at 0x140003518
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
lea rbp, [rax - 0x3f88]
mov eax, 0x4080
call fcn.14001a980
sub rsp, rax
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rbp + 0x3f70], rax
xor esi, esi
mov rdi, rcx
mov ebx, esi
test edx, edx
je 0x140003740
test rcx, rcx
je 0x14000386c
xor edx, edx
mov word [rbp + 0x1f70], si
mov r8d, 0x1ffe
lea rcx, [rbp + 0x1f72]
call sub.msvcrt.dll_memset
cmp dword [rdi + 0x28], 0xffffffff
mov qword [rsp + 0x58], rsi
je 0x14000386c
lea rsi, [rdi + 8]
xor eax, eax
lea rcx, [rsp + 0x72]
xor edx, edx
mov word [rsp + 0x70], ax
mov r8d, 0x1ffe
mov ebx, 0x1000
call sub.msvcrt.dll_memset
mov rax, qword [rsi - 8]
mov edx, ebx
test rax, rax
je 0x1400035e9
mov r8, qword [rsi]
lea rcx, [rbp + 0x1f70]
mov qword [rsp + 0x58], rax
call fcn.14000393c
test eax, eax
js 0x14000386e
mov r8, qword [rsi]
lea rcx, [rsp + 0x70]
mov edx, ebx
call fcn.14000393c
jmp 0x14000362e
lea r8, [rbp + 0x1f70]
lea rcx, [rsp + 0x70]
call fcn.14000393c
test eax, eax
js 0x14000386e
lea r8, [0x14001ed14]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14000389c
test eax, eax
js 0x14000386e
mov r8, qword [rsi]
lea rcx, [rsp + 0x70]
mov rdx, rbx
call fcn.14000389c
xor edx, edx
mov ebx, eax
test eax, eax
js 0x14000386e
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000372c
test byte [rsi + 0x20], 6
je 0x14000366a
lea rdx, [rsp + 0x70]
call fcn.140003364
test eax, 0xfffffffd
jne 0x14000372c
mov rcx, qword [rsp + 0x58]
xor edx, edx
test byte [rsi + 0x20], 8
je 0x140003693
mov r8, qword [rsi + 8]
lea rdx, [rsp + 0x70]
call fcn.140003484
test eax, 0xfffffffd
je 0x140003719
mov ebx, 0x80040201
jmp 0x140003719
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edx
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
xor edx, edx
test eax, eax
jne 0x14000372e
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14000370e
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
mov rdx, qword [rsi + 8]
mov r9d, 1
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add rsi, 0x30
cmp dword [rsi + 0x20], 0xffffffff
je 0x14000386c
jmp 0x140003593
xor edx, edx
mov rcx, rdi
call fcn.140003518
mov eax, 0x80040201
jmp 0x14000386e
test rcx, rcx
je 0x14000386c
xor edx, edx
mov word [rbp + 0x1f70], si
mov r8d, 0x1ffe
lea rcx, [rbp + 0x1f72]
call sub.msvcrt.dll_memset
cmp dword [rdi + 0x28], 0xffffffff
mov qword [rsp + 0x50], rsi
je 0x14000386c
add rdi, 8
mov esi, 0x80040201
xor eax, eax
lea rcx, [rsp + 0x72]
xor edx, edx
mov word [rsp + 0x70], ax
mov r8d, 0x1ffe
mov ebx, 0x1000
call sub.msvcrt.dll_memset
mov rax, qword [rdi - 8]
mov edx, ebx
test rax, rax
je 0x1400037d2
mov r8, qword [rdi]
lea rcx, [rbp + 0x1f70]
mov qword [rsp + 0x50], rax
call fcn.14000393c
test eax, eax
js 0x14000386e
mov r8, qword [rdi]
lea rcx, [rsp + 0x70]
mov edx, ebx
call fcn.14000393c
jmp 0x140003813
lea r8, [rbp + 0x1f70]
lea rcx, [rsp + 0x70]
call fcn.14000393c
test eax, eax
js 0x14000386e
lea r8, [0x14001ed14]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14000389c
test eax, eax
js 0x14000386e
mov r8, qword [rdi]
lea rcx, [rsp + 0x70]
mov rdx, rbx
call fcn.14000389c
mov ebx, eax
test eax, eax
js 0x14000386c
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14000385e
test byte [rdi + 0x20], 0xb
jne 0x140003841
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140003364
test eax, 0xfffffffd
je 0x14000385e
mov ebx, esi
jmp 0x14000385e
test byte [rdi + 0x20], 8
je 0x14000385e
mov r8, qword [rdi + 8]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140003484
and eax, 0xfffffffd
cmovne ebx, esi
add rdi, 0x30
cmp dword [rdi + 0x20], 0xffffffff
jne 0x14000377c
mov eax, ebx
mov rcx, qword [rbp + 0x3f70]
xor rcx, rsp
call fcn.140019770
lea r11, [rsp + 0x4080]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret