Function at 0x1401b5ad4
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov dword [rbp - 0x61], edx
xor esi, esi
lea rcx, [rbp - 0x59]
mov rdx, r8
mov qword [rbp - 0x59], rsi
mov rdi, r8
call fcn.1401b7844
mov dword [rbp - 0x69], eax
test eax, eax
jne 0x1401b5c30
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1401b5b28
mov rdx, qword [rbx]
mov rcx, qword [rbp - 0x59]
lea rax, [rbp - 0x61]
mov r14d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov r9d, r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov dword [rbp - 0x69], eax
test eax, eax
je 0x1401b5c43
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401b5c2d
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_set_registry_key
mov qword [rbp - 0x29], rax
lea rax, [rbp - 0x69]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x21], 0x36
mov qword [rbp - 0x11], r14
jb 0x1401b5b93
mov rbx, qword [rbx]
or rdx, 0xffffffffffffffff
lea rcx, [0x1402cb810]
mov r8, rcx
mov rax, rsi
test rbx, rbx
je 0x1401b5bb8
mov r8, rbx
mov rax, rdx
inc rax
cmp word [rbx + rax*2], si
jne 0x1401b5baf
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 1], eax
mov qword [rbp - 9], r8
mov dword [rbp + 3], esi
jb 0x1401b5bd3
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x1401b5bea
mov rcx, rdi
mov rax, rdx
inc rax
cmp word [rdi + rax*2], si
jne 0x1401b5be1
lea eax, [rax*2 + 2]
mov qword [rbp + 7], rcx
mov dword [rbp + 0xf], eax
lea rax, [rbp - 0x61]
mov qword [rbp + 0x17], rax
mov dword [rbp + 0x13], esi
mov qword [rbp + 0x1f], r14
lea rax, [rbp - 0x49]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034cb60]
xor r8d, r8d
mov dword [rsp + 0x20], 7
mov rcx, r10
call fcn.140001078
mov eax, dword [rbp - 0x69]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401b5d0e
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], r14d
jbe 0x1401b5d0c
cmp qword [rbx + 0x18], 8
lea rax, str.Write_registry_value
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], 0x2a
jb 0x1401b5c72
mov rbx, qword [rbx]
or rdx, 0xffffffffffffffff
lea rcx, [0x1402cb810]
mov r8, rcx
mov rax, rsi
test rbx, rbx
je 0x1401b5c97
mov r8, rbx
mov rax, rdx
inc rax
cmp word [rbx + rax*2], si
jne 0x1401b5c8e
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x11], eax
mov qword [rbp - 0x19], r8
mov dword [rbp - 0xd], esi
jb 0x1401b5cb2
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x1401b5cc9
mov rcx, rdi
mov rax, rdx
inc rax
cmp word [rdi + rax*2], si
jne 0x1401b5cc0
lea eax, [rax*2 + 2]
mov qword [rbp - 9], rcx
mov dword [rbp - 1], eax
lea rax, [rbp - 0x61]
mov qword [rbp + 7], rax
mov dword [rbp + 3], esi
mov qword [rbp + 0xf], r14
lea rax, [rbp - 0x49]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034ccd2]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001078
mov ebx, esi
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1401b5d1d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14027a710
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret