Function at 0x7dd9214d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x7dd98653
lea eax, [ebp - 0x1c]
push eax
push 0
push edi
call fcn.7dd7e93f
test al, al
je 0x7dd9e60b
mov byte [ebp - 0x15], 0
test esi, esi
jne 0x7dd921ab
push dword [ebp - 0x1c]
push ebx
call fcn.7dd920a5
mov esi, eax
test esi, esi
je 0x7dd9e615
lea eax, [ebp - 0x34]
push eax
push 0
push edi
call fcn.7dd7e911
test al, al
je 0x7dd9e60b
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x34]
push esi
push edi
call fcn.7dd9222a
test eax, eax
jl 0x7dd92214
cmp dword [ebp - 0x20], 0xffffffff
je 0x7dd92214
mov esi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
lea eax, [ebp - 0x30]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 2
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call esi
mov edi, eax
test edi, edi
jge 0x7dd9be70
cmp edi, 0x80000005
je 0x7dd924bd
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 0x10
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtClose]
xor esi, esi
cmp edi, esi
jl 0x7dd92499
cmp dword [ebx + 4], 1
jne 0x7dd9252c
cmp byte [ebp - 0x15], 0
jne 0x7dd9866b
cmp edi, esi
jl 0x7dd92499
push 2
pop edi
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x28], ecx
cmp dword [ebx + 8], edi
jb 0x7dd9e629
mov ax, word [ebx + 8]
sub ax, di
mov dx, word [ebx + 8]
mov word [ebp - 0x2a], dx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 1
mov word [ebp - 0x2c], ax
jne 0x7dd92486
cmp ax, 4
jae 0x7dd924ff
push 1
lea eax, [ebp - 0x2c]
push eax
xor esi, esi
push esi
push dword [ebp - 0x24]
call fcn.7dd7ec74
mov edi, eax
lea eax, [ebp - 0x14]
cmp ebx, eax
je 0x7dd92212
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x7dd92212
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov ecx, dword fs:[0x18]
push dword [ebp - 0x30]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
je 0x7dd9e61f
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
push ebx
push 2
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call esi
mov edi, eax
jmp 0x7dd9242c
movzx edx, word [ecx]
movzx esi, ax
sub esi, edi
shr esi, 1
cmp dx, word [ecx + esi*2]
jne 0x7dd92486
cmp dx, 0x22
je 0x7dd9e630
cmp dx, 0x27
jne 0x7dd92486
jmp 0x7dd9e630
mov edi, 0xc0000024
jmp 0x7dd92499
push 0x7dd98424
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov byte [ebp - 0x15], 1
jmp 0x7dd92194
push esi
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x24]
call fcn.7dd7ec74
mov edi, eax
cmp edi, esi
jl 0x7dd92499
push esi
lea eax, [ebp - 0x3c]
push eax
push esi
push dword [ebp - 0x24]
call fcn.7dd7ec74
mov edi, eax
jmp 0x7dd9244f
lea ebx, [ebp - 0x14]
jmp 0x7dd9242c
mov eax, 0xc000000d
jmp 0x7dd92214
mov eax, 0xc0000016
jmp 0x7dd92214
mov edi, 0xc0000017
jmp 0x7dd92209
xor eax, eax
jmp 0x7dd9246c
add ecx, edi
mov dword [ebp - 0x28], ecx
mov ecx, 0xfffc
mov edx, ecx
add ax, dx
add word [ebp - 0x2a], cx
mov word [ebp - 0x2c], ax
jmp 0x7dd92486