Function at 0x40fd90
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4624e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push edi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
push eax
mov ecx, 0x482778
mov dword [esp + 0x30], 0
call fcn.0040a580
mov edx, dword [0x482778]
mov edi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, edi
or eax, ecx
jge 0x40fdf7
push edi
mov ecx, 0x482778
call fcn.0040a470
mov edx, dword [0x482778]
lea ecx, [edi + 1]
push ecx
push edx
call fcn.004350a3
add esp, 8
test edi, edi
jl 0x4100d1
mov eax, dword [0x482778]
cmp edi, dword [eax - 8]
jg 0x4100d1
mov dword [eax - 0xc], edi
mov edx, dword [0x482778]
mov word [edx + edi*2], 0
mov ecx, dword [0x482778]
mov eax, dword [ecx - 0xc]
or ebx, 0xffffffff
test eax, eax
jl 0x40fe91
push 0x46df14
push ecx
call fcn.00434ded
add esp, 8
test eax, eax
je 0x40fe91
sub eax, dword [0x482778]
sar eax, 1
cmp eax, ebx
je 0x40fe91
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40fe78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x24
ret 8
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004100e0
push eax
mov ecx, 0x48277c
mov byte [esp + 0x30], 1
call fcn.0040a580
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fed1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x46e1c8
push 0x46df1c
push 0x482778
call fcn.00410780
push 0x46e1c8
push 0x46df1c
push 0x48277c
call fcn.00410780
lea ecx, [esi + 0xc4]
push 0x48277c
call fcn.0040a580
mov edi, 0x482778
call fcn.00409af0
mov edi, eax
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x40ff3b
push 0x46df20
push eax
call fcn.00434ded
add esp, 8
test eax, eax
je 0x40ff3b
sub eax, dword [edi]
sar eax, 1
cmp eax, ebx
jne 0x40fe57
cmp dword [esi + 0x80], 0
jne 0x40fe57
cmp dword [esp + 0x38], 0
je 0x40ff89
mov ecx, dword [0x48277c]
cmp dword [ecx - 0xc], 0
jl 0x40ff8f
push str.Error
push ecx
call fcn.00434ded
add esp, 8
test eax, eax
je 0x40ff89
mov ecx, dword [0x48277c]
sub eax, ecx
sar eax, 1
cmp eax, ebx
je 0x40ff8f
lea ecx, [esp + 0x34]
call fcn.00406260
jmp 0x40fe78
mov ecx, dword [0x48277c]
test ecx, ecx
je 0x40ffb8
mov eax, dword [0x482778]
cmp dword [eax - 0xc], 0
jl 0x40ffb8
push ecx
push eax
call fcn.00434ded
add esp, 8
test eax, eax
je 0x40ffb8
sub eax, dword [0x482778]
sar eax, 1
cmp eax, ebx
jne 0x40ff7b
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004100e0
mov edi, eax
lea edx, [esp + 0x34]
push edx
lea eax, [esi + 0xac]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x38], 2
call fcn.00409b50
push 0x46dc18
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x44], 3
call fcn.00409c10
lea ecx, [esi + 0xb0]
push ecx
push eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x50], 4
call fcn.00409b50
push edi
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x5c], 5
call fcn.00409b50
push 0x46ded0
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x68], 6
call fcn.00409c10
lea edx, [esi + 0xb4]
push edx
push eax
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x74], 7
call fcn.00409b50
add esp, 0x48
mov byte [esp + 0x2c], 8
mov ecx, dword [esi + 0x94]
mov eax, dword [eax]
push 0x34
push ecx
push eax
mov ecx, esi
call fcn.0041efe2
cmp eax, 6
lea ecx, [esp + 0x38]
sete bl
call fcn.00406260
lea ecx, [esp + 0xc]
call fcn.00406260
lea ecx, [esp + 0x10]
call fcn.00406260
lea ecx, [esp + 0x14]
call fcn.00406260
lea ecx, [esp + 0x18]
call fcn.00406260
lea ecx, [esp + 0x1c]
call fcn.00406260
lea ecx, [esp + 0x20]
call fcn.00406260
lea ecx, [esp + 0x34]
call fcn.00406260
test bl, bl
jne 0x40fe78
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x24
ret 8
push 0x80070057
call fcn.0040a390
int3