Function at 0x4a6db4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, 0x51dd08
mov ebx, 0x51dd04
cmp byte [0x51dd2c], 0
je 0x4a6f9b
mov eax, dword [ebx]
mov dword [esp], eax
jmp 0x4a6def
add dword [ebx], 0x1000
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, 0x51dd00
mov edx, dword [ebx]
call fcn.004027b4
push esp
mov eax, dword [0x51dd00]
push eax
push 0
push 0
push 0x4a707c
push 0x80000004
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x4a6dd8
mov eax, dword [0x51dd00]
mov eax, dword [eax + 0x18]
add eax, dword [0x51dd00]
mov dword [esi], eax
mov eax, dword [0x51dd00]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jle 0x4a6e42
mov eax, dword [esi]
cmp dword [eax + 0xc], 0xee
je 0x4a6e42
mov eax, dword [esi]
mov eax, dword [eax]
add eax, dword [esi]
mov dword [esi], eax
dec ecx
jne 0x4a6e2c
mov eax, dword [esi]
cmp dword [eax + 0xc], 0xee
je 0x4a6e63
mov ecx, 0x4a7088
mov dl, 1
mov eax, dword [0x407924]
call fcn.0040c5e4
call fcn.00403b6c
cmp dword [0x51dd10], 0
jge 0x4a6e9a
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
mov dword [0x51dd10], eax
mov eax, dword [0x51dd10]
shl eax, 3
call fcn.00402774
mov dword [0x51dd14], eax
mov eax, dword [0x51dd10]
shl eax, 3
call fcn.00402774
mov dword [0x51dd18], eax
mov eax, dword [esi]
mov eax, dword [eax + 8]
add eax, dword [esi]
mov dword [0x51dd0c], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jle 0x4a6ecf
mov eax, dword [0x51dd0c]
cmp dword [eax + 4], 6
je 0x4a6ecf
mov eax, dword [0x51dd0c]
mov eax, dword [eax]
add eax, dword [0x51dd0c]
mov dword [0x51dd0c], eax
dec ecx
jne 0x4a6eaf
mov eax, dword [0x51dd0c]
cmp dword [eax + 4], 6
je 0x4a6ef0
mov ecx, 0x4a70c4
mov dl, 1
mov eax, dword [0x407924]
call fcn.0040c5e4
call fcn.00403b6c
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, dword [esi]
mov ecx, dword [0x51dd10]
dec ecx
test ecx, ecx
jl 0x4a6f57
inc ecx
xor ebx, ebx
mov esi, dword [eax]
add esi, eax
mov eax, dword [0x51dd18]
mov edx, dword [0x51dd14]
mov edi, dword [edx + ebx*8]
mov dword [eax + ebx*8], edi
mov edi, dword [edx + ebx*8 + 4]
mov dword [eax + ebx*8 + 4], edi
mov eax, dword [0x51dd0c]
mov eax, dword [eax + 0x24]
mov edi, esi
add eax, edi
mov edx, dword [eax]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov eax, dword [0x51dd14]
mov edx, dword [esp + 0x18]
mov dword [eax + ebx*8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ebx*8 + 4], edx
mov eax, dword [esi]
add eax, edi
inc ebx
dec ecx
jne 0x4a6f05
mov eax, dword [0x51dd1c]
mov dword [0x51dd24], eax
mov eax, dword [0x51dd20]
mov dword [0x51dd28], eax
lea eax, [esp + 4]
push eax
mov eax, dword [0x51dd00]
add eax, 0x24
push eax
call sub.kernel32.dll_SystemTimeToFileTime
mov eax, dword [esp + 4]
mov dword [0x51dd1c], eax
mov eax, dword [esp + 8]
mov dword [0x51dd20], eax
jmp 0x4a7074
cmp byte [0x51dd2d], 0
jne 0x4a704b
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push 0x4a7100
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x4a6fdd
mov ecx, 0x4a711c
mov dl, 1
mov eax, dword [0x407924]
call fcn.0040c5e4
call fcn.00403b6c
mov dword [esp + 0x10], 4
lea eax, [esp + 0x10]
push eax
push 0x51dd30
lea eax, [esp + 0x1c]
push eax
push 0
push 0x4a7144
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
push 0x51dd34
push 0x20019
push 0
push 0x4a7154
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x4a7044
mov ecx, 0x4a7170
mov dl, 1
mov eax, dword [0x407924]
call fcn.0040c5e4
call fcn.00403b6c
mov byte [0x51dd2d], 1
mov dword [esp + 0x10], 4
lea eax, [esp + 0x10]
push eax
push 0x51dd30
lea eax, [esp + 0x1c]
push eax
push 0
push 0x4a7144
mov eax, dword [0x51dd34]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
add esp, 0x20
pop edi
pop esi
pop ebx
ret