Function at 0x470d9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
cmp byte [0x486bf0], 0
je 0x470fee
mov eax, dword [0x486bc8]
mov dword [ebp - 4], eax
jmp 0x470ddd
add dword [0x486bc8], 0x1000
mov eax, dword [0x486bc8]
mov dword [ebp - 4], eax
mov eax, 0x486bc4
mov edx, dword [0x486bc8]
call fcn.004027b8
lea eax, [ebp - 4]
push eax
mov eax, dword [0x486bc4]
push eax
push 0
push 0
push 0x4710d0
push 0x80000004
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x470dbb
mov eax, dword [0x486bc4]
mov eax, dword [eax + 0x18]
add eax, dword [0x486bc4]
mov dword [0x486bcc], eax
mov eax, dword [0x486bc4]
mov eax, dword [eax + 0x1c]
test eax, eax
jle 0x470e52
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 1
mov eax, dword [0x486bcc]
cmp dword [eax + 0xc], 0xee
je 0x470e52
mov eax, dword [0x486bcc]
mov eax, dword [eax]
add eax, dword [0x486bcc]
mov dword [0x486bcc], eax
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x470e2a
mov eax, dword [0x486bcc]
cmp dword [eax + 0xc], 0xee
je 0x470e76
mov ecx, 0x4710dc
mov dl, 1
mov eax, dword [0x407f60]
call fcn.0040bcb8
call fcn.004036b8
cmp dword [0x486bd4], 0
jge 0x470eb0
mov eax, dword [0x486bcc]
mov eax, dword [eax + 0x28]
mov dword [0x486bd4], eax
mov eax, dword [0x486bd4]
shl eax, 3
call fcn.00402788
mov dword [0x486bd8], eax
mov eax, dword [0x486bd4]
shl eax, 3
call fcn.00402788
mov dword [0x486bdc], eax
mov eax, dword [0x486bcc]
mov eax, dword [eax + 8]
add eax, dword [0x486bcc]
mov dword [0x486bd0], eax
mov eax, dword [0x486bcc]
mov eax, dword [eax + 0x20]
test eax, eax
jle 0x470efe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 1
mov eax, dword [0x486bd0]
cmp dword [eax + 4], 6
je 0x470efe
mov eax, dword [0x486bd0]
mov eax, dword [eax]
add eax, dword [0x486bd0]
mov dword [0x486bd0], eax
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x470ed9
mov eax, dword [0x486bd0]
cmp dword [eax + 4], 6
je 0x470f1f
mov ecx, 0x471118
mov dl, 1
mov eax, dword [0x407f60]
call fcn.0040bcb8
call fcn.004036b8
mov eax, dword [0x486bcc]
mov eax, dword [eax + 4]
add eax, dword [0x486bcc]
mov dword [ebp - 0x10], eax
mov eax, dword [0x486bd4]
dec eax
test eax, eax
jl 0x470fad
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 [0x486bdc]
mov edx, dword [ebp - 8]
mov ecx, dword [0x486bd8]
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 [0x486bd0]
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 [0x486bd8]
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 0x470f45
mov eax, dword [0x486be0]
mov dword [0x486be8], eax
mov eax, dword [0x486be4]
mov dword [0x486bec], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x486bc4]
add eax, 0x24
push eax
call sub.kernel32.dll_SystemTimeToFileTime
mov eax, dword [ebp - 0x18]
mov dword [0x486be0], eax
mov eax, dword [ebp - 0x14]
mov dword [0x486be4], eax
jmp 0x4710c8
cmp byte [0x486bf1], 0
jne 0x4710a2
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push 0
push 0x471154
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x471034
mov ecx, 0x471170
mov dl, 1
mov eax, dword [0x407f60]
call fcn.0040bcb8
call fcn.004036b8
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
push 0x486bf4
lea eax, [ebp - 0x28]
push eax
push 0
push 0x471198
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 0x486bf8
push 0x20019
push 0
push 0x4711a8
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x47109b
mov ecx, 0x4711c4
mov dl, 1
mov eax, dword [0x407f60]
call fcn.0040bcb8
call fcn.004036b8
mov byte [0x486bf1], 1
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
push 0x486bf4
lea eax, [ebp - 0x28]
push eax
push 0
push 0x471198
mov eax, dword [0x486bf8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret