Function at 0x140014090
Capabilities:
Delete registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov r13, rcx
call fcn.140025894
mov rcx, rax
xor r12d, r12d
mov edx, r12d
test rax, rax
setne dl
test edx, edx
jne 0x1400140d7
mov ecx, 0x80004005
call fcn.140007cd0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xa8], rax
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
lea rdi, str.SoftwareSiemensShared_Tools
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.SoftwareSiemensShared_Tools
lea rcx, [rsp + 0xa8]
call fcn.140009100
lea r8, [r13 + 0x190]
lea rdx, [0x14005cc80]
lea rcx, [rsp + 0x40]
call fcn.140007ae0
nop
lea r8, str.Clients
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140007a00
nop
mov r15, qword [rax]
mov edx, dword [r15 - 0x10]
mov dword [rsp + 0x98], edx
mov r14, r15
mov rdi, qword [rsp + 0xa8]
sub r14, rdi
sar r14, 1
mov eax, dword [rdi - 0x10]
mov dword [rsp + 0xa0], eax
lea ebx, [rax + rdx]
mov ebp, 1
mov ecx, ebp
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebx
or eax, ecx
jge 0x1400141a2
mov edx, ebx
lea rcx, [rsp + 0xa8]
call fcn.140009290
mov rdi, qword [rsp + 0xa8]
mov edx, dword [rsp + 0x98]
mov eax, dword [rsp + 0xa0]
cmp r14, rax
ja 0x1400141b2
lea r15, [rdi + r14*2]
movsxd rdx, edx
add rdx, rdx
lea rcx, [rdi + rax*2]
mov r9, rdx
mov r8, r15
call fcn.14003b8f0
test ebx, ebx
js 0x14001433b
cmp ebx, dword [rdi - 0xc]
jg 0x14001433b
mov dword [rdi - 0x10], ebx
movsxd rax, ebx
mov word [rdi + rax*2], 0
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140014205
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140014225
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0xa8]
mov ecx, ebp
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
or eax, ecx
jge 0x140014250
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.140009290
mov rdi, qword [rsp + 0xa8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001431d
mov rdx, qword [r13 + 0x98]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov r12d, eax
test eax, eax
je 0x1400142d2
mov rcx, qword [r13 + 0x98]
sub ebp, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
or ecx, ebp
jge 0x1400142b3
xor edx, edx
lea rcx, [r13 + 0x98]
call fcn.140009290
lea rcx, [r13 + 0x38]
mov rax, qword [rcx]
mov r9, qword [r13 + 0x98]
lea r8, [0x140063990]
xor edx, edx
call qword [rax + 0xd0]
jmp 0x140014311
mov rax, qword [r13 + 0x98]
sub ebp, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ebp
jge 0x1400142f1
xor edx, edx
lea rcx, [r13 + 0x98]
call fcn.140009290
lea rcx, [r13 + 0x38]
mov rax, qword [rcx]
mov r9, qword [r13 + 0x98]
lea r8, str.Delete_client_successful:__s
mov edx, 0xa
call qword [rax + 0xd0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140014336
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
jmp 0x140014346
mov ecx, 0x80070057
call fcn.140007cd0
nop
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret