Function at 0x478d24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
cmp byte [0x4b493c], 0
je 0x478f76
mov eax, dword [0x4b4914]
mov dword [ebp - 4], eax
jmp 0x478d65
add dword [0x4b4914], 0x1000
mov eax, dword [0x4b4914]
mov dword [ebp - 4], eax
mov eax, 0x4b4910
mov edx, dword [0x4b4914]
call fcn.00402808
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4b4910]
push eax
push 0
push 0
push 0x479058
push 0x80000004
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x478d43
mov eax, dword [0x4b4910]
mov eax, dword [eax + 0x18]
add eax, dword [0x4b4910]
mov dword [0x4b4918], eax
mov eax, dword [0x4b4910]
mov eax, dword [eax + 0x1c]
test eax, eax
jle 0x478dda
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 1
mov eax, dword [0x4b4918]
cmp dword [eax + 0xc], 0xee
je 0x478dda
mov eax, dword [0x4b4918]
mov eax, dword [eax]
add eax, dword [0x4b4918]
mov dword [0x4b4918], eax
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x478db2
mov eax, dword [0x4b4918]
cmp dword [eax + 0xc], 0xee
je 0x478dfe
mov ecx, 0x479064
mov dl, 1
mov eax, dword [0x40833c]
call fcn.0040c648
call fcn.00403778
cmp dword [0x4b4920], 0
jge 0x478e38
mov eax, dword [0x4b4918]
mov eax, dword [eax + 0x28]
mov dword [0x4b4920], eax
mov eax, dword [0x4b4920]
shl eax, 3
call fcn.004027d8
mov dword [0x4b4924], eax
mov eax, dword [0x4b4920]
shl eax, 3
call fcn.004027d8
mov dword [0x4b4928], eax
mov eax, dword [0x4b4918]
mov eax, dword [eax + 8]
add eax, dword [0x4b4918]
mov dword [0x4b491c], eax
mov eax, dword [0x4b4918]
mov eax, dword [eax + 0x20]
test eax, eax
jle 0x478e86
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 1
mov eax, dword [0x4b491c]
cmp dword [eax + 4], 6
je 0x478e86
mov eax, dword [0x4b491c]
mov eax, dword [eax]
add eax, dword [0x4b491c]
mov dword [0x4b491c], eax
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x478e61
mov eax, dword [0x4b491c]
cmp dword [eax + 4], 6
je 0x478ea7
mov ecx, 0x4790a0
mov dl, 1
mov eax, dword [0x40833c]
call fcn.0040c648
call fcn.00403778
mov eax, dword [0x4b4918]
mov eax, dword [eax + 4]
add eax, dword [0x4b4918]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4b4920]
dec eax
test eax, eax
jl 0x478f35
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 [0x4b4928]
mov edx, dword [ebp - 8]
mov ecx, dword [0x4b4924]
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 [0x4b491c]
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 [0x4b4924]
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 0x478ecd
mov eax, dword [0x4b492c]
mov dword [0x4b4934], eax
mov eax, dword [0x4b4930]
mov dword [0x4b4938], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x4b4910]
add eax, 0x24
push eax
call sub.kernel32.dll_SystemTimeToFileTime
mov eax, dword [ebp - 0x18]
mov dword [0x4b492c], eax
mov eax, dword [ebp - 0x14]
mov dword [0x4b4930], eax
jmp 0x479050
cmp byte [0x4b493d], 0
jne 0x47902a
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push 0
push 0x4790dc
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x478fbc
mov ecx, 0x4790f8
mov dl, 1
mov eax, dword [0x40833c]
call fcn.0040c648
call fcn.00403778
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
push 0x4b4940
lea eax, [ebp - 0x28]
push eax
push 0
push 0x479120
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 0x4b4944
push 0x20019
push 0
push 0x479130
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x479023
mov ecx, 0x47914c
mov dl, 1
mov eax, dword [0x40833c]
call fcn.0040c648
call fcn.00403778
mov byte [0x4b493d], 1
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
push 0x4b4940
lea eax, [ebp - 0x28]
push eax
push 0
push 0x479120
mov eax, dword [0x4b4944]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret