Function at 0x4cce80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53baa1
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x5857cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x490]
push eax
push 0x101
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov dword [ebp - 0x48c], ebx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x490], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cd05d
mov eax, dword [ebp - 0x490]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x494]
push ecx
lea edx, [ebp - 0x450]
push edx
push ebx
push ebx
push str.DigitalProductId
push eax
mov dword [ebp - 0x494], 0x400
call edi
test eax, eax
jne 0x4cd050
mov eax, dword [ebp - 0x490]
lea ecx, [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x50]
push edx
push ebx
push ebx
push str.InstallDate
push eax
mov dword [ebp - 0x48c], 0x40
call edi
test eax, eax
jne 0x4cd050
mov ecx, dword [ebp - 0x48c]
mov eax, dword [ebp - 0x494]
push ecx
lea eax, [ebp + eax - 0x450]
push eax
lea edx, [ebp - 0x450]
push edx
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x4a4], ebx
mov dword [ebp - 0x4a0], ebx
mov dword [ebp - 0x49c], ebx
call fcn.004ccd70
mov ecx, dword [ebp - 0x48c]
mov eax, dword [ebp - 0x48c]
push ecx
lea eax, [ebp + eax - 0x50]
push eax
mov eax, dword [ebp - 0x4a0]
lea edx, [ebp - 0x50]
push edx
push eax
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 4], ebx
call fcn.004cca70
lea ecx, [ebp - 0x4a4]
push ecx
lea edx, [ebp - 0x46c]
push edx
call fcn.004d33d0
add esp, 8
mov eax, dword [ebp - 0x490]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x458]
mov edx, dword [ebp - 0x46c]
mov ecx, edx
cmp eax, 0x10
jae 0x4ccfeb
lea ecx, [ebp - 0x46c]
add ecx, dword [ebp - 0x45c]
cmp eax, 0x10
mov eax, edx
jae 0x4ccffe
lea eax, [ebp - 0x46c]
mov edx, dword [ebp - 0x48c]
push edx
push ecx
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.004ccde0
cmp dword [ebp - 0x458], 0x10
jb 0x4cd02e
mov eax, dword [ebp - 0x46c]
push eax
call fcn.0052142e
add esp, 4
mov eax, dword [ebp - 0x4a4]
mov dword [ebp - 0x458], 0xf
mov dword [ebp - 0x45c], ebx
mov byte [ebp - 0x46c], bl
cmp eax, ebx
je 0x4cd0cd
jmp 0x4cd0c4
mov ecx, dword [ebp - 0x490]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x488]
push edx
call fcn.004cce50
add esp, 4
mov edx, dword [ebp - 0x474]
mov ecx, dword [ebp - 0x488]
mov dword [ebp - 4], 2
mov eax, ecx
cmp edx, 0x10
jae 0x4cd08c
lea eax, [ebp - 0x488]
add eax, dword [ebp - 0x478]
cmp edx, 0x10
jae 0x4cd09d
lea ecx, [ebp - 0x488]
mov edx, dword [ebp - 0x48c]
push edx
push eax
push ecx
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.004ccde0
cmp dword [ebp - 0x474], 0x10
jb 0x4cd0cd
mov eax, dword [ebp - 0x488]
push eax
call fcn.0052142e
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521458
mov esp, ebp
pop ebp
ret 4