Function at 0x140031560
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
sub rsp, 0x5b0
mov rax, qword [0x1401c0030]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
mov qword [rsp + 0x68], 0
mov ecx, dword [rsp + 0x5d8]
call fcn.140027ba0
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x190]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov dword [rsp + 0x44], 0x208
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0xffffffff
cmp qword [rsp + 0x5c0], 0
je 0x1400315f2
mov rcx, qword [rsp + 0x5c8]
call fcn.14000c1f0
movzx eax, al
test eax, eax
je 0x14003161e
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x5c8]
call fcn.14000b4e0
nop
mov rcx, qword [rsp + 0x5d0]
call fcn.140018ae0
mov eax, dword [rsp + 0x54]
jmp 0x140031937
mov rcx, qword [rsp + 0x5c8]
call fcn.14000b420
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x4c]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x5c0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140031910
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x190]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14003185d
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x5d0]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.140018970
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
call fcn.140018a10
jmp 0x1400316dd
lea rcx, [rsp + 0x60]
call fcn.140018900
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.1400188c0
movzx eax, al
test eax, eax
je 0x140031750
lea rcx, [rsp + 0x60]
call fcn.14000d020
mov rdx, rax
lea rcx, [rsp + 0x168]
call fcn.14000b5f0
nop
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x168]
call fcn.14001b890
movzx eax, al
test eax, eax
je 0x140031741
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0x168]
call fcn.14000b4e0
jmp 0x140031750
lea rcx, [rsp + 0x168]
call fcn.14000b4e0
jmp 0x1400316d3
cmp dword [rsp + 0x48], 0
je 0x14003176e
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], 0x208
jmp 0x140031656
mov rdx, qword [rsp + 0x5c8]
lea rcx, [rsp + 0x148]
call fcn.14000b5f0
nop
lea rcx, [rsp + 0x148]
call fcn.140039480
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x148]
call fcn.140019680
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x5d0]
mov rcx, qword [rsp + 0x80]
call fcn.140018be0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x148]
mov rcx, qword [rsp + 0x90]
call fcn.14000b5f0
mov qword [rsp + 0xa0], rax
mov r9d, dword [rsp + 0x5d8]
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x5c0]
call fcn.140031560
test eax, eax
je 0x140031843
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], 0x208
lea rcx, [rsp + 0x148]
call fcn.14000b4e0
jmp 0x140031656
lea rax, [rsp + 0x108]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x128]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0x5c8]
mov rcx, qword [rsp + 0xa8]
call fcn.14000b5f0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rax
lea rdx, [0x140186318]
mov rcx, qword [rsp + 0xb8]
call fcn.140019710
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
call fcn.14003a2e0
mov rcx, qword [rsp + 0x5c8]
call fcn.14000b420
xor r9d, r9d
mov r8d, dword [rsp + 0x4c]
mov rdx, rax
mov rcx, qword [rsp + 0x5c0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x5c8]
call fcn.14000b4e0
nop
mov rcx, qword [rsp + 0x5d0]
call fcn.140018ae0
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.14005e8d0
add rsp, 0x5b0
pop rdi
ret