Function at 0x14001f330
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x190
mov rax, qword [0x1400b30c0]
xor rax, rsp
mov qword [rsp + 0x188], rax
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.14001eba0
mov rcx, rax
call fcn.14001ead0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14001f394
xor al, al
jmp 0x14001f5e7
lea rax, [rsp + 0x21]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x21]
call fcn.14001ec00
mov rcx, rax
call fcn.14001fac0
mov r8, qword [rsp + 0x1a0]
mov rdx, rax
lea rcx, [rsp + 0x158]
call fcn.14001e9e0
nop
lea rcx, [rsp + 0x158]
call fcn.14000d060
mov rdx, rax
lea rcx, [rsp + 0x178]
call sub.ntdll.dll_RtlInitUnicodeString
lea rax, [rsp + 0x22]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x22]
call fcn.14001ec60
mov rcx, rax
call fcn.14001fa80
mov r8, qword [rsp + 0x1a0]
mov rdx, rax
lea rcx, [rsp + 0x138]
call fcn.14001e9e0
nop
lea rcx, [rsp + 0x138]
call fcn.14000d060
lea r8, [rsp + 0x130]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x14001f4c1
cmp dword [rsp + 0x2c], 2
jne 0x14001f497
mov byte [rsp + 0x23], 1
lea rcx, [rsp + 0x138]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x158]
call fcn.1400067e0
movzx eax, byte [rsp + 0x23]
jmp 0x14001f5e7
mov byte [rsp + 0x24], 0
lea rcx, [rsp + 0x138]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x158]
call fcn.1400067e0
movzx eax, byte [rsp + 0x24]
jmp 0x14001f5e7
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x25]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x25]
call fcn.14001ecc0
mov rcx, rax
call fcn.14001eb50
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x178]
call qword [rsp + 0x48]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14001f573
lea rcx, [rsp + 0x138]
call fcn.14000d060
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x2c], eax
mov byte [rsp + 0x26], 0
lea rcx, [rsp + 0x138]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x158]
call fcn.1400067e0
movzx eax, byte [rsp + 0x26]
jmp 0x14001f5e7
lea rcx, [rsp + 0x138]
call fcn.14000d060
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x14001f5c2
mov byte [rsp + 0x27], 0
lea rcx, [rsp + 0x138]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x158]
call fcn.1400067e0
movzx eax, byte [rsp + 0x27]
jmp 0x14001f5e7
mov byte [rsp + 0x28], 1
lea rcx, [rsp + 0x138]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x158]
call fcn.1400067e0
movzx eax, byte [rsp + 0x28]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140087a80
add rsp, 0x190
pop rdi
ret