Function at 0x7dd8b930
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 0x7dd8bdd0
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 0x7ddb118a
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 0x7dd8ba03
cmp esi, ebx
jne 0x7dd8ba03
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 0x7dd8ba03
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 0x7dd8baa6
mov eax, dword [ebp - 0x240]
test byte [eax], 1
jne 0x7dd8bf3e
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x248]
push ecx
push eax
call fcn.7dd8c456
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x7dd8babc
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 0x7ddb11b9
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 0x7dd8bd76
cmp dword [ebp - 0x210], ebx
jge 0x7dd8bf10
lea eax, [ebp - 0x20c]
pop edi
cmp dword [ebp - 0x21c], eax
jne 0x7ddb11f7
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 0x7dd8bf10
mov eax, dword [ebp - 0x240]
test byte [eax], 2
jne 0x7dd76004
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x248]
push ecx
push eax
call fcn.7dd8bc81
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x7dd8babc
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 0x7ddb11db
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 0x7dd8bab0
jmp 0x7dd8babc
mov eax, dword [ebp - 0x214]
or dword [eax], 2
jmp 0x7dd8babc
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 0x7dd8ba60
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 0x7dd8b9a8
mov eax, 0xc0000017
jmp 0x7dd8bad5
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 0x7dd8baa0
push dword [ebp - 0x218]
push esi
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x214]
call dword [sym.imp.ntdll.dll_NtOpenKeyTransactedEx]
jmp 0x7dd8be0e
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 0x7dd8bacf