Function at 0x7dd8b908
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x230], eax
mov eax, esi
and eax, 8
or eax, 2
shl eax, 5
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x24c]
jmp 0x7dd8bda8
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24c], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x214], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x240], eax
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x218], ecx
mov ecx, 0x80
add cx, word [eax]
push ebx
push esi
movzx esi, cx
mov eax, 0x208
xor ebx, ebx
mov dword [ebp - 0x210], 0xc0000034
cmp si, ax
ja 0x7ddb11aa
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
mov word [ebp - 0x246], si
mov esi, dword [ebp + 0x14]
and dword [ebp + 0x14], 0xfffffcff
push edi
mov edi, 0x300
and esi, edi
mov dword [ebp - 0x244], eax
cmp dword [0x7de40310], ebx
je 0x7dd8b9db
cmp esi, ebx
jne 0x7dd8b9db
lea eax, [ebp - 0x254]
push eax
push 4
lea eax, [ebp - 0x250]
push eax
push 7
push dword [ebp - 0x238]
call dword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
jl 0x7dd8b9db
mov esi, dword [ebp - 0x250]
and esi, edi
or dword [ebp + 0x14], esi
test byte [ebp + 0x18], 2
mov esi, dword [ebp + 0x1c]
push 0x18
pop edi
je 0x7dd8ba7e
mov eax, dword [ebp - 0x240]
test byte [eax], 1
jne 0x7dd8bf16
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x248]
push ecx
push eax
call fcn.7dd8c42e
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x7dd8ba94
mov eax, esi
and eax, 8
or eax, 2
shl eax, 5
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x230], ebx
lea eax, [ebp - 0x248]
mov dword [ebp - 0x22c], eax
mov eax, esi
and eax, 0xc
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x234], edi
cmp dword [ebp - 0x218], ebx
jne 0x7ddb11d9
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x214]
call dword [sym.imp.ntdll.dll_NtOpenKeyEx]
mov dword [ebp - 0x210], eax
test byte [ebp + 0x18], 1
jne 0x7dd8bd4e
cmp dword [ebp - 0x210], ebx
jge 0x7dd8bee8
lea eax, [ebp - 0x20c]
pop edi
cmp dword [ebp - 0x21c], eax
jne 0x7ddb1217
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 0x20
cmp dword [ebp - 0x210], ebx
jge 0x7dd8bee8
mov eax, dword [ebp - 0x240]
test byte [eax], 2
jne 0x7dd76014
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x248]
push ecx
push eax
call fcn.7dd8bc59
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x7dd8ba94
mov eax, esi
and eax, 8
or eax, 2
shl eax, 5
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x230], ebx
lea eax, [ebp - 0x248]
and esi, 0xc
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x234], edi
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x218], ebx
jne 0x7ddb11fb
push esi
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x214]
call dword [sym.imp.ntdll.dll_NtOpenKeyEx]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jge 0x7dd8ba88
jmp 0x7dd8ba94
mov eax, dword [ebp - 0x214]
or dword [eax], 2
jmp 0x7dd8ba94
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x230], eax
mov eax, esi
and eax, 8
or eax, 2
shl eax, 5
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x24c]
jmp 0x7dd8ba38
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx ecx, si
push ecx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x21c], eax
cmp eax, ebx
jne 0x7dd8b980
mov eax, 0xc0000017
jmp 0x7dd8baad
push dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x214]
call dword [sym.imp.ntdll.dll_NtOpenKeyTransactedEx]
jmp 0x7dd8ba78
push dword [ebp - 0x218]
push esi
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x214]
call dword [sym.imp.ntdll.dll_NtOpenKeyTransactedEx]
jmp 0x7dd8bde6
push dword [ebp - 0x21c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x7dd8baa7