Function at 0x77cf46f3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push ebx
mov ebx, dword [sym.imp.ntdll.dll_wcsrchr]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x220], edi
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0x10]
push 0x5c
push dword [esi + 0x3c]
mov dword [ebp - 0x22c], edi
call ebx
cmp eax, edi
pop ecx
pop ecx
je 0x77cf4742
inc eax
inc eax
jmp 0x77cf4745
mov eax, dword [esi + 0x3c]
push eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.77cb70d1
lea eax, [ebp - 0x210]
push 0x2e
push eax
call ebx
add esp, 0x14
cmp eax, edi
je 0x77cf476c
mov word [eax], di
lea eax, [ebp - 0x210]
mov dword [ebp - 0x220], edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x77cf477b
mov esi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 0xd8]
mov dword [ebp - 0x218], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0x218]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call esi
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x21c], ebx
je 0x77cf47f8
mov eax, dword [ebp - 0x218]
push 0x77cf4958
shr eax, 1
push eax
push ebx
call fcn.77cb70d1
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x218]
shr eax, 1
push eax
push ebx
call fcn.77d1a7d9
add esp, 0x18
push ebx
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, 0x224
push ebx
push edi
push dword [eax + 0x18]
call esi
cmp dword [ebp - 0x220], edi
mov dword [ebp - 0x214], eax
je 0x77cf48cb
cmp eax, edi
je 0x77cf48cb
lea eax, [ebp - 0x224]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x244]
push eax
push 0x20019
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x244], 0x18
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x238], 0x40
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x77cf48cb
push 0x77cf4948
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov esi, dword [ebp - 0x214]
lea eax, [ebp - 0x218]
push eax
push ebx
push esi
push 2
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x77cf48bf
cmp dword [esi + 4], 4
jne 0x77cf48bf
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x22c], eax
push dword [ebp - 0x228]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 0x21c], edi
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
je 0x77cf4905
movzx eax, word [ebp - 0x222]
push eax
push edi
push dword [ebp - 0x21c]
call sub.ntdll.dll_memset
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add esp, 0xc
push dword [ebp - 0x21c]
push edi
push dword [eax + 0x18]
call esi
cmp dword [ebp - 0x214], edi
je 0x77cf4932
push ebx
push edi
push dword [ebp - 0x214]
call sub.ntdll.dll_memset
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add esp, 0xc
push dword [ebp - 0x214]
push edi
push dword [eax + 0x18]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x22c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret