Function at 0x421680
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x44b26f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x398
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, ecx
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x1e4]
xor ebp, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1e4]
mov dword [esp + 0x68], ebx
push eax
mov dword [esp + 0x74], ebp
mov dword [esp + 0x1e8], 0x9c
call esi
cmp eax, ebp
jne 0x4216f7
lea ecx, [esp + 0x1e4]
mov dword [esp + 0x1e4], 0x94
push ecx
call esi
test eax, eax
je 0x4228bb
mov eax, dword [esp + 0x1f4]
sub eax, ebp
je 0x421e63
dec eax
je 0x421da6
dec eax
jne 0x421e77
cmp dword [esp + 0x1e8], 4
ja 0x42172b
push str.Microsoft_Windows_NT
lea ecx, [ebx + 8]
call fcn.0044368e
mov eax, dword [esp + 0x1e8]
mov edi, 5
cmp eax, edi
mov esi, 7
jne 0x4217af
cmp dword [esp + 0x1ec], ebp
jne 0x421768
push str.Microsoft_Windows_2000
lea ecx, [ebx + 8]
call fcn.0044368e
mov eax, dword [esp + 0x1e8]
mov dword [ebx + 4], 6
cmp eax, edi
jne 0x4217af
cmp dword [esp + 0x1ec], 1
jne 0x42178d
push str.Microsoft_Windows_XP
lea ecx, [ebx + 8]
call fcn.0044368e
mov eax, dword [esp + 0x1e8]
mov dword [ebx + 4], esi
cmp eax, edi
jne 0x4217af
cmp dword [esp + 0x1ec], 2
jne 0x421a74
push str.Microsoft_Windows_2003
lea ecx, [ebx + 8]
call fcn.0044368e
mov dword [ebx + 4], 8
cmp dword [esp + 0x1e8], 4
ja 0x421a74
mov dword [esp + 0x160], 0x456f5c
mov dword [esp + 0x1d4], ebp
mov dword [esp + 0x1b0], 0x456f58
mov dword [esp + 0x70], 1
mov edx, dword [0x456f60]
mov dword [esp + 0x3b0], ebp
mov dword [esp + edx + 0x160], 0x456f54
mov eax, dword [esp + 0x160]
lea edx, [esp + 0x164]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x188], edx
mov dword [esp + ecx + 0x18c], ebp
mov byte [esp + ecx + 0x190], 0x20
lea esi, [esp + ecx + 0x160]
mov ecx, esi
call fcn.004417d0
cmp dword [esi + 0x28], ebp
jne 0x421844
mov eax, dword [esi + 4]
push ebp
or al, 4
mov ecx, esi
or al, 4
push eax
call fcn.004414f0
lea eax, [esp + 0x164]
mov dword [esp + 0x3b0], 2
mov dword [esp + 0x68], eax
call fcn.00441a10
lea ecx, [esp + 0x64]
mov dword [esp + 0x198], eax
call fcn.004418ad
mov ecx, dword [0x49acf5]
call fcn.004228f0
lea ecx, [esp + 0x64]
call fcn.00441949
mov ebp, 0x456f20
lea ecx, [esp + 0x164]
mov byte [esp + 0x3b0], 3
mov dword [esp + 0x164], ebp
call fcn.004239e0
push 4
mov edi, 0x456eec
push 0
push 0
lea ecx, [esp + 0x170]
mov byte [esp + 0x3bc], 4
mov dword [esp + 0x170], edi
call fcn.00423900
mov ecx, dword [esp + 0x160]
mov esi, 0x456ee8
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x160], esi
mov eax, dword [esp + 0x1f0]
mov edx, dword [esp + 0x1ec]
and eax, 0xffff
push 0x47f575
push eax
mov eax, dword [esp + 0x1f0]
lea ecx, [esp + 0x200]
push str.__Build
push ecx
push 0x47f565
push edx
push 0x47f561
push eax
lea ecx, [esp + 0x180]
push str.version
push ecx
mov dword [esp + 0x3d8], 5
call fcn.00423a40
add esp, 8
mov ecx, eax
call fcn.004229b0
push eax
call fcn.00423a40
add esp, 8
mov ecx, eax
call fcn.004229b0
push eax
call fcn.00423a40
add esp, 8
push eax
call fcn.00423a40
add esp, 8
push eax
call fcn.00423a40
add esp, 8
mov ecx, eax
call fcn.004229b0
push eax
call fcn.00423a40
add esp, 8
mov ecx, eax
push 0
call fcn.00422cd0
mov eax, dword [esp + 0x1e8]
cmp eax, 4
jne 0x421998
mov dword [ebx + 4], 5
jmp 0x4219ae
cmp eax, 3
jne 0x4219ae
cmp dword [esp + 0x1ec], 0x33
jne 0x4219ae
mov dword [ebx + 4], 4
mov eax, dword [esp + 0x160]
lea edx, [esp + 0x1b0]
mov dword [esp + 0x68], edx
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x160], esi
mov al, byte [esp + 0x1a8]
mov dword [esp + 0x3b0], 6
test al, 1
mov dword [esp + 0x164], edi
je 0x4219f9
mov edx, dword [esp + 0x170]
mov eax, dword [edx]
push eax
call fcn.004431b6
add esp, 4
mov ecx, dword [esp + 0x1a8]
mov dword [esp + 0x1a0], 0
and ecx, 0xfffffffe
mov dword [esp + 0x164], ebp
mov dword [esp + 0x1a8], ecx
mov ecx, dword [esp + 0x198]
test ecx, ecx
je 0x421a38
call fcn.00422920
test eax, eax
je 0x421a38
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov eax, dword [esp + 0x160]
mov dword [esp + 0x3b0], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x160], 0x456f54
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x1b0], 0x456f58
call fcn.0044175e
jmp 0x421e77
xor edi, edi
mov dword [esp + 0xdc], 0x456f5c
mov dword [esp + 0x150], edi
mov dword [esp + 0x12c], 0x456f58
mov dword [esp + 0x70], 4
mov edx, dword [0x456f60]
mov dword [esp + 0x3b0], esi
mov ebx, 0x20
mov dword [esp + edx + 0xdc], 0x456f54
mov eax, dword [esp + 0xdc]
lea edx, [esp + 0xe0]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x104], edx
mov dword [esp + ecx + 0x108], edi
mov byte [esp + ecx + 0x10c], bl
lea esi, [esp + ecx + 0xdc]
mov ecx, esi
call fcn.004417d0
cmp dword [esi + 0x28], edi
jne 0x421b01
mov eax, dword [esi + 4]
push edi
or al, 4
mov ecx, esi
or al, 4
push eax
call fcn.004414f0
lea eax, [esp + 0xe0]
mov dword [esp + 0x3b0], 9
mov dword [esp + 0x74], eax
call fcn.00441a10
lea ecx, [esp + 0x6c]
mov dword [esp + 0x114], eax
call fcn.004418ad
mov esi, dword [0x49acf5]
lea ecx, [esp + 0x64]
call fcn.004418ad
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x421b47
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0x64]
call fcn.00441949
lea ecx, [esp + 0x6c]
call fcn.00441949
lea ecx, [esp + 0xe4]
lea edx, [esp + 0xe8]
mov dword [esp + 0xec], ecx
lea eax, [esp + 0xf4]
lea ecx, [esp + 0xf8]
xor esi, esi
mov dword [esp + 0xf0], edx
mov dword [esp + 0xfc], eax
mov ebp, 0x456f20
mov dword [esp + 0x100], ecx
lea edx, [esp + 0x104]
lea eax, [esp + 0x108]
push esi
push esi
lea ecx, [esp + 0xe8]
mov byte [esp + 0x3b8], 0xa
mov dword [esp + 0xe8], ebp
mov dword [esp + 0x114], edx
mov dword [esp + 0x118], eax
call fcn.00423860
push esi
push esi
push esi
lea ecx, [esp + 0xec]
call fcn.00423840
mov ecx, dword [esp + 0xec]
mov edi, 0x456eec
mov dword [esp + 0xe0], edi
mov dword [esp + 0x118], esi
mov dword [esp + 0x11c], esi
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], 4
mov dword [ecx], esi
mov edx, dword [esp + 0xfc]
mov dword [edx], esi
mov eax, dword [esp + 0x10c]
mov dword [eax], esi
mov ecx, dword [esp + 0xf0]
mov dword [ecx], esi
mov edx, dword [esp + 0x100]
mov dword [edx], esi
mov eax, dword [esp + 0x110]
mov dword [eax], esi
mov ecx, dword [esp + 0xdc]
mov esi, 0x456ee8
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0xdc], esi
mov eax, dword [esp + 0x1f0]
push 0x47f551
and eax, 0xffff
lea ecx, [esp + 0x1fc]
push eax
push str.__Build
lea edx, [esp + 0xe8]
push ecx
push edx
mov dword [esp + 0x3c4], 0xc
call fcn.00423a40
add esp, 8
push eax
call fcn.00423a40
add esp, 8
mov ecx, eax
call fcn.004229b0
push eax
call fcn.00423a40
add esp, 8
mov ecx, eax
push 0
call fcn.00422cd0
mov ecx, dword [esp + 0xdc]
lea eax, [esp + 0x12c]
mov dword [esp + 0x74], eax
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0xdc], esi
mov al, byte [esp + 0x124]
mov dword [esp + 0x3b0], 0xd
test al, 1
mov dword [esp + 0xe0], edi
je 0x421cff
mov eax, dword [esp + 0xec]
mov eax, dword [eax]
push eax
call fcn.004431b6
add esp, 4
mov ecx, dword [esp + 0x124]
mov edi, dword [esp + 0x114]
and ecx, 0xfffffffe
mov dword [esp + 0x11c], 0
test edi, edi
mov dword [esp + 0x124], ecx
mov dword [esp + 0xe0], ebp
je 0x421d66
lea ecx, [esp + 0x6c]
call fcn.004418ad
mov eax, dword [edi + 4]
test eax, eax
jbe 0x421d46
cmp eax, 0xffffffff
jae 0x421d46
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
lea ecx, [esp + 0x6c]
neg esi
sbb esi, esi
not esi
and esi, edi
call fcn.00441949
test esi, esi
je 0x421d66
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x3b0], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0xdc], 0x456f54
lea ecx, [esp + 0x12c]
mov dword [esp + 0x12c], 0x456f58
call fcn.0044175e
mov ebx, dword [esp + 0x68]
jmp 0x421e77
cmp dword [esp + 0x1e8], 4
jne 0x421e77
cmp dword [esp + 0x1ec], ebp
jne 0x421e01
lea esi, [ebx + 8]
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.0044368e
mov eax, dword [esp + 0x1f9]
cmp al, 0x43
jne 0x421dde
push str.OSR2
jmp 0x421deb
push eax
mov ecx, esi
call fcn.004436b5
push 0x47f565
mov ecx, esi
call fcn.0044368e
mov eax, dword [esp + 0x1e8]
mov dword [ebx + 4], ebp
cmp eax, 4
jne 0x421e77
cmp dword [esp + 0x1ec], 0xa
jne 0x421e43
lea esi, [ebx + 8]
push str.Microsoft_Windows_98
mov ecx, esi
call fcn.0044368e
cmp byte [esp + 0x1f9], 0x41
jne 0x421e30
push 0x47f515
mov ecx, esi
call fcn.0044368e
mov eax, dword [esp + 0x1e8]
mov dword [ebx + 4], 1
cmp eax, 4
jne 0x421e77
cmp dword [esp + 0x1ec], 0x5a
jne 0x421e77
push str.Microsoft_Windows_Me
lea ecx, [ebx + 8]
call fcn.0044368e
mov dword [ebx + 4], 2
jmp 0x421e77
push str.Microsoft_Win32s
lea ecx, [ebx + 8]
call fcn.0044368e
mov dword [ebx + 4], 3
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x280]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov ecx, 0x14
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
call fcn.0041f330
lea edx, [esp + 0x280]
lea ecx, [esp + 0x10]
push edx
mov dword [esp + 0x3b4], 0xe
call fcn.0041f350
test eax, eax
je 0x422861
mov eax, dword [esp + 0x320]
dec eax
cmp eax, 4
ja case.default.0x421edb
jmp dword [eax*4 + 0x4228d4]
lea ecx, [esp + 0x14]
push 0x47f4e5
push ecx
jmp 0x421fff
lea ecx, [esp + 0x14]
push 0x47f4dd
push ecx
jmp 0x421fff
lea ecx, [esp + 0x14]
push str.Windows_CE
push ecx
jmp 0x421fff
lea ecx, [esp + 0x280]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041f6a0
test eax, eax
je 0x421f33
lea edx, [esp + 0x14]
push str.Windows_95
push edx
jmp 0x421fff
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041f6e0
test eax, eax
je 0x421f57
lea ecx, [esp + 0x14]
push str.Windows_95_SP1
push ecx
jmp 0x421fff
lea edx, [esp + 0x280]
lea ecx, [esp + 0x10]
push edx
call fcn.0041f720
test eax, eax
je 0x421f76
push str.Windows_95_OSR2
jmp 0x421ffa
lea ecx, [esp + 0x280]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041f760
test eax, eax
je 0x421f97
lea edx, [esp + 0x14]
push str.Windows_98
push edx
jmp 0x421fff
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041f7a0
test eax, eax
je 0x421fb8
lea ecx, [esp + 0x14]
push str.Windows_98_SP1
push ecx
jmp 0x421fff
lea edx, [esp + 0x280]
lea ecx, [esp + 0x10]
push edx
call fcn.0041f7e0
test eax, eax
je 0x421fd4
push str.Windows_98_Second_Edition
jmp 0x421ffa
lea ecx, [esp + 0x280]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041f820
test eax, eax
je 0x421ff5
lea edx, [esp + 0x14]
push str.Windows_Millenium_Edition
push edx
jmp 0x421fff
push str.Windows___
lea eax, [esp + 0x18]
push eax
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4226fb
lea ecx, [esp + 0x280]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041fb40
test eax, eax
je 0x42217f
lea edx, [esp + 0x14]
push str.Windows_NT
push edx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x280]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0041fc80
test eax, eax
je 0x4220b1
push str._Workstation
jmp 0x422103
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fbc0
test eax, eax
je 0x4220cd
push str._Server
jmp 0x422103
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fb70
test eax, eax
je 0x4220e9
push str._Primary_Domain_Controller
jmp 0x422103
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fc10
test eax, eax
je 0x42213d
push str._Backup_Domain_Controller
lea ecx, [esp + 0x18]
push ecx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fd00
test eax, eax
je 0x42215c
push str._Datacenter
jmp 0x4226bd
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fcd0
test eax, eax
je 0x4226f7
push str._Enterprise
jmp 0x4226bd
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041f850
test eax, eax
je 0x4222f1
lea ecx, [esp + 0x14]
push str.Windows_2000
push ecx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x280]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0041fd50
test eax, eax
je 0x4221f3
push str._Professional
jmp 0x422229
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fda0
test eax, eax
je 0x42220f
push str._Server
jmp 0x422229
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fe50
test eax, eax
je 0x422263
push str._Domain_Controller
lea ecx, [esp + 0x18]
push ecx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fe20
test eax, eax
je 0x42227f
push str._Datacenter
jmp 0x422299
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fdf0
test eax, eax
je 0x4222d3
push str._Advanced_Server
lea ecx, [esp + 0x18]
push ecx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fc60
test eax, eax
je 0x4224b5
jmp 0x422476
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041f880
test eax, eax
je 0x4224d8
lea ecx, [esp + 0x14]
push str.Windows_XP
push ecx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x280]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0041fea0
test eax, eax
je 0x422365
push str._Personal
jmp 0x4223b7
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fed0
test eax, eax
je 0x422381
push str._Professional
jmp 0x4223b7
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041ff20
test eax, eax
je 0x42239d
push str._Server
jmp 0x4223b7
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041ffd0
test eax, eax
je 0x4223f1
push str._Domain_Controller
lea ecx, [esp + 0x18]
push ecx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041ffa0
test eax, eax
je 0x42240d
push str._Datacenter
jmp 0x422427
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041ff70
test eax, eax
je 0x422461
push str._Advanced_Server
lea ecx, [esp + 0x18]
push ecx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fc60
test eax, eax
je 0x4224b5
lea ecx, [esp + 0x14]
push str._Terminal_Services
push ecx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fc70
test eax, eax
je 0x4226f7
push str._BackOffice_Small_Business_Edition
jmp 0x4226bd
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041f8b0
test eax, eax
je 0x4226f7
lea ecx, [esp + 0x14]
push str.Windows_2003
push ecx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x280]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0041fea0
test eax, eax
je 0x42254c
push str._Personal
jmp 0x42259e
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fed0
test eax, eax
je 0x422568
push str._Professional
jmp 0x42259e
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041ff20
test eax, eax
je 0x422584
push str._Server
jmp 0x42259e
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041ffd0
test eax, eax
je 0x4225d8
push str._Domain_Controller
lea ecx, [esp + 0x18]
push ecx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041ffa0
test eax, eax
je 0x4225f4
push str._Datacenter
jmp 0x42260e
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041ff70
test eax, eax
je 0x422648
push str._Advanced_Server
lea ecx, [esp + 0x18]
push ecx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fc60
test eax, eax
je 0x42269c
lea ecx, [esp + 0x14]
push str._Terminal_Services
push ecx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x280]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fc70
test eax, eax
je 0x4226f7
push str._BackOffice_Small_Business_Edition
jmp 0x4226bd
push str.Unknown_OS
lea ecx, [esp + 0x18]
push ecx
call fcn.004350a3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x78]
push eax
lea ecx, [ebx + 0x10]
call fcn.00443589
mov ecx, dword [esp + 0x314]
lea edx, [esp + 0x14]
push ecx
push 0x47f319
push edx
call fcn.004350a3
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [ebx + 0x14]
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
push eax
mov ecx, ebp
call fcn.00443589
mov ecx, dword [esp + 0x318]
lea edx, [esp + 0x14]
push ecx
push str._02d
push edx
call fcn.004350a3
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
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 + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00443589
mov eax, dword [esp + 0x31c]
test eax, eax
je 0x422805
push eax
lea ecx, [esp + 0x18]
push 0x47f30d
push ecx
call fcn.004350a3
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0xc]
call fcn.00443589
mov eax, dword [esp + 0x3a4]
test ax, ax
je 0x4228a7
and eax, 0xffff
lea ecx, [esp + 0x14]
push eax
push str.Service_Pack__d
push ecx
call fcn.004350a3
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
jmp 0x42289f
lea ecx, [esp + 0x78]
push str.Failed_in_call_to_GetOSVersion
push ecx
call fcn.004350a3
add esp, 8
lea edx, [esp + 0x78]
lea ecx, [ebx + 0x10]
push edx
call fcn.00443589
push str.unknown
lea ecx, [ebx + 0xc]
call fcn.00443589
push str.unknown
lea ecx, [ebx + 0x14]
call fcn.00443589
push str.unknown
lea ecx, [ebx + 0x18]
call fcn.00443589
lea ecx, [esp + 0x10]
mov dword [esp + 0x3b0], 0xffffffff
call fcn.0041f340
mov ecx, dword [esp + 0x3a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3a4
ret