Function at 0x5047d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5cd250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
mov eax, dword [0x639698]
push ebx
push esi
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov ebx, 1
push ecx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x20], 0x9c
call esi
mov edi, eax
test edi, edi
jne 0x504862
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push edx
call esi
test eax, eax
jne 0x504862
mov esi, dword [esp + 0x118]
push str.Unknown
mov ecx, esi
call fcn.00593749
mov dword [esp + 0x14], ebx
jmp 0x504a2a
mov eax, dword [esp + 0x2c]
sub eax, 0
je 0x504a05
dec eax
je 0x5049e4
dec eax
jne 0x504a13
cmp dword [esp + 0x20], 4
ja 0x504892
push str.Microsoft_Windows_NT
lea ecx, [esp + 0x10]
call fcn.00593ab7
mov eax, dword [esp + 0x20]
mov esi, 5
cmp eax, esi
jne 0x5048cf
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5048bb
push str.Microsoft_Windows_2000
lea ecx, [esp + 0x10]
call fcn.00593ab7
cmp dword [esp + 0x20], esi
jne 0x5048cf
cmp dword [esp + 0x24], ebx
jne 0x5048cf
push str.Microsoft_Windows_XP
lea ecx, [esp + 0x10]
call fcn.00593ab7
test edi, edi
je 0x5048fa
cmp byte [esp + 0xb6], bl
jne 0x5048ea
push str.Pro
lea ecx, [esp + 0x10]
call fcn.00593ab7
cmp byte [esp + 0xb6], 3
jne 0x504986
jmp 0x504978
lea eax, [esp + 0x10]
push eax
push ebx
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
lea edx, [esp + 0xb8]
push ecx
push edx
push 0
push 0
push str.ProductType
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0xb8]
push edx
push str.WINNT
call esi
test eax, eax
jne 0x504965
push str.Workstation
lea ecx, [esp + 0x10]
call fcn.00593ab7
lea eax, [esp + 0xb8]
push eax
push str.SERVERNT
call esi
test eax, eax
jne 0x504986
push 0x63674c
lea ecx, [esp + 0x10]
call fcn.00593ab7
mov ecx, dword [0x639698]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
and edx, 0xffff
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
lea eax, [esp + 0x20]
push str.ver__d._d__s__build__d_
push eax
mov byte [esp + 0x128], 2
call fcn.0058aded
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.00593af3
lea ecx, [esp + 0x10]
mov byte [esp + 0x110], bl
call fcn.005936db
jmp 0x504a13
mov eax, dword [esp + 0x20]
cmp eax, 4
ja 0x5049fe
jne 0x5049f7
mov eax, dword [esp + 0x24]
test eax, eax
ja 0x5049fe
push str.Microsoft_Windows_95
jmp 0x504a0a
push str.Microsoft_Windows_98
jmp 0x504a0a
push str.Microsoft_Win32s
lea ecx, [esp + 0x10]
call fcn.00593ab7
mov esi, dword [esp + 0x118]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00593450
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x110], 0
call fcn.005936db
mov ecx, dword [esp + 0x108]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x108
ret