Function at 0x410f20
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4583e2
mov eax, dword fs:[0]
push eax
sub esp, 0x890
mov eax, dword [0x4749e0]
xor eax, esp
mov dword [esp + 0x888], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4749e0]
xor eax, esp
push eax
lea eax, [esp + 0x8a4]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x8bc]
xor ebx, ebx
push ebx
push 0x460c30
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
call fcn.00403640
push 7
push str.UNKNOWN
mov esi, ebp
mov dword [esp + 0x8b4], ebx
call fcn.00403640
cmp edi, ebx
je 0x41114d
push 0x3e
lea eax, [esp + 0x62]
push ebx
push eax
mov word [esp + 0x68], bx
call fcn.004346f0
add esp, 0xc
push edi
lea ecx, [esp + 0x60]
push 0x4669ac
push ecx
call fcn.00433195
add esp, 0xc
push ebx
push str.____Bootstrapper_ServicePackService_Pack___service_pack_string__
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.0040c960
mov ecx, dword [eax + 0x100]
add esp, 4
call fcn.0044edf0
push ebx
push 0x400
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x8b8], 1
call fcn.0044eda0
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x3c], esp
push ebx
mov edi, 7
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push 0x460c30
mov word [esi + 4], bx
call fcn.00403640
sub esp, 0x1c
mov byte [esp + 0x8e4], 2
mov esi, esp
lea eax, [esp + 0x94]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov dword [esp + 0x54], esp
mov word [esi + 4], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411051
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.00403640
sub esp, 0x1c
mov byte [esp + 0x900], 3
mov esi, esp
lea eax, [esp + 0xf0]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov dword [esp + 0x6c], esp
mov word [esi + 4], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411093
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xf4]
push edx
call fcn.00403640
mov byte [esp + 0x900], 4
call fcn.0040c960
lea eax, [esp + 0x94]
push eax
mov byte [esp + 0x904], 1
call fcn.00410d60
push 1
push 0x46564c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8b4], 5
call fcn.00408f70
cmp dword [esp + 0x58], 8
mov edx, dword [esp + 0x44]
jae 0x4110f9
lea edx, [esp + 0x44]
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411100
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x2c]
call fcn.00408f70
cmp dword [esp + 0x58], 8
jb 0x41112e
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00416414
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
mov byte [esp + 0x8ac], bl
call fcn.0044edd0
jmp 0x411152
mov edi, 7
mov eax, dword [esp + 0x8b4]
sub eax, 4
je 0x411241
sub eax, 1
je 0x4111df
sub eax, 1
je 0x41117e
push edi
push str.UNKNOWN
mov esi, ebp
call fcn.00403640
jmp 0x4112ba
mov eax, dword [esp + 0x8b8]
cmp eax, 1
jne 0x4111cd
push 9
push str.Windows_7
mov esi, ebp
call fcn.00403640
cmp dword [esp + 0x3c], 8
mov edx, dword [esp + 0x28]
jae 0x4111a7
lea edx, [esp + 0x28]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4111b0
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebp
call fcn.00408f70
jmp 0x4112ba
cmp eax, ebx
jne 0x4112ba
mov edx, str.Windows_Vista
jmp 0x41129f
mov eax, dword [esp + 0x8b8]
cmp eax, 2
je 0x411202
cmp eax, 1
je 0x411202
cmp eax, ebx
jne 0x4112ba
mov edx, str.Windows_2000
jmp 0x41129f
push 0xa
push str.Windows_XP
mov esi, ebp
call fcn.00403640
cmp dword [esp + 0x3c], 8
mov edx, dword [esp + 0x28]
jae 0x41121f
lea edx, [esp + 0x28]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411224
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebp
call fcn.00408f70
jmp 0x4112ba
mov eax, dword [esp + 0x8b8]
cmp eax, 0x5a
jne 0x41128a
push 0xa
push str.Windows_ME
mov esi, ebp
call fcn.00403640
cmp dword [esp + 0x3c], 8
mov edx, dword [esp + 0x28]
jae 0x41126a
lea edx, [esp + 0x28]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411270
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebp
call fcn.00408f70
jmp 0x4112ba
cmp eax, 0xa
jne 0x411296
mov edx, str.Windows_98
jmp 0x41129f
cmp eax, ebx
jne 0x4112ba
mov edx, str.Windows_95
push ebp
call fcn.004030b0
cmp dword [esp + 0x3c], 8
mov edx, dword [esp + 0x28]
jae 0x4112b4
lea edx, [esp + 0x28]
push ebp
call fcn.00408e80
cmp dword [esp + 0x3c], 8
jb 0x4112ce
mov edx, dword [esp + 0x28]
push edx
call fcn.00416414
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x8a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.004321fe
add esp, 0x89c
ret