Function at 0x77ca4cf1
Capabilities:
Query or enumerate registry key

Disassembly:
cmp dword [ebp - 0xc], 0xffffffff
je 0x77ca4d7d
push dword [ebp - 0xc]
call fcn.77ca11ed
jmp 0x77ca4d7d
push 0xd
pop esi
jmp 0x77ca45cd
push 0xe
pop esi
jmp 0x77ca4590
jbe 0x77cec0e0
push edi
call fcn.77ca3643
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 [0x77d26108]
push ebx
call fcn.77ca1178
cmp eax, ebx
jne 0x77cec0f0
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x77ca1378
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 4
call fcn.77ca9780
mov esi, eax
cmp esi, ebx
jne 0x77ca45cd
push 4
pop eax
cmp dword [ebp - 8], eax
jne 0x77ca362e
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 0x77ca327c
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call fcn.77ca9780
mov esi, eax
cmp esi, ebx
jne 0x77ca45cd
cmp dword [ebp - 8], 4
jne 0x77ca362e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
mov dword [ebp - 0x14], eax
ja 0x77ca44f8
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x18]
push eax
push edi
push dword [0x77d26110]
push dword [ebp - 0xc]
call fcn.77ca1178
cmp eax, ebx
jne 0x77cec114
mov eax, 0x418
push eax
push 0x57d
push 0x77cceba4
mov dword [ebp - 0x10], eax
call fcn.77ca96e5
mov edi, eax
cmp edi, ebx
je 0x77ca3636
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 0x77ca4573
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x10]
push eax
push dword [ebp - 0x18]
call fcn.77ca3e68
jmp 0x77ca4538
cmp eax, 0x8000001a
jne 0x77cec13a
xor esi, esi
push edi
push 0x590
push 0x77cceba4
call fcn.77ca972d
push dword [ebp - 0x18]
call fcn.77ca11ed
cmp esi, ebx
jne 0x77ca45cd
cmp byte [ebp - 1], bl
mov eax, dword [ebp - 0x2c]
mov dword [0x77d2a720], eax
mov eax, dword [ebp - 0x28]
mov dword [0x77d2a724], eax
je 0x77ca45cd
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
mov dword [ebp - 8], ecx
ja 0x77ca45c1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jne 0x77cec148
cmp byte [ebp - 1], 1
pop edi
jne 0x77ca4d5f
call fcn.77ca45e7
jmp 0x77ca4d5f
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [0x77d260a0]
xor ebx, ebx
push 0x546
push 0x77cceba4
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.77ccebda
mov esi, eax
cmp esi, ebx
jne 0x77ca4d7f
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [0x77d2b290]
add ecx, dword [0x77d2a720]
mov eax, dword [0x77d2b294]
adc eax, dword [0x77d2a724]
mov edx, dword [ebp - 0x28]
cmp edx, eax
jae 0x77ca4443
push dword [0x77d260a0]
push 0x5b0
push 0x77cceba4
call fcn.77ccec01
cmp dword [ebp - 0xc], ebx
jne 0x77ca3617
mov eax, esi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
jae 0x77ca4449
jmp 0x77ca4d5f
lea eax, [ebp - 0xc]
push eax
push 0x20019
push dword [0x77d26108]
push ebx
call fcn.77ca1178
mov esi, eax
cmp esi, ebx
je 0x77ca4476
jmp 0x77ca45cd
lea eax, [ebp - 0x18]
push eax
push 0x20019
push dword [0x77d26110]
push dword [ebp - 0xc]
call fcn.77ca1178
mov esi, eax
cmp esi, ebx
je 0x77ca4513
jmp 0x77ca45cd
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
jmp 0x77ca4580
push 4
pop edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push 0x77ca1378
push dword [ebp - 0xc]
call sym.ADVAPI32.dll_RegSetValueExW
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x77ca45cd
inc dword [ebp - 0x14]
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push 0x77ca327c
push dword [ebp - 0xc]
call sym.ADVAPI32.dll_RegSetValueExW
mov dword [ebp - 0x10], eax
jmp 0x77ca45cd