Function at 0x4a63d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
cmp byte [0x4b7a54], 0
je 0x4a662a
mov eax, dword [0x4b7a2c]
mov dword [ebp - 4], eax
jmp 0x4a6419
add dword [0x4b7a2c], 0x1000
mov eax, dword [0x4b7a2c]
mov dword [ebp - 4], eax
mov eax, 0x4b7a28
mov edx, dword [0x4b7a2c]
call fcn.004027a4
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4b7a28]
push eax
push 0
push 0
push 0x4a670c
push 0x80000004
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x4a63f7
mov eax, dword [0x4b7a28]
mov eax, dword [eax + 0x18]
add eax, dword [0x4b7a28]
mov dword [0x4b7a30], eax
mov eax, dword [0x4b7a28]
mov eax, dword [eax + 0x1c]
test eax, eax
jle 0x4a648e
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 1
mov eax, dword [0x4b7a30]
cmp dword [eax + 0xc], 0xee
je 0x4a648e
mov eax, dword [0x4b7a30]
mov eax, dword [eax]
add eax, dword [0x4b7a30]
mov dword [0x4b7a30], eax
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x4a6466
mov eax, dword [0x4b7a30]
cmp dword [eax + 0xc], 0xee
je 0x4a64b2
mov ecx, 0x4a6718
mov dl, 1
mov eax, dword [0x407b78]
call fcn.0040b0ec
call fcn.004036d0
cmp dword [0x4b7a38], 0
jge 0x4a64ec
mov eax, dword [0x4b7a30]
mov eax, dword [eax + 0x28]
mov dword [0x4b7a38], eax
mov eax, dword [0x4b7a38]
shl eax, 3
call fcn.00402774
mov dword [0x4b7a3c], eax
mov eax, dword [0x4b7a38]
shl eax, 3
call fcn.00402774
mov dword [0x4b7a40], eax
mov eax, dword [0x4b7a30]
mov eax, dword [eax + 8]
add eax, dword [0x4b7a30]
mov dword [0x4b7a34], eax
mov eax, dword [0x4b7a30]
mov eax, dword [eax + 0x20]
test eax, eax
jle 0x4a653a
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 1
mov eax, dword [0x4b7a34]
cmp dword [eax + 4], 6
je 0x4a653a
mov eax, dword [0x4b7a34]
mov eax, dword [eax]
add eax, dword [0x4b7a34]
mov dword [0x4b7a34], eax
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x4a6515
mov eax, dword [0x4b7a34]
cmp dword [eax + 4], 6
je 0x4a655b
mov ecx, 0x4a6754
mov dl, 1
mov eax, dword [0x407b78]
call fcn.0040b0ec
call fcn.004036d0
mov eax, dword [0x4b7a30]
mov eax, dword [eax + 4]
add eax, dword [0x4b7a30]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4b7a38]
dec eax
test eax, eax
jl 0x4a65e9
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4b7a40]
mov edx, dword [ebp - 8]
mov ecx, dword [0x4b7a3c]
mov ebx, dword [ebp - 8]
mov esi, dword [ecx + ebx*8]
mov dword [eax + edx*8], esi
mov esi, dword [ecx + ebx*8 + 4]
mov dword [eax + edx*8 + 4], esi
mov eax, dword [0x4b7a34]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov dword [ebp - 0x38], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x34], edx
mov eax, dword [0x4b7a3c]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x38]
mov dword [eax + edx*8], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + edx*8 + 4], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x4a6581
mov eax, dword [0x4b7a44]
mov dword [0x4b7a4c], eax
mov eax, dword [0x4b7a48]
mov dword [0x4b7a50], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x4b7a28]
add eax, 0x24
push eax
call sub.kernel32.dll_SystemTimeToFileTime
mov eax, dword [ebp - 0x18]
mov dword [0x4b7a44], eax
mov eax, dword [ebp - 0x14]
mov dword [0x4b7a48], eax
jmp 0x4a6704
cmp byte [0x4b7a55], 0
jne 0x4a66de
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push 0
push 0x4a6790
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4a6670
mov ecx, 0x4a67ac
mov dl, 1
mov eax, dword [0x407b78]
call fcn.0040b0ec
call fcn.004036d0
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
push 0x4b7a58
lea eax, [ebp - 0x28]
push eax
push 0
push 0x4a67d4
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
push 0x4b7a5c
push 0x20019
push 0
push 0x4a67e4
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4a66d7
mov ecx, 0x4a6800
mov dl, 1
mov eax, dword [0x407b78]
call fcn.0040b0ec
call fcn.004036d0
mov byte [0x4b7a55], 1
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
push 0x4b7a58
lea eax, [ebp - 0x28]
push eax
push 0
push 0x4a67d4
mov eax, dword [0x4b7a5c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret