Function at 0x77c9f7b5
Capabilities:
Query or enumerate registry key

Disassembly:
cmp dword [ebp - 0xc], 0xffffffff
je 0x77c9f841
push dword [ebp - 0xc]
call fcn.77c98bb1
jmp 0x77c9f841
push 0xd
pop esi
jmp 0x77c9c19b
push 0xe
pop esi
jmp 0x77c9c15e
jbe 0x77cdd880
push edi
call fcn.77c9b219
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
lea eax, [ebp - 0xc]
push eax
mov edi, 0x2001f
push edi
push dword [0x77d1a108]
push ebx
call fcn.77c98b3c
cmp eax, ebx
jne 0x77cdd890
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x77c98d38
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 4
call fcn.77c9e52f
mov esi, eax
cmp esi, ebx
jne 0x77c9c19b
push 4
pop eax
cmp dword [ebp - 8], eax
jne 0x77c9b0fe
push 1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x77c9ac4c
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call fcn.77c9e52f
mov esi, eax
cmp esi, ebx
jne 0x77c9c19b
cmp dword [ebp - 8], 4
jne 0x77c9b0fe
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
mov dword [ebp - 0x14], eax
ja 0x77c9c0c6
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x18]
push eax
push edi
push dword [0x77d1a110]
push dword [ebp - 0xc]
call fcn.77c98b3c
cmp eax, ebx
jne 0x77cdd8b4
mov eax, 0x418
push eax
push 0x5b8
push 0x77cb4db8
mov dword [ebp - 0x10], eax
call fcn.77c9e393
mov edi, eax
cmp edi, ebx
je 0x77c9b106
mov dword [ebp - 8], ebx
push dword [ebp - 0x10]
push ebx
push edi
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push edi
push ebx
push dword [ebp - 8]
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtEnumerateKey]
inc dword [ebp - 8]
cmp eax, ebx
jl 0x77c9c141
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x10]
push eax
push dword [ebp - 0x18]
call fcn.77c9ba3f
jmp 0x77c9c106
cmp eax, 0x8000001a
jne 0x77cdd8da
xor esi, esi
push edi
push 0x5cb
push 0x77cb4db8
call fcn.77c9e3db
push dword [ebp - 0x18]
call fcn.77c98bb1
cmp esi, ebx
jne 0x77c9c19b
cmp byte [ebp - 1], bl
mov eax, dword [ebp - 0x2c]
mov dword [0x77d1e6d8], eax
mov eax, dword [ebp - 0x28]
mov dword [0x77d1e6dc], eax
je 0x77c9c19b
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
mov dword [ebp - 8], ecx
ja 0x77c9c18f
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jne 0x77cdd8e8
cmp byte [ebp - 1], 1
pop edi
jne 0x77c9f823
call fcn.77c9c1b5
jmp 0x77c9f823
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [0x77d1a0a0]
xor ebx, ebx
push 0x581
push 0x77cb4db8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.77cb4dee
mov esi, eax
cmp esi, ebx
jne 0x77c9f843
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [0x77d1f250]
add ecx, dword [0x77d1e6d8]
mov eax, dword [0x77d1f254]
adc eax, dword [0x77d1e6dc]
mov edx, dword [ebp - 0x28]
cmp edx, eax
jae 0x77c9c011
push dword [0x77d1a0a0]
push 0x5eb
push 0x77cb4db8
call fcn.77cb4e15
cmp dword [ebp - 0xc], ebx
jne 0x77c9b0e7
mov eax, esi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
jae 0x77c9c017
jmp 0x77c9f823
lea eax, [ebp - 0xc]
push eax
push 0x20019
push dword [0x77d1a108]
push ebx
call fcn.77c98b3c
mov esi, eax
cmp esi, ebx
je 0x77c9c044
jmp 0x77c9c19b
lea eax, [ebp - 0x18]
push eax
push 0x20019
push dword [0x77d1a110]
push dword [ebp - 0xc]
call fcn.77c98b3c
mov esi, eax
cmp esi, ebx
je 0x77c9c0e1
jmp 0x77c9c19b
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
jmp 0x77c9c14e
push 4
pop edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push 0x77c98d38
push dword [ebp - 0xc]
call sym.ADVAPI32.dll_RegSetValueExW
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x77c9c19b
inc dword [ebp - 0x14]
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push 0x77c9ac4c
push dword [ebp - 0xc]
call sym.ADVAPI32.dll_RegSetValueExW
mov dword [ebp - 0x10], eax
jmp 0x77c9c19b