Function at 0x140060084
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1400b02e8]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r14, rcx
mov r8d, dword [rcx]
xor edx, edx
lea rcx, [rbp - 0x48]
call fcn.140061210
nop
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x14006029a
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRecord
lea rcx, [rbp - 0x28]
call fcn.14003c848
mov dword [rbp - 8], 0x136
call fcn.14000a8e4
mov qword [rbp - 0x78], r15
lea edi, [r15 + 7]
mov qword [rbp - 0x70], rdi
mov word [rsp + 0x78], r15w
lea rdx, str.Couldnt_create_registry_key._n_winerr___1__n_sub_key:__2_
lea rcx, [rsp + 0x78]
call fcn.140003b34
nop
lea r8, [rsp + 0x78]
lea rdx, [rbp]
call fcn.14003c478
nop
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14000c28c
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov qword [rsp + 0x58], rcx
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.1400126e0
mov rbx, rax
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x68], r15w
lea rdx, str.Publishing
lea rcx, [rbp - 0x68]
call fcn.140003b34
nop
mov r9, rbx
lea r8, [rbp - 0x68]
lea edx, [rdi - 6]
lea rcx, [rbp - 0x28]
call fcn.14003c72c
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1400601f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
call fcn.140003d24
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x68], r15w
lea rcx, [rbp]
call fcn.14003cd5c
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140060224
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
call fcn.140003d24
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], rdi
mov word [rsp + 0x78], r15w
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140060248
inc rdx
mov rcx, qword [rbp - 0x28]
call fcn.140003d24
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]
nop dword [rax + rax]
test rax, rax
je 0x14006026a
inc rax
jmp 0x140060271
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400b1690]
call fcn.140013934
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x262700000000
jmp 0x14006067c
mov rax, qword [r14 + 0x18]
inc rax
mov ebx, 0xffffffff
cmp rax, rbx
ja 0x1400607b8
mov ecx, eax
add rcx, rcx
mov rax, rcx
shr rax, 0x20
test eax, eax
jne 0x1400607b8
lea rax, [r14 + 8]
cmp qword [rax + 0x18], 8
jb 0x1400602d1
mov rax, qword [rax]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140095230]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
nop dword [rax + rax]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x14006048b
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRecord
lea rcx, [rbp - 0x28]
call fcn.14003c848
mov dword [rbp - 8], 0x144
call fcn.14000a8e4
mov qword [rbp - 0x58], r15
mov edi, 7
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x68], r15w
lea rdx, str.Couldnt_set_registry_key_value._n_winerr___1__n_sub_key:__2__n_value_name:__3_
lea rcx, [rbp - 0x68]
call fcn.140003b34
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp]
call fcn.14003c478
nop
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14000c28c
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov qword [rsp + 0x58], rcx
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.1400126e0
lea rdx, str.0R_t_
mov rcx, rax
call fcn.1400126e0
mov rbx, rax
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], rdi
mov word [rsp + 0x78], r15w
lea rdx, str.Publishing
lea rcx, [rsp + 0x78]
call fcn.140003b34
nop
mov r9, rbx
lea r8, [rsp + 0x78]
lea edx, [rdi - 6]
lea rcx, [rbp - 0x28]
call fcn.14003c72c
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400603e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
call fcn.140003d24
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], rdi
mov word [rsp + 0x78], r15w
lea rcx, [rbp]
call fcn.14003cd5c
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140060416
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
call fcn.140003d24
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x68], r15w
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140060439
inc rdx
mov rcx, qword [rbp - 0x28]
call fcn.140003d24
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]
nop dword [rax + rax]
test rax, rax
je 0x14006045b
inc rax
jmp 0x140060462
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400b1690]
call fcn.140013934
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x282700000000
jmp 0x14006067c
cmp qword [r14 + 0x38], rbx
ja 0x1400607b8
mov eax, dword [r14 + 0x38]
inc rax
cmp rax, rbx
ja 0x1400607b8
mov ecx, eax
add rcx, rcx
mov rax, rcx
shr rax, 0x20
test eax, eax
jne 0x1400607b8
lea rax, [r14 + 0x28]
cmp qword [rax + 0x18], 8
jb 0x1400604c7
mov rax, qword [rax]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140095228]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
nop dword [rax + rax]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x140060684
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRecord
lea rcx, [rbp - 0x28]
call fcn.14003c848
mov dword [rbp - 8], 0x151
call fcn.14000a8e4
mov qword [rbp - 0x58], r15
mov edi, 7
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x68], r15w
lea rdx, str.Couldnt_set_registry_key_value._n_winerr___1__n_sub_key:__2__n_value_name:__3_
lea rcx, [rbp - 0x68]
call fcn.140003b34
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp]
call fcn.14003c478
nop
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14000c28c
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov qword [rsp + 0x58], rcx
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.1400126e0
lea rdx, str._R_t_
mov rcx, rax
call fcn.1400126e0
mov rbx, rax
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], rdi
mov word [rsp + 0x78], r15w
lea rdx, str.Publishing
lea rcx, [rsp + 0x78]
call fcn.140003b34
nop
mov r9, rbx
lea r8, [rsp + 0x78]
lea edx, [rdi - 6]
lea rcx, [rbp - 0x28]
call fcn.14003c72c
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400605d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
call fcn.140003d24
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], rdi
mov word [rsp + 0x78], r15w
lea rcx, [rbp]
call fcn.14003cd5c
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x14006060c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
call fcn.140003d24
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x68], r15w
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14006062f
inc rdx
mov rcx, qword [rbp - 0x28]
call fcn.140003d24
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]
nop dword [rax + rax]
test rax, rax
je 0x140060651
inc rax
jmp 0x140060658
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400b1690]
call fcn.140013934
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x2a2700000000
or rbx, rax
jmp 0x140060759
mov qword [rbp - 0x78], r15
mov edi, 7
mov qword [rbp - 0x70], rdi
mov word [rsp + 0x78], r15w
lea rdx, [0x140095218]
lea rcx, [rsp + 0x78]
call fcn.140003b34
nop
lea r9, [r14 + 0x48]
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x48]
mov rcx, qword [rsp + 0x60]
call fcn.1400607c4
mov rbx, rax
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400606df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
call fcn.140003d24
mov rax, rbx
shr rax, 0x27
not eax
test al, 1
jne 0x140060759
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], rdi
mov word [rsp + 0x78], r15w
lea rdx, str.User
lea rcx, [rsp + 0x78]
call fcn.140003b34
nop
lea r9, [r14 + 0x54]
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x48]
mov rcx, qword [rsp + 0x60]
call fcn.1400607c4
mov rbx, rax
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140060742
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
call fcn.140003d24
mov rax, rbx
shr rax, 0x27
not eax
test al, 1
jne 0x140060759
movabs rbx, 0x8000000000
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140060774
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov qword [rsp + 0x60], r15
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14006078f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
call fcn.140003d24
mov rax, rbx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140066410
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140018c98
nop
int3