Function at 0x4d1e78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4d21bd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x51416c], 0
je 0x4d20d9
mov eax, dword [0x514144]
mov dword [ebp - 4], eax
jmp 0x4d1ec8
add dword [0x514144], 0x1000
mov eax, dword [0x514144]
mov dword [ebp - 4], eax
mov eax, 0x514140
mov edx, dword [0x514144]
call fcn.00402bd0
lea eax, [ebp - 4]
push eax
mov eax, dword [0x514140]
push eax
push 0
push 0
push 0x4d21d0
push 0x80000004
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x4d1ea6
mov eax, dword [0x514140]
mov eax, dword [eax + 0x18]
add eax, dword [0x514140]
mov dword [0x514148], eax
mov eax, dword [0x514140]
mov eax, dword [eax + 0x1c]
test eax, eax
jle 0x4d1f3d
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 1
mov eax, dword [0x514148]
cmp dword [eax + 0xc], 0xee
je 0x4d1f3d
mov eax, dword [0x514148]
mov eax, dword [eax]
add eax, dword [0x514148]
mov dword [0x514148], eax
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x4d1f15
mov eax, dword [0x514148]
cmp dword [eax + 0xc], 0xee
je 0x4d1f61
mov ecx, 0x4d21dc
mov dl, 1
mov eax, dword [0x408158]
call fcn.0040d104
call fcn.004042e0
cmp dword [0x514150], 0
jge 0x4d1f9b
mov eax, dword [0x514148]
mov eax, dword [eax + 0x28]
mov dword [0x514150], eax
mov eax, dword [0x514150]
shl eax, 3
call fcn.00402b80
mov dword [0x514154], eax
mov eax, dword [0x514150]
shl eax, 3
call fcn.00402b80
mov dword [0x514158], eax
mov eax, dword [0x514148]
mov eax, dword [eax + 8]
add eax, dword [0x514148]
mov dword [0x51414c], eax
mov eax, dword [0x514148]
mov eax, dword [eax + 0x20]
test eax, eax
jle 0x4d1fe9
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 1
mov eax, dword [0x51414c]
cmp dword [eax + 4], 6
je 0x4d1fe9
mov eax, dword [0x51414c]
mov eax, dword [eax]
add eax, dword [0x51414c]
mov dword [0x51414c], eax
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x4d1fc4
mov eax, dword [0x51414c]
cmp dword [eax + 4], 6
je 0x4d200a
mov ecx, 0x4d2218
mov dl, 1
mov eax, dword [0x408158]
call fcn.0040d104
call fcn.004042e0
mov eax, dword [0x514148]
mov eax, dword [eax + 4]
add eax, dword [0x514148]
mov dword [ebp - 0x10], eax
mov eax, dword [0x514150]
dec eax
test eax, eax
jl 0x4d2098
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 [0x514158]
mov edx, dword [ebp - 8]
mov ecx, dword [0x514154]
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 [0x51414c]
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 [0x514154]
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 0x4d2030
mov eax, dword [0x51415c]
mov dword [0x514164], eax
mov eax, dword [0x514160]
mov dword [0x514168], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x514140]
add eax, 0x24
push eax
call sub.kernel32.dll_SystemTimeToFileTime
mov eax, dword [ebp - 0x18]
mov dword [0x51415c], eax
mov eax, dword [ebp - 0x14]
mov dword [0x514160], eax
jmp 0x4d21b3
cmp byte [0x51416d], 0
jne 0x4d218d
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push 0
push 0x4d2254
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4d211f
mov ecx, 0x4d2270
mov dl, 1
mov eax, dword [0x408158]
call fcn.0040d104
call fcn.004042e0
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
push 0x514170
lea eax, [ebp - 0x28]
push eax
push 0
push 0x4d2298
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 0x514174
push 0x20019
push 0
push 0x4d22a8
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4d2186
mov ecx, 0x4d22c4
mov dl, 1
mov eax, dword [0x408158]
call fcn.0040d104
call fcn.004042e0
mov byte [0x51416d], 1
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
push 0x514170
lea eax, [ebp - 0x28]
push eax
push 0
push 0x4d2298
mov eax, dword [0x514174]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d21c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret