Function at 0x14005cf0c
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400bc178]
xor rax, rsp
mov qword [rbp + 8], rax
mov r14, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
movzx eax, byte [r9]
mov dword [rsp + 0x34], eax
lea r8, str.Enabled
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140037af4
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400190e0
xor r8d, r8d
lea r15d, [r12 + 1]
mov dl, r15b
lea rcx, [rsp + 0x70]
call fcn.14000328c
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
lea ecx, [r12 + 4]
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, ecx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x14005d173
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
cmp qword [rbx + 0x18], 8
jb 0x14005cffe
mov rbx, qword [rbx]
mov qword [rsp + 0x38], rbx
mov ebx, 7
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
lea r8d, [rbx + 0x46]
lea rdx, str.Couldnt_set_registry_key_value._n_winerr___1__n_sub_key:__2__n_value_name:__3_
lea rcx, [rsp + 0x70]
call fcn.140003394
nop
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x60], r12
mov word [rbp - 0x70], r12w
movzx eax, word [str.Publishing]
neg ax
sbb r8, r8
and r8d, 0xa
lea rdx, str.Publishing
lea rcx, [rbp - 0x70]
call fcn.140003394
nop
call fcn.140007e38
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x28]
call fcn.1400377c0
mov rbx, rax
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRefreshPolicy
lea rcx, [rbp - 0x50]
call fcn.140003144
mov dword [rbp - 0x30], 0x175
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000a520
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000e71c
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14000e71c
mov r9, rax
lea r8, [rbp - 0x70]
mov edx, r15d
lea rcx, [rbp - 0x50]
call fcn.1400379a4
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14005d0dc
inc rdx
mov r8, r15
mov rcx, qword [rbp - 0x50]
call fcn.1400029dc
mov qword [rbp - 0x38], SafeArrayGetDim
mov qword [rbp - 0x40], r12
mov byte [rbp - 0x50], r12b
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x28], rax
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x18]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x70]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rsp + 0x70]
call fcn.14000328c
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 0x14005d143
add rax, r15
jmp 0x14005d14a
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bd408]
call fcn.14000fa54
shl rax, 0x34
mov ebx, dword [rsp + 0x30]
or rbx, rax
movabs rax, 0x2e2700000000
jmp 0x14005d737
movzx eax, byte [r14 + 1]
mov dword [rsp + 0x34], eax
lea r8, str.LogonRefresh
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140037af4
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400190e0
xor r8d, r8d
mov dl, r15b
lea rcx, [rsp + 0x70]
call fcn.14000328c
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x14005d37f
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
cmp qword [rbx + 0x18], 8
jb 0x14005d20a
mov rbx, qword [rbx]
mov qword [rsp + 0x40], rbx
mov ebx, 7
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x60], r12
mov word [rbp - 0x70], r12w
lea r8d, [rbx + 0x46]
lea rdx, str.Couldnt_set_registry_key_value._n_winerr___1__n_sub_key:__2__n_value_name:__3_
lea rcx, [rbp - 0x70]
call fcn.140003394
nop
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
movzx eax, word [str.Publishing]
neg ax
sbb r8, r8
and r8d, 0xa
lea rdx, str.Publishing
lea rcx, [rsp + 0x70]
call fcn.140003394
nop
call fcn.140007e38
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x28]
call fcn.1400377c0
mov rbx, rax
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRefreshPolicy
lea rcx, [rbp - 0x50]
call fcn.140003144
mov dword [rbp - 0x30], 0x184
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000a520
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14000e71c
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.14000e71c
mov r9, rax
lea r8, [rsp + 0x70]
mov edx, r15d
lea rcx, [rbp - 0x50]
call fcn.1400379a4
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14005d2e8
inc rdx
mov r8, r15
mov rcx, qword [rbp - 0x50]
call fcn.1400029dc
mov qword [rbp - 0x38], SafeArrayGetDim
mov qword [rbp - 0x40], r12
mov byte [rbp - 0x50], r12b
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x28], rax
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x18]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rsp + 0x70]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x70]
call fcn.14000328c
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 0x14005d34f
add rax, r15
jmp 0x14005d356
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bd408]
call fcn.14000fa54
shl rax, 0x34
mov ebx, dword [rsp + 0x30]
or rbx, rax
movabs rax, 0x302700000000
jmp 0x14005d737
mov eax, dword [r14 + 4]
mov dword [rsp + 0x34], eax
lea r8, str.PeriodicRefreshInterval
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140037af4
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400190e0
xor r8d, r8d
mov dl, r15b
lea rcx, [rsp + 0x70]
call fcn.14000328c
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov ecx, 4
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, ecx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x14005d56d
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
cmp qword [rbx + 0x18], 8
jb 0x14005d416
mov rbx, qword [rbx]
mov qword [rsp + 0x40], rbx
mov ebx, 7
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x60], r12
mov word [rbp - 0x70], r12w
lea r8d, [rbx + 0x46]
lea rdx, str.Couldnt_set_registry_key_value._n_winerr___1__n_sub_key:__2__n_value_name:__3_
lea rcx, [rbp - 0x70]
call fcn.140003394
nop
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
movzx eax, word [str.Publishing]
neg ax
sbb r8, r8
and r8d, 0xa
lea rdx, str.Publishing
lea rcx, [rsp + 0x70]
call fcn.140003394
nop
call fcn.140007e38
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x28]
call fcn.1400377c0
mov rbx, rax
mov r8d, 0x193
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRefreshPolicy
lea rcx, [rbp - 0x50]
call fcn.140037814
mov rdi, rax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000a520
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14000e71c
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.14000e71c
mov r9, rax
lea r8, [rsp + 0x70]
mov edx, r15d
mov rcx, rdi
call fcn.1400379a4
nop
lea rcx, [rbp - 0x50]
call fcn.1400030f8
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x28], rax
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x18]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rsp + 0x70]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x70]
call fcn.14000328c
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 0x14005d53d
add rax, r15
jmp 0x14005d544
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bd408]
call fcn.14000fa54
shl rax, 0x34
mov ebx, dword [rsp + 0x30]
or rbx, rax
movabs rax, 0x322700000000
jmp 0x14005d737
mov eax, dword [r14 + 8]
mov dword [rsp + 0x34], eax
lea r8, str.PeriodicRefreshIntervalUnit
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140037af4
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400190e0
xor r8d, r8d
mov dl, r15b
lea rcx, [rsp + 0x70]
call fcn.14000328c
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov ecx, 4
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, ecx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x14005d73c
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
cmp qword [rbx + 0x18], 8
jb 0x14005d604
mov rbx, qword [rbx]
mov qword [rsp + 0x40], rbx
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.14000328c
mov r8d, 0x4d
lea rdx, str.Couldnt_set_registry_key_value._n_winerr___1__n_sub_key:__2__n_value_name:__3_
lea rcx, [rbp - 0x70]
call fcn.140003394
nop
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.14000328c
movzx eax, word [str.Publishing]
neg ax
sbb r8, r8
and r8d, 0xa
lea rdx, str.Publishing
lea rcx, [rsp + 0x70]
call fcn.140003394
nop
call fcn.140007e38
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x28]
call fcn.1400377c0
mov rbx, rax
mov r8d, 0x1a2
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRefreshPolicy
lea rcx, [rbp - 0x50]
call fcn.140037814
mov rdi, rax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000a520
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14000e71c
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.14000e71c
mov r9, rax
lea r8, [rsp + 0x70]
mov edx, r15d
mov rcx, rdi
call fcn.1400379a4
nop
lea rcx, [rbp - 0x50]
call fcn.1400030f8
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x28], rax
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x18]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rsp + 0x70]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x70]
call fcn.14000328c
call fcn.14005ac50
mov rbx, rax
mov eax, dword [rsp + 0x30]
or rbx, rax
movabs rax, 0x342700000000
or rbx, rax
jmp 0x14005d746
movabs rbx, 0x8000000000
xor r8d, r8d
mov dl, r15b
lea rcx, [rsp + 0x50]
call fcn.14000328c
mov rax, rbx
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140061880
add rsp, 0x110
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret