Function at 0x77ca6d2b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
jmp 0x77c957e6
cmp eax, 0xc0000034
je 0x77c957d4
jmp 0x77c957e6
mov dword [ebp + 0x10], 0xc000000d
jmp 0x77c957e6
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x77c95700
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [edi + esi*2]
cmp eax, dword [ebp - 4]
ja 0x77cd1fc1
cmp esi, dword [ebp - 0x10]
jne 0x77c95738
push dword [ebp - 0x10]
push edi
push dword [ebp - 0x14]
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x77c94d86
lea edi, [edi + esi*2 + 2]
cmp edi, dword [ebp - 4]
jae 0x77c957e0
xor esi, esi
mov eax, edi
lea edx, [eax + 2]
jmp 0x77c95700
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x77ca6ded
lea eax, [ebp - 8]
push eax
xor esi, esi
push esi
push 0x20019
push 0x77c95784
push esi
push dword [ebp + 0xc]
call fcn.77cbeaa7
cmp eax, esi
mov dword [ebp + 0x10], eax
jge 0x77c957a4
jmp 0x77cd1f8c
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
push ebx
push 2
push 0x77c95808
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
cmp eax, esi
mov dword [ebp + 0x10], eax
jl 0x77c95810
cmp ebx, esi
je 0x77c95810
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 0x77c95747
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
test ebx, ebx
je 0x77ca6de3
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 0x77ca6de3
cmp eax, 0x80000005
je 0x77c95822
cmp eax, 0xc0000023
jne 0x77c94d91
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jbe 0x77c94d91
cmp ebx, esi
jne 0x77cd1f9c
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 0x77c957a4
jmp 0x77cd1fb5
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, 0x77ca6bb8
mov dword [ebp - 4], 0x77ca6cb0
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
je 0x77c94da1
mov ecx, dword [eax + 4]
cmp ecx, ebx
je 0x77c94da1
movzx eax, word [eax]
cmp ax, bx
je 0x77c94da1
cmp dword [ebp + 0x14], ebx
je 0x77cd1f74
movzx eax, ax
shr eax, 1
lea esi, [ecx + eax*2 - 2]
cmp esi, ecx
jb 0x77cd1f80
movzx edx, word [esi]
cmp dx, 0x5c
je 0x77cd1f80
cmp dx, 0x2f
je 0x77cd1f80
cmp dx, 0x2e
je 0x77ca6da7
dec esi
dec esi
jmp 0x77ca6d7e
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 0x77cd1f80
cmp byte [ebp + 0x10], bl
je 0x77c9575c
push 0x77ca6df8
push esi
call sub.ntdll.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
jne 0x77c9575c
mov eax, dword [ebp + 0x14]
and dword [ebp + 0x10], ebx
mov byte [eax], bl
cmp dword [ebp - 8], 0
jne 0x77c9574e
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov dword [ebp + 0x10], 0xc0000005
jmp 0x77ca6ded
mov dword [ebp + 0x10], 0xc0000225
jmp 0x77ca6ded
cmp eax, 0xc0000034
je 0x77c957d4
jmp 0x77ca6de3
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 0x77c95836
mov dword [ebp + 0x10], 0xc0000017
jmp 0x77c957e6
mov esi, dword [ebp - 4]
sub esi, edi
sar esi, 1
jmp 0x77c9571c