Function at 0x1400154a0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0x68
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
lea rcx, str._________Inside_writeValue_Method___________n
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov ebp, 4
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
call fcn.140016938
test rdi, rdi
je 0x140015738
test rbx, rbx
je 0x140015738
lea rcx, str.writeValue:_Subkey_:__s__n
mov rdx, r14
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x60], r15
call fcn.140016938
lea rcx, str.writeValue:_Value_Name:__s__n
mov rdx, rdi
call fcn.140016938
lea rcx, str.writeValue:_Value_Data:__s__n
mov rdx, rbx
call fcn.140016938
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140014270
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140014270
mov r15, qword [rsp + 0x38]
lea rdx, [0x14002f850]
mov rcx, r15
call fcn.140016b60
test eax, eax
jne 0x140015575
lea rcx, str.writeValue_:_going_to_add_the__default__value_._n
call fcn.140016938
lea r15, [0x14002e988]
mov rbx, qword [rsp + 0x30]
lea rdx, [0x14002f850]
mov rcx, rbx
call fcn.140016b60
test eax, eax
jne 0x1400155a0
lea rcx, str.writeValue_:_going_to_add_the_value_data_as_0_value_._n
call fcn.140016938
lea rbx, [0x14002e988]
mov esi, dword [rsp + 0xb0]
cmp esi, ebp
jne 0x1400155c5
mov rcx, rbx
call fcn.140016cd4
lea rbx, [rsp + 0x48]
lea rcx, str.writeValue:__REG_DWORD____sizeOfInputData:__d_n
mov dword [rsp + 0x48], eax
jmp 0x1400155eb
lea eax, [rsi - 1]
cmp eax, 1
ja 0x1400155f2
or rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400155d1
lea ebp, [rax*2 + 2]
lea rcx, str.writeValue:__Data_type_is_REG_SZ_or_REG_EXPAND_SZ_or_REG_BINARY:__d_n
mov edx, ebp
call fcn.140016938
lea rdx, str.Start
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x140015649
mov rdx, r14
call fcn.1400153b0
mov edi, eax
test eax, eax
je 0x140015649
mov edx, eax
lea rcx, str.writeValue:__WriteValue_failure_during_key_creation___d__n
call fcn.140016938
mov eax, edi
mov rsi, qword [rsp + 0x90]
mov r15, qword [rsp + 0x60]
and al, 0x60
lea rax, [rsp + 0x40]
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test eax, eax
jne 0x14001572a
lea rcx, str.writeValue:__Key_found_..._:__d_n
xor edx, edx
call fcn.140016938
lea rcx, str.writeValue:__After_addRegistryKey_method_in_writeValue_method___n
call fcn.140016938
mov rcx, qword [rsp + 0x40]
mov r9d, esi
xor r8d, r8d
mov rdx, r15
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x1400156d1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str._________End_Of_writeValue_Method___________n
call fcn.140016938
xor eax, eax
jmp 0x140015625
lea rcx, str.writeValue:__Function_WriteValue_failure_:_d_n
mov edx, eax
call fcn.140016938
lea rcx, str.writeValue:____Subkey:__s__n
mov rdx, r14
call fcn.140016938
lea rcx, str.writeValue:____Valuename:__S__n
mov rdx, r15
call fcn.140016938
lea rcx, str.writeValue:____Valuedata:__S__n
mov rdx, rbx
call fcn.140016938
lea rcx, str.writeValue:____Datatype:__d__n
mov edx, esi
call fcn.140016938
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140015623
mov edx, eax
lea rcx, str.writeValue:__Key_open_failure___d__n
jmp 0x14001561e
lea rcx, str.writeValue_:_Valuename_or_Valuedata_is_Empty__n
call fcn.140016938
mov eax, 0xd
jmp 0x140015632