Function at 0x18004ff88
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7c8]
sub rsp, 0x8a0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov r13, rcx
mov ebx, dword [rcx + 0x70]
lea rax, str.Catalog_Entries64
lea rsi, str.Catalog_Entries
test ebx, ebx
cmovne rsi, rax
mov qword [rbp - 0x80], rsi
add rcx, 0x90
call fcn.180051fe0
mov r8, rax
lea rax, str.Num_Catalog_Entries64
lea rdx, str.Num_Catalog_Entries
test ebx, ebx
cmovne rdx, rax
lea rcx, str.Protocol_Catalog9
call fcn.18004dcf8
mov edi, 1
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x1800503aa
mov rax, qword [rax]
call qword [rax + ILCombine]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov r9, rsi
lea r8, str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9
lea rdx, str._s_s
lea rcx, [rsp + 0x60]
call fcn.18000cf30
lea ecx, [rdi + 0x32]
call fcn.18000a354
mov r9d, 0x2011f
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov r15, 0xffffffff80000002
test rax, rax
je 0x180050087
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, r15
call rax
jmp 0x18005009a
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1800500a5
xor edi, edi
jmp 0x180050197
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x18005039f
mov rax, qword [rax]
call qword [rax + ILCombine]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
mov r14d, 0x400
jmp 0x180050119
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea r8, str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9
lea rdx, str._s_s_s
lea rcx, [rsp + 0x70]
call fcn.18000cf30
mov ecx, 0x39
call fcn.18000a354
mov rbx, qword [rsp + 0x70]
mov rcx, r15
mov rdx, rbx
test rax, rax
je 0x18005010f
call rax
jmp 0x180050115
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x180050161
and qword [rsp + 0x38], 0
mov dword [rsp + 0x58], r14d
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.18003af50
test eax, eax
je 0x1800500cd
mov r14, qword [rsp + 0x50]
mov esi, 0x46
mov ecx, esi
call fcn.18000a354
mov rcx, r14
test rax, rax
je 0x1800501f2
call rax
jmp 0x1800501f8
mov rdi, qword [rsp + 0x50]
mov ecx, 0x46
call fcn.18000a354
mov rcx, rdi
test rax, rax
je 0x1800501e9
call rax
xor edi, edi
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180050197
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1800501b7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1800782d0
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x18005017a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
xor r10d, r10d
mov qword [rsp + 0x78], r10
mov r8, qword [r13 + 0xb8]
mov rcx, qword [r13 + 0xc0]
sub rcx, r8
movabs rax, 0x23ee08fb823ee09
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x18005017c
xor r12d, r12d
cmp dword [r12 + r8 + 8], 0
je 0x18005032e
add r9d, edi
mov dword [rsp + 0x68], r9d
mov dword [rsp + 0x20], r9d
mov r9, qword [rbp - 0x80]
lea r8, str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9
lea rdx, str._s_s_012d
lea rcx, [rsp + 0x60]
call fcn.18000cf30
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 0x20006
mov rdx, qword [rsp + 0x60]
mov rcx, r15
call fcn.18004d3ec
test eax, eax
jne 0x18005017a
mov rcx, qword [r13 + 0xb8]
add rcx, 0x18
add rcx, r12
mov dword [rsp + 0x28], 0x378
mov qword [rsp + 0x20], rcx
lea r9d, [rax + 3]
lea rdx, str.PackedCatalogItem
mov rcx, qword [rsp + 0x50]
call fcn.180048e38
test eax, eax
jne 0x180050377
mov rax, qword [r13 + 0xb8]
mov rcx, qword [r12 + rax]
mov eax, dword [rcx - 0x10]
test eax, eax
je 0x180050306
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, edi
lea rdx, str.ProtocolName
mov rcx, qword [rsp + 0x50]
call fcn.180048e38
test eax, eax
jne 0x180050377
mov r14, qword [rsp + 0x50]
mov ecx, esi
call fcn.18000a354
mov rcx, r14
test rax, rax
je 0x18005031e
call rax
jmp 0x180050324
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r10, qword [rsp + 0x78]
mov r9d, dword [rsp + 0x68]
add r10, rdi
mov qword [rsp + 0x78], r10
add r12, 0x390
mov r8, qword [r13 + 0xb8]
mov rcx, qword [r13 + 0xc0]
sub rcx, r8
movabs rax, 0x23ee08fb823ee09
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r10, rdx
jae 0x18005017c
jmp 0x180050238
xor edi, edi
mov r14, qword [rsp + 0x50]
mov ecx, esi
call fcn.18000a354
mov rcx, r14
test rax, rax
je 0x180050394
call rax
jmp 0x18005017c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18005017c
mov ecx, 0x80004005
call fcn.18000a540
nop
mov ecx, 0x80004005
call fcn.18000a540
int3