Function at 0x1400292d0
Capabilities:
Delete registry key

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x268
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0xc0], 0
mov dword [rsp + 0x34], 0xf003f
lea rcx, [0x14032af98]
call fcn.140036030
test eax, eax
je 0x140029368
cmp dword [rsp + 0x298], 0
je 0x140029344
mov eax, dword [rsp + 0x34]
bts eax, 9
mov dword [rsp + 0x34], eax
jmp 0x140029368
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, [0x14032af98]
call fcn.140035f80
test eax, eax
je 0x140029368
mov eax, dword [rsp + 0x34]
bts eax, 8
mov dword [rsp + 0x34], eax
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0x1d0]
call fcn.14001f4b0
nop
xor r9d, r9d
lea r8, [0x140256f04]
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x1d0]
call fcn.14002e690
nop
mov r9d, 1
lea r8, [0x140256f14]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x1d0]
call fcn.140030b40
nop
lea rcx, [rsp + 0x150]
call fcn.14001bd90
mov rcx, rax
call fcn.140048800
movzx eax, al
test eax, eax
jne 0x140029461
lea rcx, [rsp + 0x150]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x34]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x288]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140029461
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0xd0]
call fcn.140020590
nop
lea rcx, [rsp + 0x150]
call fcn.140020590
nop
lea rcx, [rsp + 0x1d0]
call fcn.140020590
mov eax, dword [rsp + 0x44]
jmp 0x140029655
cmp qword [rsp + 0xc0], 0
je 0x140029555
lea rcx, [rsp + 0xd0]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov rdx, rax
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea r9, [0x1402570a0]
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0xa0]
call fcn.140038d20
lea rcx, [rsp + 0x80]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x80]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
lea rdx, [0x140256fa8]
lea rcx, [rsp + 0x70]
call fcn.14003b980
cmp dword [rsp + 0x30], 0
je 0x140029542
cmp dword [rsp + 0x40], 0x12
jne 0x140029542
lea rcx, [rsp + 0xd0]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov rdx, rax
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140029607
mov rdx, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x288]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea r9, [0x1402572e0]
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0xb0]
call fcn.140038d20
lea rcx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x90]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov r9d, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
lea rdx, str._tCustomDeleteRegKey__ld_err_lu
lea rcx, [rsp + 0x60]
call fcn.14003b980
cmp dword [rsp + 0x30], 0
je 0x140029607
cmp dword [rsp + 0x38], 0x12
jne 0x140029607
mov rdx, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x288]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140029618
mov dword [rsp + 0x3c], 1
jmp 0x140029620
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0xd0]
call fcn.140020590
nop
lea rcx, [rsp + 0x150]
call fcn.140020590
nop
lea rcx, [rsp + 0x1d0]
call fcn.140020590
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0x268
pop rdi
pop rsi
ret