Function at 0x418850
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4751a1
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x495278]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x495278]
xor eax, esp
push eax
lea eax, [esp + 0x2f4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x304]
mov dword [esp + 0x2c], ecx
mov ecx, 9
mov esi, 0x48a150
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edx
mov byte [esp + 0x1b], 0
mov word [esp + 0xac], 0x20
mov word [esp + 0xae], 0x3a
mov word [esp + 0xb0], 0x5c
mov word [esp + 0xb2], bx
movsw word es:[edi], word [esi]
call dword [0x4790d0]
xor edi, edi
mov dword [esp + 0x24], eax
or ebp, 0xffffffff
mov al, byte [esp + 0x1b]
test al, al
jne 0x418b48
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x24]
test ecx, eax
je 0x418b38
lea eax, [esp + 0xac]
lea edx, [ebx + 0x41]
push eax
mov word [esp + 0xb0], dx
call dword [0x4790d4]
cmp eax, 3
je 0x418937
cmp eax, 6
jne 0x418b38
push 0
push 0
push 3
push 0
push 3
lea ecx, [edi + 0x30]
push 0xc0000000
lea edx, [esp + 0xcc]
add edi, 1
push edx
mov word [esp + 0xf2], cx
mov dword [esp + 0x3c], edi
call dword [0x4792ac]
mov esi, eax
cmp esi, ebp
je 0x418b38
xor eax, eax
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x20]
push eax
push 0x18
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0x74080
push esi
mov dword [esp + 0x3c], 0
call dword [0x4790e0]
mov al, byte [esp + 0x3b]
test al, al
jbe 0x418b2d
mov cl, bl
shr al, cl
push 0x210
lea edx, [esp + 0xe0]
and al, 0x10
neg al
sbb al, al
and al, 0xb5
add al, 0xec
mov byte [esp + 0x38], al
xor eax, eax
push eax
push edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov byte [esp + 0xb4], al
call fcn.00459cd0
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0xec]
push ecx
lea edi, [esp + 0x30]
mov cl, bl
lea eax, [esp + 0x9c]
call fcn.00418570
add esp, 0x14
test al, al
je 0x418b2d
cmp dword [esp + 0xdc], 0x2e
jbe 0x418b2d
lea edx, [esp + 0xec]
push edx
lea eax, [esp + 0x54]
mov ecx, 0x13
push eax
lea edx, [ecx - 9]
call fcn.004185e0
add esp, 8
mov ecx, dword [esp + 0x28]
push ebp
push 0
push eax
mov dword [esp + 0x308], 0
call fcn.0040bed0
lea ecx, [esp + 0x50]
mov dword [esp + 0x2fc], ebp
call fcn.0040bc20
lea ecx, [esp + 0xec]
push ecx
lea edx, [esp + 0x54]
mov ecx, 0x2e
push edx
lea edx, [ecx - 0x13]
call fcn.004185e0
add esp, 8
mov ecx, dword [esp + 0x2c]
push ebp
push 0
push eax
mov dword [esp + 0x308], 1
call fcn.0040bed0
lea ecx, [esp + 0x50]
mov dword [esp + 0x2fc], ebp
call fcn.0040bc20
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x1a
lea edx, [ecx - 3]
call fcn.004185e0
add esp, 8
mov ecx, dword [esp + 0x30]
push ebp
push 0
push eax
mov dword [esp + 0x308], 2
call fcn.0040bed0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x2fc], ebp
call fcn.0040bc20
mov byte [esp + 0x1b], 1
push esi
call dword [0x4792d0]
mov edi, dword [esp + 0x20]
add ebx, 1
cmp ebx, 0x20
jl 0x4188ef
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x2f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.00454f15
add esp, 0x2ec
ret