Function at 0x77cc8145
Capabilities:
Query or enumerate registry key

Disassembly:
cmp eax, 0x55
jne 0x77cdb8a4
lea eax, [ebp - 0xc]
push eax
call fcn.77cc8318
movzx eax, ax
test ax, ax
je 0x77cc82bd
or dword [edi], 1
jmp 0x77cc827b
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi + 0x10]
lea ebx, [edi + 0xc]
mov eax, dword [ebx]
dec eax
dec eax
xor ecx, ecx
cmp dword [ebp + 8], ecx
mov dword [ebp - 4], eax
mov dword [ebx], eax
je 0x77cdb7b5
push ebx
push eax
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryKey]
cmp eax, 0xc000017c
mov dword [ebp + 0x10], eax
je 0x77cdb7d3
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
add eax, 4
add dword [ebx], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebx]
jl 0x77cdb82d
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp - 4]
cmp dword [edx], ecx
ja 0x77cdb7dc
cmp ecx, eax
jb 0x77cdb7e6
lea eax, [esi + 4]
test eax, eax
je 0x77cdb7c9
cmp esi, dword [edi + 0x10]
jne 0x77cdb89c
mov dword [edi + 0x10], esi
mov ecx, dword [esi]
shr ecx, 1
mov word [esi + ecx*2 + 4], 0x5c
mov ecx, dword [esi]
push eax
lea eax, [ebp - 0xc]
shr ecx, 1
and word [esi + ecx*2 + 6], 0
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
movzx eax, word [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
push eax
lea eax, [ebp - 0xc]
add cx, 2
add word [ebp - 0xa], cx
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
cmp word [ebp - 0xc], 0x2c
jb 0x77cc82bd
movzx eax, word [ebp - 0xc]
mov ecx, dword [ebp - 8]
shr eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
je 0x77cc87b2
movzx eax, word [ebp - 0xc]
movzx ebx, ax
mov dword [esi], eax
movzx eax, bx
shr eax, 1
and word [esi + eax*2 + 4], 0
test byte [ebp + 8], 2
je 0x77cc8249
or dword [edi], 4
movzx eax, word [esi + 0x18]
cmp eax, 0x4d
jne 0x77cc811a
push 1
push 0x77d1a0e4
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], 0x44
call dword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
je 0x77cc82bd
or dword [edi], 2
push 0x22
mov word [ebp - 0xc], bx
pop eax
lea ecx, [eax + eax]
mov word [edi + 6], cx
movzx ecx, cx
mov word [edi + 4], ax
cmp ecx, dword [esi]
jae 0x77cc8294
lea ecx, [eax + 1]
mov word [edi + 4], cx
push edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.77cc82cb
mov eax, dword [edi]
test al, 0x10
jne 0x77cc82bd
or eax, 8
mov dword [edi], eax
mov ax, word [esi]
sub ax, word [edi + 8]
sub ax, word [edi + 6]
sub ax, 2
mov word [edi + 0xa], ax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
add word [ebp - 0xc], 0xfffe
jmp 0x77cc822c
cmp eax, 0x75
je 0x77cc8123
jmp 0x77cc82bd
mov word [esi + 4], cx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov dword [ebx], 8
jmp 0x77cc81b6
mov eax, 0xc0000008
jmp 0x77cc82bf
and dword [ebp + 0x10], 0
jmp 0x77cc8189
mov eax, 0x80000005
jmp 0x77cc82bf
mov ecx, dword fs:[0x18]
push eax
mov eax, dword [ecx + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x77cdb80c
mov eax, 0xc0000017
jmp 0x77cc82bf
mov eax, dword [edi + 0x10]
push dword [eax]
add eax, 4
push eax
lea eax, [esi + 4]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
add esp, 0xc
mov dword [esi], eax
jmp 0x77cc81b6
cmp dword [ebp + 0x10], 0x80000005
jne 0x77cdb870
mov ecx, dword fs:[0x18]
push eax
mov eax, dword [ecx + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x77cdb802
mov eax, dword [ebx]
push ebx
push eax
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryKey]
cmp eax, 0xc000017c
mov dword [ebp + 0x10], eax
jne 0x77cdb870
and dword [ebp + 0x10], 0
cmp dword [ebp + 0x10], 0
jge 0x77cc81b6
cmp esi, dword [edi + 0x10]
je 0x77cdb894
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0x10]
jmp 0x77cc82bf
or dword [edi], 0x20
jmp 0x77cc81ca
cmp eax, 0x6d
jne 0x77cc87bc
jmp 0x77cc8256