Function at 0x4c9910
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x608326
mov eax, dword fs:[0]
push eax
mov eax, 0x1090
call fcn.005e00d0
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x108c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6aae14]
xor eax, esp
push eax
lea eax, [esp + 0x10a4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10b8]
mov ecx, dword [esp + 0x10bc]
mov ebp, dword [esp + 0x10b4]
xor ebx, ebx
push 0x7ff
lea edx, [esp + 0xa5]
push ebx
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0xac], bl
call fcn.005dfd60
push 0x7ff
lea eax, [esp + 0x8b1]
push ebx
push eax
mov byte [esp + 0x8b8], bl
call fcn.005dfd60
mov eax, 0xf
add esp, 0x18
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x10ac], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov edx, dword [0x642640]
mov eax, dword [0x642644]
mov ecx, 0xb
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x64263c]
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x10ac], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
mov esi, 0x101
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x4c9a22
shr eax, 8
test al, al
jne 0x4c9a22
mov esi, 1
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
lea edx, [esp + 0x7c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4c9a7f
mov esi, 0x10
cmp dword [esp + 0x44], esi
jb 0x4c9a55
mov eax, dword [esp + 0x30]
push eax
call fcn.005e0d9a
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
cmp dword [esp + 0x60], esi
jb 0x4c9a78
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.005e0d9a
add esp, 4
xor al, al
jmp 0x4c9cb3
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.DigitalProductId
mov edi, 0x800
push edx
mov dword [esp + 0x38], 3
mov dword [esp + 0x34], edi
call esi
test eax, eax
je 0x4c9b0a
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x10
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x44], esi
jb 0x4c9ae0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.005e0d9a
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
cmp dword [esp + 0x60], esi
jb 0x4c9a78
mov edx, dword [esp + 0x4c]
push edx
call fcn.005e0d9a
add esp, 4
xor al, al
jmp 0x4c9cb3
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x8a4]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push ebx
lea eax, [esp + 0x74]
push eax
push ecx
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], edi
call esi
test eax, eax
je 0x4c9b4d
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
jmp 0x4c9a3d
lea eax, [esp + 0x8a0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c9b57
sub eax, edx
push eax
lea edx, [esp + 0x8a4]
push edx
lea ecx, [esp + 0x34]
call fcn.004016b0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0xa4]
push ecx
call fcn.004c82d0
add esp, 8
cmp dword [esp + 0x60], 0x10
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x4c]
jae 0x4c9b9a
lea eax, [esp + 0x4c]
push str.BBBBB_BBBBB_BBBBB_BBBBB_BBBBB
push eax
call fcn.005f095a
add esp, 8
test eax, eax
jne 0x4c9c40
push 0x60c81c
lea ecx, [esp + 0x4c]
call fcn.00401790
push edi
lea edx, [esp + 0xa4]
push ebx
push edx
mov dword [esp + 0x2c], 3
mov dword [esp + 0x28], edi
call fcn.005dfd60
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push str.DigitalProductId4
push eax
call esi
test eax, eax
je 0x4c9c27
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], ebx
call fcn.005410f0
lea ecx, [esp + 0x48]
call fcn.005410f0
xor al, al
jmp 0x4c9cb3
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0xa4]
push eax
call fcn.004c82d0
add esp, 8
mov byte [esp + 0x1b], al
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x20], ebx
call fcn.00401280
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x50]
push eax
call fcn.00401280
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call fcn.00401280
push 2
push 0x63f820
mov ecx, ebp
call fcn.004044b0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x50]
push edx
mov ecx, ebp
call fcn.004043b0
lea ecx, [esp + 0x2c]
call fcn.005410f0
lea ecx, [esp + 0x48]
call fcn.005410f0
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x10a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x109c
ret