Function at 0x523fd0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5a8fcf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x394
push ebx
push ebp
push esi
mov esi, dword [sym.imp.kernel32.dll_GetVersionExA]
mov ebp, ecx
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x1e0]
xor ebx, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1e0]
mov dword [esp + 0x6c], ebx
push eax
mov dword [esp + 0x1e4], 0x9c
call esi
cmp eax, ebx
jne 0x524043
lea ecx, [esp + 0x1e0]
mov dword [esp + 0x1e0], 0x94
push ecx
call esi
test eax, eax
je 0x5252f8
mov eax, dword [esp + 0x1f0]
sub eax, ebx
je 0x524863
dec eax
je 0x5247a6
dec eax
jne 0x524877
cmp dword [esp + 0x1e4], 4
ja 0x524077
push str.Microsoft_Windows_NT
lea ecx, [ebp + 8]
call fcn.00597a5a
mov eax, dword [esp + 0x1e4]
mov edi, 9
cmp eax, 5
mov esi, 7
jne 0x5240fe
cmp dword [esp + 0x1e8], ebx
jne 0x5240b6
push str.Microsoft_Windows_2000
lea ecx, [ebp + 8]
call fcn.00597a5a
mov eax, dword [esp + 0x1e4]
mov dword [ebp + 4], 6
cmp eax, 5
jne 0x5240fe
cmp dword [esp + 0x1e8], 1
jne 0x5240dc
push str.Microsoft_Windows_XP
lea ecx, [ebp + 8]
call fcn.00597a5a
mov eax, dword [esp + 0x1e4]
mov dword [ebp + 4], esi
cmp eax, 5
jne 0x5240fe
cmp dword [esp + 0x1e8], 2
jne 0x52447b
push str.Microsoft_Windows_2003
lea ecx, [ebp + 8]
call fcn.00597a5a
mov dword [ebp + 4], 8
cmp dword [esp + 0x1e4], 6
jne 0x5241ba
mov eax, dword [esp + 0x1e8]
cmp eax, ebx
jne 0x524163
cmp byte [esp + 0x27a], 1
jne 0x524140
push str.Windows_Vista
lea ecx, [ebp + 8]
call fcn.00597a5a
push str.Windows_Vista
lea ecx, [ebp + 0x10]
call fcn.00597807
mov dword [ebp + 4], edi
jmp 0x5241ba
push str.Windows_Server_2008
lea ecx, [ebp + 8]
call fcn.00597a5a
push str.Windows_Server_2008
lea ecx, [ebp + 0x10]
call fcn.00597807
mov dword [ebp + 4], 0xa
jmp 0x5241ba
cmp eax, 1
jne 0x52447b
cmp byte [esp + 0x27a], 1
jne 0x524199
push str.Windows_7
lea ecx, [ebp + 8]
call fcn.00597a5a
push str.Windows_7
lea ecx, [ebp + 0x10]
call fcn.00597807
mov dword [ebp + 4], 0xc
jmp 0x5241ba
push str.Windows_Server_2008_R2
lea ecx, [ebp + 8]
call fcn.00597a5a
push str.Windows_Server_2008_R2
lea ecx, [ebp + 0x10]
call fcn.00597807
mov dword [ebp + 4], 0xb
cmp dword [esp + 0x1e4], 4
ja 0x52447b
mov dword [esp + 0x15c], 0xb884e4
mov dword [esp + 0x1d0], ebx
mov dword [esp + 0x1ac], 0xb884e0
mov dword [esp + 0x6c], 1
mov edx, dword [0xb884e8]
mov dword [esp + 0x3ac], ebx
mov dword [esp + edx + 0x15c], 0xb884dc
mov eax, dword [esp + 0x15c]
lea edx, [esp + 0x160]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x184], edx
mov dword [esp + ecx + 0x188], ebx
mov byte [esp + ecx + 0x18c], 0x20
lea esi, [esp + ecx + 0x15c]
mov ecx, esi
call fcn.005932d3
cmp dword [esi + 0x28], ebx
jne 0x52424f
mov eax, dword [esi + 4]
push ebx
or al, 4
mov ecx, esi
or al, 4
push eax
call fcn.00592f7c
lea eax, [esp + 0x160]
mov dword [esp + 0x3ac], 2
mov dword [esp + 0x14], eax
call fcn.005937fe
lea ecx, [esp + 0x68]
mov dword [esp + 0x194], eax
call fcn.0059369b
mov ecx, dword [0xc533b4]
call fcn.00525330
lea ecx, [esp + 0x68]
call fcn.00593737
lea ecx, [esp + 0x160]
mov byte [esp + 0x3ac], 3
mov dword [esp + 0x160], 0xb884a8
call fcn.00525fd0
push 4
mov edi, 0xb88474
push ebx
push ebx
lea ecx, [esp + 0x16c]
mov byte [esp + 0x3b8], 4
mov dword [esp + 0x16c], edi
call fcn.00525ef0
mov ecx, dword [esp + 0x15c]
mov esi, 0xb88470
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x15c], esi
mov eax, dword [esp + 0x1ec]
mov edx, dword [esp + 0x1e8]
and eax, 0xffff
push 0xbc4150
push eax
mov eax, dword [esp + 0x1ec]
lea ecx, [esp + 0x1fc]
push str.__Build
push ecx
push 0xbc4140
push edx
push 0xbc413c
push eax
lea ecx, [esp + 0x17c]
push str.version
push ecx
mov dword [esp + 0x3d4], 5
call fcn.00526030
add esp, 8
mov ecx, eax
call fcn.005253f0
push eax
call fcn.00526030
add esp, 8
mov ecx, eax
call fcn.005253f0
push eax
call fcn.00526030
add esp, 8
push eax
call fcn.00526030
add esp, 8
push eax
call fcn.00526030
add esp, 8
mov ecx, eax
call fcn.005253f0
push eax
call fcn.00526030
add esp, 8
mov ecx, eax
push ebx
call fcn.005256f0
mov eax, dword [esp + 0x1e4]
cmp eax, 4
jne 0x52439f
mov dword [ebp + 4], 5
jmp 0x5243b5
cmp eax, 3
jne 0x5243b5
cmp dword [esp + 0x1e8], 0x33
jne 0x5243b5
mov dword [ebp + 4], 4
mov eax, dword [esp + 0x15c]
lea edx, [esp + 0x1ac]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x15c], esi
mov al, byte [esp + 0x1a4]
mov dword [esp + 0x3ac], 6
test al, 1
mov dword [esp + 0x160], edi
je 0x524400
mov edx, dword [esp + 0x16c]
mov eax, dword [edx]
push eax
call fcn.00597434
add esp, 4
mov ecx, dword [esp + 0x1a4]
mov dword [esp + 0x19c], ebx
and ecx, 0xfffffffe
mov dword [esp + 0x160], 0xb884a8
mov dword [esp + 0x1a4], ecx
mov ecx, dword [esp + 0x194]
cmp ecx, ebx
je 0x52443f
call fcn.00525360
cmp eax, ebx
je 0x52443f
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x3ac], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x15c], 0xb884dc
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x1ac], 0xb884e0
call fcn.00593261
jmp 0x524877
mov dword [esp + 0xd8], 0xb884e4
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x128], 0xb884e0
mov dword [esp + 0x6c], 4
mov edx, dword [0xb884e8]
mov dword [esp + 0x3ac], esi
mov dword [esp + edx + 0xd8], 0xb884dc
mov eax, dword [esp + 0xd8]
lea edx, [esp + 0xdc]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x100], edx
mov dword [esp + ecx + 0x104], ebx
mov byte [esp + ecx + 0x108], 0x20
lea esi, [esp + ecx + 0xd8]
mov ecx, esi
call fcn.005932d3
cmp dword [esi + 0x28], ebx
jne 0x524502
mov eax, dword [esi + 4]
push ebx
or al, 4
mov ecx, esi
or al, 4
push eax
call fcn.00592f7c
lea eax, [esp + 0xdc]
mov dword [esp + 0x3ac], edi
mov dword [esp + 0x70], eax
call fcn.005937fe
lea ecx, [esp + 0x14]
mov dword [esp + 0x110], eax
call fcn.0059369b
mov esi, dword [0xc533b4]
lea ecx, [esp + 0x68]
call fcn.0059369b
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x524544
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0x68]
call fcn.00593737
lea ecx, [esp + 0x14]
call fcn.00593737
lea ecx, [esp + 0xe0]
lea edx, [esp + 0xe4]
mov dword [esp + 0xe8], ecx
lea eax, [esp + 0xf0]
lea ecx, [esp + 0xf4]
mov dword [esp + 0xec], edx
mov dword [esp + 0xf8], eax
push ebx
mov dword [esp + 0x100], ecx
lea edx, [esp + 0x104]
lea eax, [esp + 0x108]
push ebx
push ebx
lea ecx, [esp + 0xe8]
mov byte [esp + 0x3b8], 0xa
mov dword [esp + 0xe8], 0xb884a8
mov dword [esp + 0x114], edx
mov dword [esp + 0x118], eax
mov dword [esp + 0xf0], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x110], ebx
call fcn.00525e50
mov ecx, dword [esp + 0xe8]
mov edi, 0xb88474
mov dword [esp + 0xdc], edi
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], 0x20
mov dword [esp + 0x120], 4
mov dword [ecx], ebx
mov edx, dword [esp + 0xf8]
mov esi, 0xb88470
mov dword [edx], ebx
mov eax, dword [esp + 0x108]
mov dword [eax], ebx
mov ecx, dword [esp + 0xec]
mov dword [ecx], ebx
mov edx, dword [esp + 0xfc]
mov dword [edx], ebx
mov eax, dword [esp + 0x10c]
mov dword [eax], ebx
mov ecx, dword [esp + 0xd8]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0xd8], esi
mov eax, dword [esp + 0x1ec]
push 0xbc412c
and eax, 0xffff
lea ecx, [esp + 0x1f8]
push eax
push str.__Build
lea edx, [esp + 0xe4]
push ecx
push edx
mov dword [esp + 0x3c0], 0xc
call fcn.00526030
add esp, 8
push eax
call fcn.00526030
add esp, 8
mov ecx, eax
call fcn.005253f0
push eax
call fcn.00526030
add esp, 8
mov ecx, eax
push ebx
call fcn.005256f0
mov ecx, dword [esp + 0xd8]
lea eax, [esp + 0x128]
mov dword [esp + 0x70], eax
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0xd8], esi
mov dword [esp + 0x3ac], 0xd
mov al, byte [esp + 0x120]
mov dword [esp + 0xdc], edi
test al, 1
je 0x524703
mov eax, dword [esp + 0xe8]
mov eax, dword [eax]
push eax
call fcn.00597434
add esp, 4
mov ecx, dword [esp + 0x120]
mov edi, dword [esp + 0x110]
and ecx, 0xfffffffe
cmp edi, ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x120], ecx
mov dword [esp + 0xdc], 0xb884a8
je 0x52476a
lea ecx, [esp + 0x14]
call fcn.0059369b
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x52474a
cmp eax, 0xffffffff
jae 0x52474a
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
lea ecx, [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, edi
call fcn.00593737
cmp esi, ebx
je 0x52476a
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x3ac], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0xd8], 0xb884dc
lea ecx, [esp + 0x128]
mov dword [esp + 0x128], 0xb884e0
call fcn.00593261
jmp 0x524877
cmp dword [esp + 0x1e4], 4
jne 0x524877
cmp dword [esp + 0x1e8], ebx
jne 0x524801
lea esi, [ebp + 8]
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.00597a5a
mov eax, dword [esp + 0x1f5]
cmp al, 0x43
jne 0x5247de
push str.OSR2
jmp 0x5247eb
push eax
mov ecx, esi
call fcn.00597a81
push 0xbc4140
mov ecx, esi
call fcn.00597a5a
mov eax, dword [esp + 0x1e4]
mov dword [ebp + 4], ebx
cmp eax, 4
jne 0x524877
cmp dword [esp + 0x1e8], 0xa
jne 0x524843
lea esi, [ebp + 8]
push str.Microsoft_Windows_98
mov ecx, esi
call fcn.00597a5a
cmp byte [esp + 0x1f5], 0x41
jne 0x524830
push 0xbc40f0
mov ecx, esi
call fcn.00597a5a
mov eax, dword [esp + 0x1e4]
mov dword [ebp + 4], 1
cmp eax, 4
jne 0x524877
cmp dword [esp + 0x1e8], 0x5a
jne 0x524877
push str.Microsoft_Windows_Me
lea ecx, [ebp + 8]
call fcn.00597a5a
mov dword [ebp + 4], 2
jmp 0x524877
push str.Microsoft_Win32s
lea ecx, [ebp + 8]
call fcn.00597a5a
mov dword [ebp + 4], 3
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x27c]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
mov ecx, 0x14
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
call fcn.00529120
lea edx, [esp + 0x27c]
lea ecx, [esp + 0x10]
push edx
mov dword [esp + 0x3b0], 0xe
call fcn.00529130
test eax, eax
je 0x52529e
mov eax, dword [esp + 0x31c]
dec eax
cmp eax, 4
ja case.default.0x5248db
jmp dword [eax*4 + 0x525314]
lea ecx, [esp + 0x18]
push 0xbc40c0
push ecx
jmp 0x5249ff
lea ecx, [esp + 0x18]
push str.Windows
push ecx
jmp 0x5249ff
lea ecx, [esp + 0x18]
push str.Windows_CE
push ecx
jmp 0x5249ff
lea ecx, [esp + 0x27c]
push ecx
lea ecx, [esp + 0x14]
call fcn.005293f0
test eax, eax
je 0x524933
lea edx, [esp + 0x18]
push str.Windows_95
push edx
jmp 0x5249ff
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529430
test eax, eax
je 0x524957
lea ecx, [esp + 0x18]
push str.Windows_95_SP1
push ecx
jmp 0x5249ff
lea edx, [esp + 0x27c]
lea ecx, [esp + 0x10]
push edx
call fcn.00529470
test eax, eax
je 0x524976
push str.Windows_95_OSR2
jmp 0x5249fa
lea ecx, [esp + 0x27c]
push ecx
lea ecx, [esp + 0x14]
call fcn.005294b0
test eax, eax
je 0x524997
lea edx, [esp + 0x18]
push str.Windows_98
push edx
jmp 0x5249ff
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.005294f0
test eax, eax
je 0x5249b8
lea ecx, [esp + 0x18]
push str.Windows_98_SP1
push ecx
jmp 0x5249ff
lea edx, [esp + 0x27c]
lea ecx, [esp + 0x10]
push edx
call fcn.00529530
test eax, eax
je 0x5249d4
push str.Windows_98_Second_Edition
jmp 0x5249fa
lea ecx, [esp + 0x27c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00529570
test eax, eax
je 0x5249f5
lea edx, [esp + 0x18]
push str.Windows_Millenium_Edition
push edx
jmp 0x5249ff
push str.Windows___
lea eax, [esp + 0x1c]
push eax
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x525138
lea ecx, [esp + 0x27c]
push ecx
lea ecx, [esp + 0x14]
call fcn.005296b0
test eax, eax
je 0x524b7f
lea edx, [esp + 0x18]
push str.Windows_NT
push edx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x27c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.005297f0
test eax, eax
je 0x524ab1
push str._Workstation
jmp 0x524b03
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529730
test eax, eax
je 0x524acd
push str._Server
jmp 0x524b03
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.005296e0
test eax, eax
je 0x524ae9
push str._Primary_Domain_Controller
jmp 0x524b03
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529780
test eax, eax
je 0x524b3d
push str._Backup_Domain_Controller
lea ecx, [esp + 0x1c]
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529870
test eax, eax
je 0x524b5c
push str._Datacenter
jmp 0x5250b1
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529840
test eax, eax
je 0x5250eb
push str._Enterprise
jmp 0x5250b1
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.005295a0
test eax, eax
je 0x524cf1
lea ecx, [esp + 0x18]
push str.Windows_2000
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x27c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.005298c0
test eax, eax
je 0x524bf3
push str._Professional
jmp 0x524c29
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529910
test eax, eax
je 0x524c0f
push str._Server
jmp 0x524c29
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.005299c0
test eax, eax
je 0x524c63
push str._Domain_Controller
lea ecx, [esp + 0x1c]
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529990
test eax, eax
je 0x524c7f
push str._Datacenter
jmp 0x524c99
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529960
test eax, eax
je 0x524cd3
push str._Advanced_Server
lea ecx, [esp + 0x1c]
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.005297d0
test eax, eax
je 0x524eb5
jmp 0x524e76
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.005295d0
test eax, eax
je 0x524ed3
lea ecx, [esp + 0x18]
push str.Windows_XP
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x27c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00529a10
test eax, eax
je 0x524d65
push str._Personal
jmp 0x524db7
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529a40
test eax, eax
je 0x524d81
push str._Professional
jmp 0x524db7
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529a90
test eax, eax
je 0x524d9d
push str._Server
jmp 0x524db7
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529b40
test eax, eax
je 0x524df1
push str._Domain_Controller
lea ecx, [esp + 0x1c]
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529b10
test eax, eax
je 0x524e0d
push str._Datacenter
jmp 0x524e27
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529ae0
test eax, eax
je 0x524e61
push str._Advanced_Server
lea ecx, [esp + 0x1c]
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.005297d0
test eax, eax
je 0x524eb5
lea ecx, [esp + 0x18]
push str._Terminal_Services
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.005297e0
test eax, eax
je 0x5250eb
jmp 0x5250ac
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529600
test eax, eax
je 0x5250eb
lea ecx, [esp + 0x18]
push str.Windows_2003
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x27c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00529a10
test eax, eax
je 0x524f47
push str._Personal
jmp 0x524f99
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529a40
test eax, eax
je 0x524f63
push str._Professional
jmp 0x524f99
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529a90
test eax, eax
je 0x524f7f
push str._Server
jmp 0x524f99
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529b40
test eax, eax
je 0x524fd3
push str._Domain_Controller
lea ecx, [esp + 0x1c]
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529b10
test eax, eax
je 0x524fef
push str._Datacenter
jmp 0x525009
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.00529ae0
test eax, eax
je 0x525043
push str._Advanced_Server
lea ecx, [esp + 0x1c]
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.005297d0
test eax, eax
je 0x525097
lea ecx, [esp + 0x18]
push str._Terminal_Services
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x10]
push eax
call fcn.005297e0
test eax, eax
je 0x5250eb
push str._BackOffice_Small_Business_Edition
lea ecx, [esp + 0x1c]
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x74]
test al, al
je 0x525141
jmp 0x525134
lea ecx, [esp + 0x18]
push str.Unknown_OS
push ecx
call fcn.00571086
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x74]
push eax
lea ecx, [ebp + 0x10]
call fcn.00597807
mov ecx, dword [esp + 0x310]
lea edx, [esp + 0x18]
push ecx
push 0xbc3ef4
push edx
call fcn.00571086
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [ebp + 0x14]
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
push eax
mov ecx, ebx
call fcn.00597807
mov ecx, dword [esp + 0x314]
lea edx, [esp + 0x18]
push ecx
push str._02d
push edx
call fcn.00571086
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00597a5a
mov eax, dword [esp + 0x318]
test eax, eax
je 0x525242
push eax
lea ecx, [esp + 0x1c]
push 0xbc3ee8
push ecx
call fcn.00571086
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0xc]
call fcn.00597807
mov eax, dword [esp + 0x3a0]
test ax, ax
je 0x5252e4
and eax, 0xffff
lea ecx, [esp + 0x18]
push eax
push str.Service_Pack__d
push ecx
call fcn.00571086
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
jmp 0x5252dc
lea ecx, [esp + 0x74]
push str.Failed_in_call_to_GetOSVersion
push ecx
call fcn.00571086
add esp, 8
lea edx, [esp + 0x74]
lea ecx, [ebp + 0x10]
push edx
call fcn.00597807
push str.unknown
lea ecx, [ebp + 0xc]
call fcn.00597807
push str.unknown
lea ecx, [ebp + 0x14]
call fcn.00597807
push str.unknown
lea ecx, [ebp + 0x18]
call fcn.00597807
lea ecx, [esp + 0x10]
mov dword [esp + 0x3ac], 0xffffffff
call fcn.0054da50
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3a0
ret