Function at 0x140205640
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
lea rcx, [rbp - 0x41]
mov rdx, r8
mov qword [rbp - 0x41], r14
mov rdi, r8
call fcn.140206a94
mov dword [rbp - 0x49], eax
test eax, eax
jne 0x1402057a1
mov rcx, qword [rsi]
mov rdx, rbx
mov rax, qword [rsi + 8]
sub rax, rcx
cmp qword [rbx + 0x18], 8
jb 0x14020569f
mov rdx, qword [rbx]
mov dword [rsp + 0x28], eax
mov r9d, 3
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov dword [rbp - 0x49], eax
test eax, eax
je 0x1402057b4
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x14020579e
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_set_registry_key
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x49]
mov qword [rbp - 9], rax
mov qword [rbp - 0x11], 0x36
mov qword [rbp - 1], 4
jb 0x14020570c
mov rbx, qword [rbx]
or rdx, 0xffffffffffffffff
lea rcx, [0x1403cb630]
mov r8, rcx
mov rax, r14
test rbx, rbx
je 0x140205732
mov r8, rbx
mov rax, rdx
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140205728
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp + 0xf], eax
mov qword [rbp + 7], r8
mov dword [rbp + 0x13], r14d
jb 0x14020574e
mov rdi, qword [rdi]
mov rax, r14
test rdi, rdi
je 0x140205766
mov rcx, rdi
mov rax, rdx
inc rax
cmp word [rdi + rax*2], r14w
jne 0x14020575c
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rcx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r14d
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140481f7a]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001208
mov eax, dword [rbp - 0x49]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140205879
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x140205876
cmp qword [rbx + 0x18], 8
lea rax, str.Write_registry_with_binary_data
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], 0x40
jb 0x1402057e4
mov rbx, qword [rbx]
or rdx, 0xffffffffffffffff
lea rcx, [0x1403cb630]
mov r8, rcx
mov rax, r14
test rbx, rbx
je 0x14020580a
mov r8, rbx
mov rax, rdx
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140205800
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 1], eax
mov qword [rbp - 9], r8
mov dword [rbp + 3], r14d
jb 0x140205826
mov rdi, qword [rdi]
mov rax, r14
test rdi, rdi
je 0x14020583e
mov rcx, rdi
mov rax, rdx
inc rax
cmp word [rdi + rax*2], r14w
jne 0x140205834
lea eax, [rax*2 + 2]
mov qword [rbp + 7], rcx
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], r14d
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140481ffc]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001208
mov ebx, r14d
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14020588e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140356560
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret