Function at 0x180052fd8
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7c8]
sub rsp, 0x890
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
cmp dword [rcx + 0x90], r15d
je 0x18005309b
mov rbx, qword [0x18016b408]
test rbx, rbx
jne 0x18005308e
lea rsi, [0x18016b438]
mov qword [rsp + 0x70], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rbx, qword [0x18016b408]
test rbx, rbx
jne 0x180053085
mov eax, dword [0x18016b410]
test al, 1
jne 0x180053077
or eax, 1
mov dword [0x18016b410], eax
call fcn.1800432c8
lea rcx, [0x1800856ec]
call fcn.18006f680
nop
lea rbx, [0x18016b418]
mov qword [0x18016b408], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rbx + 8], r15d
jne 0x18005309b
xor eax, eax
jmp 0x180053432
mov eax, dword [r14 + 0x90]
lea rcx, str.Num_Catalog_Entries64
lea r13, str.Num_Catalog_Entries
test eax, eax
cmovne r13, rcx
lea rcx, str.Catalog_Entries64
lea r12, str.Catalog_Entries
cmovne r12, rcx
mov ebx, r15d
mov r8d, r15d
mov esi, r15d
mov r10, qword [r14 + 0x70]
mov r11, qword [r14 + 0x68]
mov rcx, r10
sub rcx, r11
movabs rax, 0x8888888888888889
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180053427
mov r9, r15
sub r10, r11
movabs rax, 0x8888888888888889
imul r10
add rdx, r10
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, r9
jbe 0x18005345c
imul rcx, r9, 0x78
add rcx, r11
mov rax, qword [rcx + 0x60]
cmp rax, qword [r14 + 0x80]
jne 0x18005315b
mov rax, qword [rcx + 0x68]
cmp rax, qword [r14 + 0x88]
jne 0x18005315b
mov ebx, 1
mov dword [rcx], r15d
jmp 0x180053164
mov dword [rcx], 1
inc r8d
inc esi
mov r10, qword [r14 + 0x70]
mov r11, qword [r14 + 0x68]
mov r9d, esi
mov rcx, r10
sub rcx, r11
movabs rax, 0x8888888888888889
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r9, rdx
jb 0x180053106
test ebx, ebx
je 0x180053427
test r8d, r8d
je 0x180053094
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x180053462
mov rax, qword [rax]
call qword [rax + ILCombine]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov r8, r12
lea rdx, str.SYSTEMCurrentControlSetServicesWinSock2ParametersNameSpace_Catalog5_s
lea rcx, [rsp + 0x48]
call fcn.18000cf30
mov ecx, 0x33
call fcn.18000a354
mov r9d, 0x2011f
xor r8d, r8d
mov rbx, qword [rsp + 0x48]
mov rsi, 0xffffffff80000002
mov rdx, rbx
test rax, rax
je 0x18005321b
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call rax
jmp 0x18005322e
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180053404
mov dword [rsp + 0x40], 0x400
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x18005346d
mov rax, qword [rax]
call qword [rax + ILCombine]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x58], rdi
jmp 0x1800532a8
lea r9, [rbp - 0x80]
mov r8, rbx
lea rdx, str._s_s
lea rcx, [rsp + 0x58]
call fcn.18000cf30
mov ecx, 0x39
call fcn.18000a354
mov rdi, qword [rsp + 0x58]
mov rcx, rsi
mov rdx, rdi
test rax, rax
je 0x180053296
call rax
jmp 0x18005329c
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1800532c6
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x38], r15
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.18003af50
test eax, eax
je 0x180053260
mov rbx, qword [rsp + 0x50]
mov ecx, 0x46
call fcn.18000a354
mov rcx, rbx
test rax, rax
je 0x1800532e1
call rax
jmp 0x1800532e7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, r15d
mov r8, qword [r14 + 0x70]
mov r9, qword [r14 + 0x68]
mov rcx, r8
sub rcx, r9
movabs r11, 0x8888888888888889
mov rax, r11
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1800533d2
xor r10d, r10d
sub r8, r9
mov rax, r11
imul r8
add rdx, r8
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, r10
jbe 0x180053478
imul rbx, r10, 0x78
add rbx, r9
cmp dword [rbx], 0
je 0x18005339e
inc esi
mov r9d, esi
mov r8, r12
lea rdx, str.SYSTEMCurrentControlSetServicesWinSock2ParametersNameSpace_Catalog5_s_012d
lea rcx, [rsp + 0x48]
call fcn.18000cf30
lea rax, [rsp + 0x60]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.1800053f4
nop
lea rcx, [rbx + 8]
mov rdx, rax
call fcn.18004ede4
test eax, eax
je 0x1800533d2
movabs r11, 0x8888888888888889
inc r15d
mov r8, qword [r14 + 0x70]
mov r9, qword [r14 + 0x68]
mov r10d, r15d
mov rcx, r8
sub rcx, r9
mov rax, r11
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r10, rdx
jb 0x180053322
mov r8d, esi
mov rdx, r13
lea rcx, str.NameSpace_Catalog5
call fcn.18004dcf8
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1800533ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x48]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180053094
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x180053094
mov dword [rdi], 3
mov eax, 1
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.1800782d0
mov rbx, qword [rsp + 0x8e0]
add rsp, 0x890
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180053fe4
int3
mov ecx, 0x80004005
call fcn.18000a540
nop
mov ecx, 0x80004005
call fcn.18000a540
nop
call fcn.180053fe4
int3