Function at 0x77cb90c3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov edi, 0x77cb8f50
mov dword [ebp - 4], 0x77cb9048
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
je 0x77cb9bca
mov ecx, dword [eax + 4]
cmp ecx, ebx
je 0x77cb9bca
movzx eax, word [eax]
cmp ax, bx
je 0x77cb9bca
cmp dword [ebp + 0x14], ebx
je 0x77ce0a75
movzx eax, ax
shr eax, 1
lea esi, [ecx + eax*2 - 2]
cmp esi, ecx
jb 0x77ce0a81
movzx edx, word [esi]
cmp dx, 0x5c
je 0x77ce0a81
cmp dx, 0x2f
je 0x77ce0a81
cmp dx, 0x2e
je 0x77cb913f
dec esi
dec esi
jmp 0x77cb9116
inc esi
inc esi
mov edx, esi
sub edx, ecx
sar edx, 1
sub eax, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
je 0x77ce0a81
cmp byte [ebp + 0x10], bl
je 0x77cb9a8c
push 0x77cb9190
push esi
call sub.ntdll.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
jne 0x77cb9a8c
mov eax, dword [ebp + 0x14]
and dword [ebp + 0x10], ebx
mov byte [eax], bl
cmp dword [ebp - 8], 0
jne 0x77cb9a7e
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x77cb9a30
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [edi + esi*2]
cmp eax, dword [ebp - 4]
ja 0x77ce0ac2
cmp esi, dword [ebp - 0x10]
jne 0x77cb9a68
push dword [ebp - 0x10]
push edi
push dword [ebp - 0x14]
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x77cb9baf
lea edi, [edi + esi*2 + 2]
cmp edi, dword [ebp - 4]
jae 0x77cb9b10
xor esi, esi
mov eax, edi
lea edx, [eax + 2]
jmp 0x77cb9a30
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x77cb9185
lea eax, [ebp - 8]
push eax
xor esi, esi
push esi
push 0x20019
push 0x77cb9ab4
push esi
push dword [ebp + 0xc]
call fcn.77cb6edb
cmp eax, esi
mov dword [ebp + 0x10], eax
jge 0x77cb9ad4
jmp 0x77ce0a8d
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
push ebx
push 2
push 0x77cb9b38
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
cmp eax, esi
mov dword [ebp + 0x10], eax
jl 0x77cb9b40
cmp ebx, esi
je 0x77cb9b40
mov eax, dword [ebx + 8]
lea eax, [eax + ebx + 0xc]
mov dword [ebp - 4], eax
lea edi, [ebx + 0xc]
cmp edi, dword [ebp - 4]
mov dword [ebp + 0x10], esi
jb 0x77cb9a77
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
test ebx, ebx
je 0x77cb917b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x77cb917b
cmp eax, 0x80000005
je 0x77cb9b4e
cmp eax, 0xc0000023
jne 0x77cb9bba
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jbe 0x77cb9bba
cmp ebx, esi
jne 0x77ce0a9d
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword fs:[0x18]
push dword [ebp + 8]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
cmp ebx, esi
jne 0x77cb9ad4
jmp 0x77ce0ab6
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
jmp 0x77cb9b16
cmp eax, 0xc0000034
je 0x77cb9b04
jmp 0x77cb9b16
mov dword [ebp + 0x10], 0xc000000d
jmp 0x77cb9b16
mov dword [ebp + 0x10], 0xc0000005
jmp 0x77cb9185
mov dword [ebp + 0x10], 0xc0000225
jmp 0x77cb9185
cmp eax, 0xc0000034
je 0x77cb9b04
jmp 0x77cb917b
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 0x77cb9b5e
mov dword [ebp + 0x10], 0xc0000017
jmp 0x77cb9b16
mov esi, dword [ebp - 4]
sub esi, edi
sar esi, 1
jmp 0x77cb9a4c