Function at 0x40fdd6
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
call dword [fcn.00401108]
cmp al, 1
mov byte [ebp - 1], al
jb 0x41a80d
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x10001
push esi
mov esi, dword [ebp + 0x10]
and ecx, eax
cmp ecx, eax
push edi
mov edi, 0x20000
jne 0x40fea3
mov eax, dword [esi + 0xc0]
mov edx, dword [ebx + 0x70]
mov ecx, eax
and ecx, edi
and edx, edi
cmp ecx, edx
setne byte [ebp + 0xb]
cmp byte [ebp + 0x18], 0
je 0x420c6b
test ecx, ecx
jne 0x44af66
and eax, 0x3e0dd7
or eax, 0x200
mov dword [ebx + 0x70], eax
mov ecx, dword [esi + 0xb4]
mov dword [ebx + 0x60], ecx
mov ecx, dword [esi + 0xb8]
mov dword [ebx + 0x68], ecx
test edi, eax
mov eax, dword [esi + 0xbc]
jne 0x44af84
and eax, 0xfffc
cmp byte [ebp + 0x18], 0
je 0x40fe6f
or eax, 3
cmp byte [ebp + 0x18], 0
mov dword [ebx + 0x6c], eax
je 0x40fe81
cmp eax, 8
jb 0x44af8c
push dword [esi + 0xc8]
push ebx
call fcn.00410029
push dword [esi + 0xc4]
push ebx
call fcn.00410074
cmp byte [ebp + 0xb], 0
jne 0x42c952
mov ecx, dword [ebp + 0x14]
mov eax, 0x10004
and ecx, eax
cmp ecx, eax
jne 0x40feed
test dword [ebx + 0x70], edi
jne 0x44af98
mov eax, dword [ebx + 0x6c]
test al, 1
je 0x420c94
cmp eax, 0x1b
mov ecx, dword [esi + 0x90]
mov dword [ebx + 0x50], ecx
mov ecx, dword [esi + 0x94]
mov dword [ebx + 0x34], ecx
mov ecx, dword [esi + 0x98]
mov dword [ebx + 0x38], ecx
jne 0x44afd2
and dword [ebx + 0x30], 0
mov ecx, dword [ebp + 0x14]
mov eax, 0x10002
and ecx, eax
cmp ecx, eax
jne 0x40ff31
mov eax, dword [esi + 0x9c]
mov dword [ebx + 0x54], eax
mov eax, dword [esi + 0xa0]
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 0xa4]
mov dword [ebx + 0x5c], eax
mov eax, dword [esi + 0xac]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0xa8]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0xb0]
mov dword [ebx + 0x44], eax
mov ecx, dword [ebp + 0x14]
mov eax, 0x10020
and ecx, eax
cmp ecx, eax
je 0x422e24
mov ecx, dword [ebp + 0x14]
mov eax, 0x10008
and ecx, eax
cmp ecx, eax
je 0x42ab05
mov ecx, dword [ebp + 0x14]
mov eax, 0x10010
and ecx, eax
cmp ecx, eax
jne 0x40ffdf
mov byte [ebp + 0x17], 0
xor edi, edi
cmp byte [ebp + 0x18], 0
mov eax, dword [edi*4 + 0x410004]
je 0x42abed
mov edx, dword [esi + eax]
cmp dword [0x490edc], edx
sbb eax, eax
not eax
and eax, edx
test eax, eax
mov ecx, dword [edi*4 + 0x4102c4]
mov dword [ebx + ecx], eax
jne 0x43c5e1
inc edi
cmp edi, 3
jbe 0x40ff69
mov eax, dword [esi + 0x14]
and eax, 0xe00f
mov dword [ebx + 0x28], eax
jne 0x44b0d1
mov eax, dword [esi + 0x18]
lea ecx, [ebx + 0x2c]
and eax, 0xffff0155
lea edx, [ebp + 0x17]
mov dword [ecx], eax
call fcn.0041028d
cmp byte [ebp + 0x18], 0
je 0x40ffdf
mov eax, dword fs:[0x124]
mov cl, byte [ebp + 0x17]
cmp cl, byte [eax + 0x2c]
jne 0x43c68b
mov eax, dword fs:[0x124]
cmp byte [eax + 0x30], 0
jne 0x4433f5
mov cl, byte [ebp - 1]
cmp cl, 1
pop edi
pop esi
pop ebx
jb 0x41a81d
leave
ret 0x14
mov cl, 1
call dword [fcn.0040102c]
mov byte [ebp - 1], al
jmp 0x40fded
call dword [fcn.00401030]
jmp 0x40fffe
and eax, 0x3e0fd7
jmp 0x40fe3e
mov eax, dword [esi + 0x90]
and eax, 0xfffc
cmp byte [ebp + 0x18], 0
jne 0x44afca
push 0x23
mov dword [ebx + 0x50], eax
pop eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
jmp 0x40fee9
test byte [ebx + 0x6c], 1
je 0x40ff43
cmp byte [0x48b265], 0
lea edi, [ebx + 0x8c]
je 0x40ff43
push 0
call fcn.0040a16b
add esi, 0xcc
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
and dword [ebx + 0x298], 0xfffffff1
mov eax, dword [0x48b25c]
and dword [ebx + 0xa4], eax
mov eax, dword fs:[0x124]
mov eax, dword [eax + 0x44]
cmp dword [eax + 0x158], 0
mov esi, dword [ebp + 0x10]
je 0x40ff43
jmp 0x44afe0
test byte [ebx + 0x6c], 1
je 0x40ff55
cmp byte [0x48b265], 0
je 0x44b076
push 0
call fcn.0040a16b
cmp byte [0x48b264], 1
jne 0x44b00e
mov ax, word [esi + 0x1c]
mov word [ebx + 0x8c], ax
mov ax, word [esi + 0x20]
xor edi, edi
mov word [ebx + 0x8e], ax
mov word [ebx + 0x90], di
mov eax, dword [esi + 0x24]
mov edx, eax
mov ecx, edi
shr edx, cl
and edx, 3
cmp dl, 3
jne 0x44aff6
inc edi
inc edi
cmp edi, 0x10
jb 0x42ab52
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x94], eax
mov eax, dword [esi + 0x2c]
and eax, 0xffff
mov dword [ebx + 0x98], eax
mov ax, word [esi + 0x2e]
mov word [ebx + 0x92], ax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x9c], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0xa0], eax
lea edx, [ebx + 0xac]
push 0x20
xor eax, eax
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [esi + 0x38]
mov dword [ebp + 0x10], 8
jmp 0x43c5b9
mov eax, dword [esi + eax]
jmp 0x40ff89
push ebx
call fcn.00405db7
jmp 0x40fea3
mov cl, byte [eax + edi]
mov byte [edx + edi], cl
inc edi
cmp edi, 0xa
jb 0x43c5a2
add edx, 0x10
add eax, 0xa
dec dword [ebp + 0x10]
je 0x43c5bd
xor edi, edi
jmp 0x43c5a2
lea ecx, [ebx + 0x298]
and dword [ecx], 0xfffffff1
mov eax, dword fs:[0x124]
mov eax, dword [eax + 0x44]
cmp dword [eax + 0x158], 0
je 0x40ff55
jmp 0x44b066
mov al, 1
mov ecx, edi
shl al, cl
or byte [ebp + 0x17], al
jmp 0x40ff9b
call fcn.00405de8
jmp 0x40ffdf
or byte [ebx + 0x71], 0x30
jmp 0x40ffef
cmp byte [0x484a94], 0
je 0x40fe34
and eax, dword [0x480870]
or eax, dword [0x480874]
jmp 0x40fe3e
mov dword [ebx + 0x6c], eax
jmp 0x40fe81
mov dword [ebx + 0x6c], 0x1b
jmp 0x40fe81
mov eax, dword [esi + 0x90]
mov dword [ebx + 0x84], eax
mov eax, dword [esi + 0x94]
mov dword [ebx + 0x7c], eax
mov eax, dword [esi + 0x98]
mov dword [ebx + 0x80], eax
mov eax, dword [esi + 0x8c]
mov dword [ebx + 0x88], eax
jmp 0x40feed
or eax, 3
jmp 0x420ca9
mov eax, dword [esi + 0x8c]
mov dword [ebx + 0x30], eax
jmp 0x40feed
mov eax, esi
mov eax, dword [eax + 0x88]
and eax, 6
or dword [ebx + 0x298], eax
jmp 0x40ff43
xor edx, edx
shr ecx, 1
inc edx
shl edx, cl
or word [ebx + 0x90], dx
jmp 0x42ab64
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x8c], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x90], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x94], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x98], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x9c], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0xa0], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0xa4], eax
xor eax, eax
mov cl, byte [esi + eax + 0x38]
mov byte [ebx + eax + 0xa8], cl
inc eax
cmp eax, 0x50
jae 0x43c5bd
jmp 0x44b04f
mov eax, dword [esi + 0x88]
and eax, 6
or dword [ecx], eax
jmp 0x40ff55
mov eax, dword fs:[0x124]
mov eax, dword [eax + 0x44]
cmp dword [eax + 0x158], 0
je 0x44b0a3
lea eax, [ebx + 0x298]
and dword [eax], 0xfffffff0
mov edx, dword [esi + 0x88]
and edx, 6
movzx edx, byte [edx + 0x58e620]
jmp 0x44b0c6
lea eax, [esi + 0x1c]
push eax
call fcn.00445ac8
test al, al
je 0x40ff55
lea eax, [ebx + 0x298]
and dword [eax], 0xfffffff5
mov edx, dword [esi + 0x88]
and edx, 2
mov ecx, dword [eax]
or edx, ecx
mov dword [eax], edx
jmp 0x40ff55
or byte [ebp + 0x17], 0x40
jmp 0x40ffb2