Function at 0x14005c5b0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x48]
sub rsp, 0x140
mov rax, qword [0x1400ab2e8]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, rcx
mov r8d, dword [rcx]
xor edx, edx
lea rcx, [rbp - 0x48]
call fcn.14005d518
nop
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
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]
nop dword [rax + rax]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x14005c797
mov r8d, 0x136
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRecord
lea rcx, [rbp + 8]
call fcn.14003a94c
mov rdi, rax
call fcn.14000aaa8
mov qword [rsp + 0x78], r14
movdqa xmm0, xmmword [0x140092240]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r14w
lea rdx, str.Couldnt_create_registry_key._n_winerr___1__n_sub_key:__2_
lea rcx, [rsp + 0x78]
call fcn.140003d68
nop
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x28]
call fcn.14003a914
nop
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14000c620
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.1400123a0
mov rbx, rax
mov qword [rbp - 0x68], r14
movdqa xmm0, xmmword [0x140092240]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r14w
lea rdx, str.Publishing
lea rcx, [rbp - 0x68]
call fcn.140003d68
nop
mov r9, rbx
lea r8, [rbp - 0x68]
lea edx, [r14 + 1]
mov rcx, rdi
call fcn.14003aabc
nop
lea rcx, [rbp - 0x68]
call fcn.140003cf8
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x18]
call fcn.140003cf8
nop
lea rcx, [rsp + 0x78]
call fcn.140003cf8
nop
lea rcx, [rbp + 8]
call fcn.14000b438
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]
nop dword [rax + rax]
test rax, rax
je 0x14005c767
inc rax
jmp 0x14005c76e
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400ac690]
call fcn.140013434
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x262700000000
jmp 0x14005cb1c
mov rax, qword [rdi + 0x18]
inc rax
mov ebx, 0xffffffff
cmp rax, rbx
ja 0x14005cc31
mov ecx, eax
add rcx, rcx
mov rax, rcx
shr rax, 0x20
test eax, eax
jne 0x14005cc31
lea rax, [rdi + 8]
cmp qword [rax + 0x18], 8
jb 0x14005c7ce
mov rax, qword [rax]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140090208]
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 0x14005c95a
mov r8d, 0x144
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRecord
lea rcx, [rbp + 8]
call fcn.14003a94c
mov rdi, rax
call fcn.14000aaa8
mov qword [rbp - 0x68], r14
movdqa xmm0, xmmword [0x140092240]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r14w
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.140003d68
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x28]
call fcn.14003a914
nop
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14000c620
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.1400123a0
lea rdx, [0x14006e418]
mov rcx, rax
call fcn.1400123a0
mov rbx, rax
mov qword [rsp + 0x78], r14
movdqa xmm0, xmmword [0x140092240]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r14w
lea rdx, str.Publishing
lea rcx, [rsp + 0x78]
call fcn.140003d68
nop
mov r9, rbx
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, rdi
call fcn.14003aabc
nop
lea rcx, [rsp + 0x78]
call fcn.140003cf8
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x18]
call fcn.140003cf8
nop
lea rcx, [rbp - 0x68]
call fcn.140003cf8
nop
lea rcx, [rbp + 8]
call fcn.14000b438
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 0x14005c92a
inc rax
jmp 0x14005c931
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400ac690]
call fcn.140013434
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x282700000000
jmp 0x14005cb1c
cmp qword [rdi + 0x38], rbx
ja 0x14005cc31
mov eax, dword [rdi + 0x38]
inc rax
cmp rax, rbx
ja 0x14005cc31
mov ecx, eax
add rcx, rcx
mov rax, rcx
shr rax, 0x20
test eax, eax
jne 0x14005cc31
lea rax, [rdi + 0x28]
cmp qword [rax + 0x18], 8
jb 0x14005c995
mov rax, qword [rax]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140090200]
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 0x14005cb24
mov r8d, 0x151
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::WriteRegServerRecord
lea rcx, [rbp + 8]
call fcn.14003a94c
mov rdi, rax
call fcn.14000aaa8
mov qword [rbp - 0x68], r14
movdqa xmm0, xmmword [0x140092240]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r14w
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.140003d68
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x28]
call fcn.14003a914
nop
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14000c620
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.1400123a0
lea rdx, [0x14006e420]
mov rcx, rax
call fcn.1400123a0
mov rbx, rax
mov qword [rsp + 0x78], r14
movdqa xmm0, xmmword [0x140092240]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r14w
lea rdx, str.Publishing
lea rcx, [rsp + 0x78]
call fcn.140003d68
nop
mov r9, rbx
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, rdi
call fcn.14003aabc
nop
lea rcx, [rsp + 0x78]
call fcn.140003cf8
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x18]
call fcn.140003cf8
nop
lea rcx, [rbp - 0x68]
call fcn.140003cf8
nop
lea rcx, [rbp + 8]
call fcn.14000b438
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 0x14005caf1
inc rax
jmp 0x14005caf8
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400ac690]
call fcn.140013434
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x2a2700000000
or rbx, rax
jmp 0x14005cbe4
mov qword [rsp + 0x78], r14
movdqa xmm0, xmmword [0x140092240]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r14w
lea rdx, [0x140090348]
lea rcx, [rsp + 0x78]
call fcn.140003d68
nop
lea r9, [rdi + 0x48]
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x48]
mov rcx, qword [rsp + 0x60]
call fcn.14005cc40
mov rbx, rax
lea rcx, [rsp + 0x78]
call fcn.140003cf8
mov rax, rbx
shr rax, 0x27
not eax
test al, 1
jne 0x14005cbe4
mov qword [rsp + 0x78], r14
movdqa xmm0, xmmword [0x140092240]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r14w
lea rdx, str.User
lea rcx, [rsp + 0x78]
call fcn.140003d68
nop
lea r9, [rdi + 0x54]
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x48]
mov rcx, qword [rsp + 0x60]
call fcn.14005cc40
mov rbx, rax
lea rcx, [rsp + 0x78]
call fcn.140003cf8
mov rax, rbx
shr rax, 0x27
not eax
test al, 1
jne 0x14005cbe4
movabs rbx, 0x8000000000
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14005cbff
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov qword [rsp + 0x60], r14
lea rcx, [rbp - 0x48]
call fcn.140003cf8
mov rax, rbx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140061ac0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140018310
nop
int3