Function at 0x521af0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b5610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
mov eax, dword [0x614cb0]
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 0x521b82
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push edx
call esi
test eax, eax
jne 0x521b82
mov esi, dword [esp + 0x118]
push str.Unknown
mov ecx, esi
call fcn.00575b56
mov dword [esp + 0x14], ebx
jmp 0x521d4a
mov eax, dword [esp + 0x2c]
sub eax, 0
je 0x521d25
dec eax
je 0x521d04
dec eax
jne 0x521d33
cmp dword [esp + 0x20], 4
ja 0x521bb2
push str.Microsoft_Windows_NT
lea ecx, [esp + 0x10]
call fcn.00575ec4
mov eax, dword [esp + 0x20]
mov esi, 5
cmp eax, esi
jne 0x521bef
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x521bdb
push str.Microsoft_Windows_2000
lea ecx, [esp + 0x10]
call fcn.00575ec4
cmp dword [esp + 0x20], esi
jne 0x521bef
cmp dword [esp + 0x24], ebx
jne 0x521bef
push str.Microsoft_Windows_XP
lea ecx, [esp + 0x10]
call fcn.00575ec4
test edi, edi
je 0x521c1a
cmp byte [esp + 0xb6], bl
jne 0x521c0a
push str.Pro
lea ecx, [esp + 0x10]
call fcn.00575ec4
cmp byte [esp + 0xb6], 3
jne 0x521ca6
jmp 0x521c98
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 0x521c85
push str.Workstation
lea ecx, [esp + 0x10]
call fcn.00575ec4
lea eax, [esp + 0xb8]
push eax
push str.SERVERNT
call esi
test eax, eax
jne 0x521ca6
push 0x613190
lea ecx, [esp + 0x10]
call fcn.00575ec4
mov ecx, dword [0x614cb0]
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.0056d732
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.00575f00
lea ecx, [esp + 0x10]
mov byte [esp + 0x110], bl
call fcn.00575ae8
jmp 0x521d33
mov eax, dword [esp + 0x20]
cmp eax, 4
ja 0x521d1e
jne 0x521d17
mov eax, dword [esp + 0x24]
test eax, eax
ja 0x521d1e
push str.Microsoft_Windows_95
jmp 0x521d2a
push str.Microsoft_Windows_98
jmp 0x521d2a
push str.Microsoft_Win32s
lea ecx, [esp + 0x10]
call fcn.00575ec4
mov esi, dword [esp + 0x118]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0057585d
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x110], 0
call fcn.00575ae8
mov ecx, dword [esp + 0x108]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x108
ret