Function at 0x14000cb30
Capabilities:
Set registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.TRACE
mov dword [rsp + 0x58], 0xff
xor edx, edx
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov ebx, eax
test eax, eax
jle 0x14000cb78
movzx ebx, ax
or ebx, 0x80070000
xor edx, edx
mov qword [rsp + 0x30], rsi
test ebx, ebx
jns 0x14000cc2f
mov r9d, 0x114f
mov r11d, ebx
mov esi, edx
lea r10, [0x14003c070]
nop dword [rax]
mov eax, edx
mov r8, r11
add rax, rax
mov ecx, edx
mov eax, dword [r10 + rax*8]
sub r8, rax
je 0x14000cbd3
mov ecx, r9d
sub ecx, edx
shr ecx, 1
add ecx, edx
test r8, r8
mov eax, ecx
cmovns eax, r9d
cmovns edx, ecx
inc edx
mov r9d, eax
cmp eax, edx
jae 0x14000cba0
jmp 0x14000cbdb
add rcx, rcx
mov rsi, qword [r10 + rcx*8 + 8]
cmp dword [0x140055944], 0
je 0x14000cdd6
lea rax, str.HRESULT_FROM_WIN32__RegSetKeyValueW__hKey__nullptr__L_TRACE_____4ul____nTrace__sizeof__nTrace______
mov edi, 7
mov qword [rsp + 0x28], rax
lea r8, str._hr0x_08X__s_from__s_n
movzx edx, di
mov r9d, ebx
mov ecx, 0xfffffff4
mov qword [rsp + 0x20], rsi
call fcn.1400085c0
cmp dword [0x140055944], 0
je 0x14000cdd6
mov dword [rsp + 0x20], 0x101
jmp 0x14000cdbb
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.ERROR
mov dword [rsp + 0x60], 5
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov ebx, eax
test eax, eax
jle 0x14000cc6e
movzx ebx, ax
or ebx, 0x80070000
xor edx, edx
test ebx, ebx
jns 0x14000cd1f
mov r9d, 0x114f
mov r11d, ebx
mov esi, edx
lea r10, [0x14003c070]
nop word [rax + rax]
mov eax, edx
mov r8, r11
add rax, rax
mov ecx, edx
mov eax, dword [r10 + rax*8]
sub r8, rax
je 0x14000ccc3
mov ecx, r9d
sub ecx, edx
shr ecx, 1
add ecx, edx
test r8, r8
mov eax, ecx
cmovns eax, r9d
cmovns edx, ecx
inc edx
mov r9d, eax
cmp eax, edx
jae 0x14000cc90
jmp 0x14000cccb
add rcx, rcx
mov rsi, qword [r10 + rcx*8 + 8]
cmp dword [0x140055944], 0
je 0x14000cdd6
lea rax, str.HRESULT_FROM_WIN32__RegSetKeyValueW__hKey__nullptr__L_ERROR_____4ul____nError__sizeof__nError______
mov edi, 7
mov qword [rsp + 0x28], rax
lea r8, str._hr0x_08X__s_from__s_n
movzx edx, di
mov r9d, ebx
mov ecx, 0xfffffff4
mov qword [rsp + 0x20], rsi
call fcn.1400085c0
cmp dword [0x140055944], 0
je 0x14000cdd6
mov dword [rsp + 0x20], 0x10b
jmp 0x14000cdbb
lea rax, str.Debugger
mov dword [rsp + 0x28], 0x12
mov r9d, 1
mov qword [rsp + 0x20], rax
lea r8, str.LogToFile
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov ebx, eax
test eax, eax
jle 0x14000cd58
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x14000cdd6
xor edx, edx
mov ecx, ebx
mov qword [rsp + 0x68], rdx
lea rdx, [rsp + 0x68]
call fcn.140008520
cmp dword [0x140055944], 0
je 0x14000cdd6
lea rax, str.HRESULT_FROM_WIN32__RegSetKeyValueW__hKey__nullptr__L_LogToFile_____1ul____L_Debugger___sizeof__L_Debugger_______
mov edi, 7
mov qword [rsp + 0x28], rax
lea r8, str._hr0x_08X__s_from__s_n
mov rax, qword [rsp + 0x68]
mov r9d, ebx
movzx edx, di
mov ecx, 0xfffffff4
mov qword [rsp + 0x20], rax
call fcn.1400085c0
cmp dword [0x140055944], 0
je 0x14000cdd6
mov dword [rsp + 0x20], 0x114
lea r9, str.avcoremf_samplesmf360mftracemftracelibmftracehelpers.cpp
movzx edx, di
lea r8, str.___at__s:_i_n
mov ecx, 0xfffffff4
call fcn.1400085c0
mov rsi, qword [rsp + 0x30]
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret