Function at 0x14005b260
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 [0x1400bc298]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rsi, rcx
mov r8d, dword [rcx]
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14005c184
nop
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
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 0x14005b44a
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
mov qword [rsp + 0x58], rax
movdqa xmm0, xmmword [0x140093ca0]
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.1400033fc
nop
movdqa xmm0, xmmword [0x140093ca0]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r14w
lea rdx, str.Publishing
lea rcx, [rbp - 0x40]
call fcn.1400033fc
nop
call fcn.140007358
lea r8, [rbp - 0x80]
lea rdx, [rbp + 8]
call fcn.1400386d8
mov rbx, rax
movdqa xmm0, xmmword [0x140093cb0]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], r14b
lea r9, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRecord
lea edx, [r14 + 0x4f]
lea rcx, [rbp - 0x20]
call fcn.1400389a8
mov dword [rbp], 0x136
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140009290
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14000e2dc
mov r9, rbx
lea r8, [rbp - 0x40]
lea edx, [r14 + 1]
lea rcx, [rbp - 0x20]
call fcn.140038838
nop
lea rcx, [rbp - 0x20]
call fcn.140006108
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 0x18]
call fcn.140003388
nop
lea rcx, [rbp - 0x40]
call fcn.140003388
nop
lea rcx, [rbp - 0x80]
call fcn.140003388
lea edx, [r14 + 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 0x14005b41a
inc rax
jmp 0x14005b421
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x262700000000
jmp 0x14005b7c5
mov rax, qword [rsi + 0x18]
inc rax
mov ebx, 0xffffffff
cmp rax, rbx
ja 0x14005b8b9
mov ecx, eax
add rcx, rcx
mov rax, rcx
shr rax, 0x20
test eax, eax
jne 0x14005b8bf
lea rax, [rsi + 8]
cmp qword [rax + 0x18], 8
jb 0x14005b481
mov rax, qword [rax]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140091bd8]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x14005b608
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
mov qword [rsp + 0x58], rax
movdqa xmm0, xmmword [0x140093ca0]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r14w
lea rdx, str.Couldnt_set_registry_key_value._n_winerr___1__n_sub_key:__2__n_value_name:__3_
lea rcx, [rbp - 0x40]
call fcn.1400033fc
nop
movdqa xmm0, xmmword [0x140093ca0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rdx, str.Publishing
lea rcx, [rbp - 0x80]
call fcn.1400033fc
nop
call fcn.140007358
lea r8, [rbp - 0x40]
lea rdx, [rbp + 8]
call fcn.1400386d8
mov rbx, rax
movdqa xmm0, xmmword [0x140093cb0]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], r14b
lea r9, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRecord
mov edx, 0x4f
lea rcx, [rbp - 0x20]
call fcn.1400389a8
mov dword [rbp], 0x144
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140009290
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14000e2dc
lea rdx, [0x140070450]
mov rcx, rbx
call fcn.14000e2dc
mov r9, rbx
lea r8, [rbp - 0x80]
mov edx, 1
lea rcx, [rbp - 0x20]
call fcn.140038838
nop
lea rcx, [rbp - 0x20]
call fcn.140006108
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 0x18]
call fcn.140003388
nop
lea rcx, [rbp - 0x80]
call fcn.140003388
nop
lea rcx, [rbp - 0x40]
call fcn.140003388
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 0x14005b5d8
inc rax
jmp 0x14005b5df
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x282700000000
jmp 0x14005b7c5
cmp qword [rsi + 0x38], rbx
ja 0x14005b8c5
mov eax, dword [rsi + 0x38]
inc rax
cmp rax, rbx
ja 0x14005b8d1
mov ecx, eax
add rcx, rcx
mov rax, rcx
shr rax, 0x20
test eax, eax
jne 0x14005b8cb
lea rax, [rsi + 0x28]
cmp qword [rax + 0x18], 8
jb 0x14005b643
mov rax, qword [rax]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140091bd0]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x50], eax
movdqa xmm0, xmmword [0x140093ca0]
test eax, eax
je 0x14005b7cd
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
mov qword [rsp + 0x58], rax
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r14w
lea rdx, str.Couldnt_set_registry_key_value._n_winerr___1__n_sub_key:__2__n_value_name:__3_
lea rcx, [rbp - 0x40]
call fcn.1400033fc
nop
movdqa xmm0, xmmword [0x140093ca0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rdx, str.Publishing
lea rcx, [rbp - 0x80]
call fcn.1400033fc
nop
call fcn.140007358
lea r8, [rbp - 0x40]
lea rdx, [rbp + 8]
call fcn.1400386d8
mov rbx, rax
movdqa xmm0, xmmword [0x140093cb0]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], r14b
lea r9, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRecord
mov edx, 0x4f
lea rcx, [rbp - 0x20]
call fcn.1400389a8
mov dword [rbp], 0x151
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140009290
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14000e2dc
lea rdx, [0x140070458]
mov rcx, rbx
call fcn.14000e2dc
mov r9, rbx
lea r8, [rbp - 0x80]
mov edx, 1
lea rcx, [rbp - 0x20]
call fcn.140038838
nop
lea rcx, [rbp - 0x20]
call fcn.140006108
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 0x18]
call fcn.140003388
nop
lea rcx, [rbp - 0x80]
call fcn.140003388
nop
lea rcx, [rbp - 0x40]
call fcn.140003388
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 0x14005b79a
inc rax
jmp 0x14005b7a1
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x2a2700000000
or rbx, rax
jmp 0x14005b873
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rdx, [0x140091d18]
lea rcx, [rbp - 0x80]
call fcn.1400033fc
nop
lea r9, [rsi + 0x48]
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x60]
call fcn.14005b8d8
mov rbx, rax
lea rcx, [rbp - 0x80]
call fcn.140003388
mov rax, rbx
shr rax, 0x27
not eax
test al, 1
jne 0x14005b873
movdqa xmm0, xmmword [0x140093ca0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rdx, str.User
lea rcx, [rbp - 0x80]
call fcn.1400033fc
nop
lea r9, [rsi + 0x54]
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x60]
call fcn.14005b8d8
mov rbx, rax
lea rcx, [rbp - 0x80]
call fcn.140003388
mov rax, rbx
shr rax, 0x27
not eax
test al, 1
jne 0x14005b873
movabs rbx, 0x8000000000
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14005b888
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r14
lea rcx, [rbp - 0x60]
call fcn.140003388
mov rax, rbx
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.140060130
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.140013da8
nop
call fcn.140013da8
int3
call fcn.140013da8
int3
call fcn.140013da8
int3
call fcn.140013da8
int3