Function at 0x7d712030
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
lea eax, [ebp - 0x120]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x120]
mov dword [ebp - 8], ecx
mov edx, dword [0x7d727a40]
movzx eax, byte [edx]
and eax, 8
je 0x7d7120f9
mov ecx, 1
imul ecx, ecx, 0
movsx edx, byte [ecx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c]
cmp edx, 0x2e
jne 0x7d71207c
mov dword [ebp - 0x1c], 0x12
jmp 0x7d712083
mov dword [ebp - 0x1c], 0x21
push 0x7d7242c0
push 0x46a
push 0x7d727da4
mov eax, dword [ebp - 0x1c]
add eax, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c
push eax
mov ecx, dword [0x7d727a40]
push ecx
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d7120f9
cmp dword [ebp + 0x14], 0
je 0x7d7120c1
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x7d7120c8
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.__p__d__p__p__u___p__p__p__p__n
call fcn.7d71f960
add esp, 0x28
cmp dword [ebp + 0x18], 0
je 0x7d712109
mov eax, 0x57
jmp 0x7d71229e
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.7d7149a0
add esp, 8
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x7d71212a
mov eax, 6
jmp 0x7d71229e
lea edx, [ebp - 0x14]
push edx
push 0x100
lea eax, [ebp - 0x120]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntext.dll_NtEnumerateKey]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x80000005
jne 0x7d7121b3
lea eax, [ebp - 0x120]
cmp dword [ebp - 4], eax
je 0x7d71216d
mov ecx, dword [ebp - 4]
push ecx
call fcn.7d714a40
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.7d714a20
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x7d71218c
mov eax, 8
jmp 0x7d71229e
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntext.dll_NtEnumerateKey]
mov dword [ebp - 0xc], eax
jmp 0x7d71214d
cmp dword [ebp - 0xc], 0
jne 0x7d71227d
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
shr ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
shr eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x24], 0
je 0x7d7121e9
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx]
jae 0x7d712209
cmp dword [ebp + 0x1c], 0
je 0x7d712212
cmp dword [ebp + 0x20], 0
je 0x7d712212
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx]
jb 0x7d712212
mov dword [ebp - 0xc], 0x80000005
jmp 0x7d71227d
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x18
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.ntext.dll_memcpy
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov word [edx + ecx*2], ax
cmp dword [ebp + 0x20], 0
je 0x7d71227d
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
cmp dword [ebp + 0x1c], 0
je 0x7d71227d
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call sub.ntext.dll_memcpy
add esp, 0xc
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x1c]
mov word [eax + edx*2], cx
lea ecx, [ebp - 0x120]
cmp dword [ebp - 4], ecx
je 0x7d712294
mov edx, dword [ebp - 4]
push edx
call fcn.7d714a40
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
mov esp, ebp
pop ebp
ret 0x20