Function at 0x140061cf4
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x48]
sub rsp, 0x140
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r14
mov rax, qword [0x1400be278]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rsi, rcx
mov r8d, dword [rcx]
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.140062d38
nop
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x140061f24
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rax, qword [rbp - 0x38]
mov qword [rsp + 0x58], rax
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rdx, str.Couldnt_create_registry_key._n_winerr___1__n_sub_key:__2_
lea rcx, [rbp - 0x80]
call fcn.140003c94
nop
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r14w
lea rdx, str.Publishing
lea rcx, [rbp - 0x18]
call fcn.140003c94
nop
call fcn.14000a0ec
lea r8, [rbp - 0x80]
lea rdx, [rbp + 8]
call fcn.14003c360
mov rbx, rax
movdqa xmm0, xmmword [0x140098cd0]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], r14b
lea r9, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRecord
lea edx, [r14 + 0x4f]
lea rcx, [rbp - 0x60]
call fcn.14003c658
mov dword [rbp - 0x40], 0x136
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000c9f4
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14001274c
mov r9, rbx
lea r8, [rbp - 0x18]
lea edx, [r14 + 1]
lea rcx, [rbp - 0x60]
call fcn.14003c4d0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140061e9f
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140061e9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140061e9a
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400674a4
movdqa xmm0, xmmword [0x140098cd0]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], r14b
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 0x18]
call fcn.140003c2c
nop
lea rcx, [rbp - 0x18]
call fcn.140003c2c
nop
lea rcx, [rbp - 0x80]
call fcn.140003c2c
mov edx, 0x5c
lea rcx, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140061ef4
inc rax
jmp 0x140061efb
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bf638]
call fcn.140012ce4
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x262700000000
jmp 0x140062329
mov rax, qword [rsi + 0x18]
inc rax
mov ebx, 0xffffffff
cmp rax, rbx
ja 0x14006241d
mov ecx, eax
add rcx, rcx
mov rax, rcx
shr rax, 0x20
test eax, eax
jne 0x14006241d
lea rax, [rsi + 8]
cmp qword [rax + 0x18], 8
jb 0x140061f5b
mov rax, qword [rax]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140096c08]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x140062127
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rax, qword [rbp - 0x38]
mov qword [rsp + 0x58], rax
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r14w
lea rdx, str.Couldnt_set_registry_key_value._n_winerr___1__n_sub_key:__2__n_value_name:__3_
lea rcx, [rbp - 0x18]
call fcn.140003c94
nop
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rdx, str.Publishing
lea rcx, [rbp - 0x80]
call fcn.140003c94
nop
call fcn.14000a0ec
lea r8, [rbp - 0x18]
lea rdx, [rbp + 8]
call fcn.14003c360
mov rbx, rax
movdqa xmm0, xmmword [0x140098cd0]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], r14b
lea r9, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRecord
mov edx, 0x4f
lea rcx, [rbp - 0x60]
call fcn.14003c658
mov dword [rbp - 0x40], 0x144
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000c9f4
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14001274c
lea rdx, str._bl_t_
mov rcx, rbx
call fcn.14001274c
mov r9, rbx
lea r8, [rbp - 0x80]
mov edx, 1
lea rcx, [rbp - 0x60]
call fcn.14003c4d0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x1400620a2
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006209d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006209d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400674a4
movdqa xmm0, xmmword [0x140098cd0]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], r14b
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 0x18]
call fcn.140003c2c
nop
lea rcx, [rbp - 0x80]
call fcn.140003c2c
nop
lea rcx, [rbp - 0x18]
call fcn.140003c2c
mov edx, 0x5c
lea rcx, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x1400620f7
inc rax
jmp 0x1400620fe
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bf638]
call fcn.140012ce4
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x282700000000
jmp 0x140062329
cmp qword [rsi + 0x38], rbx
ja 0x14006241d
mov eax, dword [rsi + 0x38]
inc rax
cmp rax, rbx
ja 0x14006241d
mov ecx, eax
add rcx, rcx
mov rax, rcx
shr rax, 0x20
test eax, eax
jne 0x14006241d
lea rax, [rsi + 0x28]
cmp qword [rax + 0x18], 8
jb 0x140062162
mov rax, qword [rax]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140096c00]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x50], eax
movdqa xmm0, xmmword [0x140098cc0]
test eax, eax
je 0x140062331
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rax, qword [rbp - 0x38]
mov qword [rsp + 0x58], rax
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r14w
lea rdx, str.Couldnt_set_registry_key_value._n_winerr___1__n_sub_key:__2__n_value_name:__3_
lea rcx, [rbp - 0x18]
call fcn.140003c94
nop
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rdx, str.Publishing
lea rcx, [rbp - 0x80]
call fcn.140003c94
nop
call fcn.14000a0ec
lea r8, [rbp - 0x18]
lea rdx, [rbp + 8]
call fcn.14003c360
mov rbx, rax
movdqa xmm0, xmmword [0x140098cd0]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], r14b
lea r9, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRecord
mov edx, 0x4f
lea rcx, [rbp - 0x60]
call fcn.14003c658
mov dword [rbp - 0x40], 0x151
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000c9f4
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14001274c
lea rdx, [0x140075430]
mov rcx, rbx
call fcn.14001274c
mov r9, rbx
lea r8, [rbp - 0x80]
mov edx, 1
lea rcx, [rbp - 0x60]
call fcn.14003c4d0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x1400622a9
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400622a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400622a4
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400674a4
movdqa xmm0, xmmword [0x140098cd0]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], r14b
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 0x18]
call fcn.140003c2c
nop
lea rcx, [rbp - 0x80]
call fcn.140003c2c
nop
lea rcx, [rbp - 0x18]
call fcn.140003c2c
mov edx, 0x5c
lea rcx, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x1400622fe
inc rax
jmp 0x140062305
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bf638]
call fcn.140012ce4
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x2a2700000000
or rbx, rax
jmp 0x1400623d7
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rdx, [0x140096d48]
lea rcx, [rbp - 0x80]
call fcn.140003c94
nop
lea r9, [rsi + 0x48]
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.14006242c
mov rbx, rax
lea rcx, [rbp - 0x80]
call fcn.140003c2c
mov rax, rbx
shr rax, 0x27
not eax
test al, 1
jne 0x1400623d7
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rdx, str.User
lea rcx, [rbp - 0x80]
call fcn.140003c94
nop
lea r9, [rsi + 0x54]
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.14006242c
mov rbx, rax
lea rcx, [rbp - 0x80]
call fcn.140003c2c
mov rax, rbx
shr rax, 0x27
not eax
test al, 1
jne 0x1400623d7
movabs rbx, 0x8000000000
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400623ec
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r14
lea rcx, [rbp - 0x38]
call fcn.140003c2c
mov rax, rbx
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.140067150
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140018928
nop
int3