Function at 0x1400fd680
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x8100
call fcn.140222df0
sub rsp, rax
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x80f0], rax
mov byte [rsp + 0x41], 0
mov rcx, qword [rsp + 0x8118]
call fcn.140229a68
test rax, rax
jbe 0x1400fda44
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x8128]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1400fd6f9
cmp dword [rsp + 0x4c], 1
je 0x1400fd703
cmp dword [rsp + 0x4c], 2
je 0x1400fd703
jmp 0x1400fd70b
mov dword [rsp + 0x48], 0x200
jmp 0x1400fd70b
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x58], 0
mov eax, dword [rsp + 0x48]
or eax, 0x20019
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x8118]
mov rcx, qword [rsp + 0x8110]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 2
jne 0x1400fd793
cmp dword [rsp + 0x8128], 2
jne 0x1400fd793
mov dword [rsp + 0x48], 0x200
mov eax, dword [rsp + 0x48]
or eax, 0x20019
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x8118]
mov rcx, qword [rsp + 0x8110]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400fd9fc
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x7ffe
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0x3fff
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0xf0]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x103
je 0x1400fd8f3
mov r9d, dword [rsp + 0x8128]
mov r8, qword [rsp + 0x8120]
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x58]
call fcn.1400fd680
movzx eax, al
test eax, eax
je 0x1400fd886
mov dword [rsp + 0x50], 0x3fff
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0xf0]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x44], eax
jmp 0x1400fd8ee
mov byte [rsp + 0x40], 1
cmp qword [rsp + 0x8120], 0
je 0x1400fd8ec
mov rcx, qword [rsp + 0x8120]
call fcn.140016520
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140017fc0
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xa0]
call fcn.14001e490
lea r9, [rsp + 0x90]
lea r8, [rsp + 0xa0]
lea rdx, str.Failed_to_delete_registry_key___S____s_
mov rcx, qword [rsp + 0x8120]
call fcn.140043450
jmp 0x1400fd8f3
jmp 0x1400fd802
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x1400fd9fa
mov qword [rsp + 0x68], 0
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1400fd945
lea rdx, str.RegDeleteKeyExW
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1400fd979
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x8118]
mov rcx, qword [rsp + 0x8110]
call qword [rsp + reloc.msi.dll_MsiRecordSetStringA]
mov dword [rsp + 0x44], eax
jmp 0x1400fd993
mov rdx, qword [rsp + 0x8118]
mov rcx, qword [rsp + 0x8110]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x44], eax
cmp qword [rsp + 0x60], 0
je 0x1400fd9a6
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x44], 0
jne 0x1400fd9b4
mov byte [rsp + 0x41], 1
jmp 0x1400fd9fa
cmp qword [rsp + 0x8120], 0
je 0x1400fd9fa
mov edx, dword [rsp + 0x44]
lea rcx, [rsp + 0xb0]
call fcn.1400f1870
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x8120]
call fcn.14001e690
lea rcx, [rsp + 0xb0]
call fcn.140015480
jmp 0x1400fda42
cmp qword [rsp + 0x8120], 0
je 0x1400fda42
mov edx, dword [rsp + 0x44]
lea rcx, [rsp + 0xd0]
call fcn.1400f1870
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x8120]
call fcn.14001e690
lea rcx, [rsp + 0xd0]
call fcn.140015480
jmp 0x1400fda63
cmp qword [rsp + 0x8120], 0
je 0x1400fda63
lea rdx, str.No_path_specified
mov rcx, qword [rsp + 0x8120]
call fcn.14001e770
movzx eax, byte [rsp + 0x41]
mov rcx, qword [rsp + 0x80f0]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x8100
pop rdi
ret