Function at 0x140060e3c
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 [0x1400bd288]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rsi, rcx
mov r8d, dword [rcx]
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.140061e94
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 0x14006106c
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rax, qword [rbp - 0x38]
mov qword [rsp + 0x58], rax
movdqa xmm0, xmmword [0x140097d60]
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.140003cac
nop
movdqa xmm0, xmmword [0x140097d60]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r14w
lea rdx, str.Publishing
lea rcx, [rbp - 0x18]
call fcn.140003cac
nop
call fcn.14000a10c
lea r8, [rbp - 0x80]
lea rdx, [rbp + 8]
call fcn.14003b330
mov rbx, rax
movdqa xmm0, xmmword [0x140097d70]
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.14003b7cc
mov dword [rbp - 0x40], 0x136
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000c764
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14001245c
mov r9, rbx
lea r8, [rbp - 0x18]
lea edx, [r14 + 1]
lea rcx, [rbp - 0x60]
call fcn.14003b4a0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140060fe7
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060fe2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140060fe2
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
movdqa xmm0, xmmword [0x140097d70]
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.140003c44
nop
lea rcx, [rbp - 0x18]
call fcn.140003c44
nop
lea rcx, [rbp - 0x80]
call fcn.140003c44
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 0x14006103c
inc rax
jmp 0x140061043
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x262700000000
jmp 0x140061471
mov rax, qword [rsi + 0x18]
inc rax
mov ebx, 0xffffffff
cmp rax, rbx
ja 0x140061571
mov ecx, eax
add rcx, rcx
mov rax, rcx
shr rax, 0x20
test eax, eax
jne 0x140061577
lea rax, [rsi + 8]
cmp qword [rax + 0x18], 8
jb 0x1400610a3
mov rax, qword [rax]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140095c28]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x14006126f
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rax, qword [rbp - 0x38]
mov qword [rsp + 0x58], rax
movdqa xmm0, xmmword [0x140097d60]
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.140003cac
nop
movdqa xmm0, xmmword [0x140097d60]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rdx, str.Publishing
lea rcx, [rbp - 0x80]
call fcn.140003cac
nop
call fcn.14000a10c
lea r8, [rbp - 0x18]
lea rdx, [rbp + 8]
call fcn.14003b330
mov rbx, rax
movdqa xmm0, xmmword [0x140097d70]
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.14003b7cc
mov dword [rbp - 0x40], 0x144
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000c764
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14001245c
lea rdx, str.__t_
mov rcx, rbx
call fcn.14001245c
mov r9, rbx
lea r8, [rbp - 0x80]
mov edx, 1
lea rcx, [rbp - 0x60]
call fcn.14003b4a0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x1400611ea
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400611e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400611e5
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
movdqa xmm0, xmmword [0x140097d70]
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.140003c44
nop
lea rcx, [rbp - 0x80]
call fcn.140003c44
nop
lea rcx, [rbp - 0x18]
call fcn.140003c44
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 0x14006123f
inc rax
jmp 0x140061246
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x282700000000
jmp 0x140061471
cmp qword [rsi + 0x38], rbx
ja 0x14006157d
mov eax, dword [rsi + 0x38]
inc rax
cmp rax, rbx
ja 0x14006156b
mov ecx, eax
add rcx, rcx
mov rax, rcx
shr rax, 0x20
test eax, eax
jne 0x140061565
lea rax, [rsi + 0x28]
cmp qword [rax + 0x18], 8
jb 0x1400612aa
mov rax, qword [rax]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140095c20]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x50], eax
movdqa xmm0, xmmword [0x140097d60]
test eax, eax
je 0x140061479
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.140003cac
nop
movdqa xmm0, xmmword [0x140097d60]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rdx, str.Publishing
lea rcx, [rbp - 0x80]
call fcn.140003cac
nop
call fcn.14000a10c
lea r8, [rbp - 0x18]
lea rdx, [rbp + 8]
call fcn.14003b330
mov rbx, rax
movdqa xmm0, xmmword [0x140097d70]
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.14003b7cc
mov dword [rbp - 0x40], 0x151
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000c764
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14001245c
lea rdx, [0x140074430]
mov rcx, rbx
call fcn.14001245c
mov r9, rbx
lea r8, [rbp - 0x80]
mov edx, 1
lea rcx, [rbp - 0x60]
call fcn.14003b4a0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x1400613f1
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400613ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400613ec
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
movdqa xmm0, xmmword [0x140097d70]
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.140003c44
nop
lea rcx, [rbp - 0x80]
call fcn.140003c44
nop
lea rcx, [rbp - 0x18]
call fcn.140003c44
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 0x140061446
inc rax
jmp 0x14006144d
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
mov ebx, dword [rsp + 0x50]
or rbx, rax
movabs rax, 0x2a2700000000
or rbx, rax
jmp 0x14006151f
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rdx, [0x140095d68]
lea rcx, [rbp - 0x80]
call fcn.140003cac
nop
lea r9, [rsi + 0x48]
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.14006158c
mov rbx, rax
lea rcx, [rbp - 0x80]
call fcn.140003c44
mov rax, rbx
shr rax, 0x27
not eax
test al, 1
jne 0x14006151f
movdqa xmm0, xmmword [0x140097d60]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rdx, str.User
lea rcx, [rbp - 0x80]
call fcn.140003cac
nop
lea r9, [rsi + 0x54]
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.14006158c
mov rbx, rax
lea rcx, [rbp - 0x80]
call fcn.140003c44
mov rax, rbx
shr rax, 0x27
not eax
test al, 1
jne 0x14006151f
movabs rbx, 0x8000000000
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140061534
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r14
lea rcx, [rbp - 0x38]
call fcn.140003c44
mov rax, rbx
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.140066490
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.140018664
nop
call fcn.140018664
int3
call fcn.140018664
int3
call fcn.140018664
int3
call fcn.140018664
int3