Function at 0x1400032e0
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.140019870
sub rsp, rax
mov rax, qword [0x14002ff78]
xor rax, rsp
mov qword [rbp + 0x3f70], rax
xor ebx, ebx
mov rdi, rcx
test edx, edx
je 0x1400034f0
test rcx, rcx
je 0x140003612
xor edx, edx
lea rcx, [rbp + 0x1f70]
mov r8d, 0x2000
call sub.msvcrt.dll_memset
xor eax, eax
cmp dword [rdi + 0x28], 0xffffffff
mov qword [rsp + 0x58], rax
je 0x140003612
lea rsi, [rdi + 8]
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x2000
mov ebx, 0x1000
call sub.msvcrt.dll_memset
mov rax, qword [rsi - 8]
mov edx, ebx
test rax, rax
je 0x1400033a3
mov r8, qword [rsi]
lea rcx, [rbp + 0x1f70]
mov qword [rsp + 0x58], rax
call fcn.1400036d4
test eax, eax
js 0x140003614
mov r8, qword [rsi]
lea rcx, [rsp + 0x70]
mov edx, ebx
call fcn.1400036d4
jmp 0x1400033e8
lea r8, [rbp + 0x1f70]
lea rcx, [rsp + 0x70]
call fcn.1400036d4
test eax, eax
js 0x140003614
lea r8, [0x14001e3c8]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14000363c
test eax, eax
js 0x140003614
mov r8, qword [rsi]
lea rcx, [rsp + 0x70]
mov rdx, rbx
call fcn.14000363c
mov ebx, eax
test eax, eax
js 0x140003614
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400034dc
test byte [rsi + 0x20], 6
je 0x140003420
lea rdx, [rsp + 0x70]
call fcn.140003138
test eax, 0xfffffffd
jne 0x1400034dc
mov rcx, qword [rsp + 0x58]
test byte [rsi + 0x20], 8
lea rdx, [rsp + 0x70]
je 0x140003449
mov r8, qword [rsi + 8]
call fcn.140003254
test eax, 0xfffffffd
je 0x1400034c9
mov ebx, 0x80040201
jmp 0x1400034c9
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
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400034dc
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400034be
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 0x140003612
jmp 0x140003354
xor edx, edx
mov rcx, rdi
call fcn.1400032e0
mov eax, 0x80040201
jmp 0x140003614
test rdi, rdi
je 0x140003612
xor edx, edx
lea rcx, [rbp + 0x1f70]
mov r8d, 0x2000
call sub.msvcrt.dll_memset
xor eax, eax
cmp dword [rdi + 0x28], 0xffffffff
mov qword [rsp + 0x50], rax
je 0x140003612
add rdi, 8
mov esi, 0x80040201
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x2000
mov ebx, 0x1000
call sub.msvcrt.dll_memset
mov rax, qword [rdi - 8]
mov edx, ebx
test rax, rax
je 0x140003576
mov r8, qword [rdi]
lea rcx, [rbp + 0x1f70]
mov qword [rsp + 0x50], rax
call fcn.1400036d4
test eax, eax
js 0x140003614
mov r8, qword [rdi]
lea rcx, [rsp + 0x70]
mov edx, ebx
call fcn.1400036d4
jmp 0x1400035b7
lea r8, [rbp + 0x1f70]
lea rcx, [rsp + 0x70]
call fcn.1400036d4
test eax, eax
js 0x140003614
lea r8, [0x14001e3c8]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14000363c
test eax, eax
js 0x140003614
mov r8, qword [rdi]
lea rcx, [rsp + 0x70]
mov rdx, rbx
call fcn.14000363c
mov ebx, eax
test eax, eax
js 0x140003614
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140003604
test byte [rdi + 0x20], 0xb
jne 0x1400035e5
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140003138
test eax, 0xfffffffd
je 0x140003604
mov ebx, esi
jmp 0x140003604
test byte [rdi + 0x20], 8
je 0x140003604
mov r8, qword [rdi + 8]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140003254
test eax, 0xfffffffd
cmovne ebx, esi
add rdi, 0x30
cmp dword [rdi + 0x20], 0xffffffff
jne 0x140003527
mov eax, ebx
mov rcx, qword [rbp + 0x3f70]
xor rcx, rsp
call fcn.140018970
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