Function at 0x50ea70
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5789c0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x6b38a0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x13]
call fcn.00417d80
mov ebx, dword [esp + 0x70]
push 0xa
push 0
push 5
push ebx
mov dword [esp + 0x78], 0
call fcn.0041aa70
fmul qword [0x674328]
lea eax, [esp + 0x44]
movzx esi, bl
push eax
fstp dword [esp + 0x48]
push esi
push 0x2000018
call fcn.00419cf0
lea ecx, [esp + 0x2e]
push ecx
push esi
push 0x101007b
call fcn.00419de0
lea edx, [esp + 0x3a]
push edx
push esi
push 0x2010044
call fcn.00419cf0
push 0xa
push 0
push 9
push ebx
call fcn.0041aa70
fstp dword [esp + 0x74]
add esp, 0x44
lea eax, [esp + 0x30]
push eax
push esi
push 0x2000019
call fcn.00419cf0
lea ecx, [esp + 0x1e]
push ecx
push esi
push 0x1010070
call fcn.00419de0
lea edx, [esp + 0x2a]
push edx
push esi
push 0x2010046
call fcn.00419cf0
push 0xa
push 0
push 7
push ebx
call fcn.0041aa70
fstp dword [esp + 0xa4]
lea eax, [esp + 0x48]
push eax
push esi
push 0x1010077
call fcn.00419de0
fldz
mov al, byte [esp + 0x54]
fst dword [esp + 0x98]
fld dword [esp + 0xb0]
mov cl, byte [esp + 0x52]
fstp dword [esp + 0x80]
add esp, 0x40
fld dword [esp + 0x30]
mov dword [esp + 0x3c], 1
fstp dword [esp + 0x48]
mov byte [esp + 0x5c], 1
mov byte [esp + 0x44], al
mov byte [esp + 0x4c], cl
test al, al
jne 0x50ebcd
lea ecx, [esp + 0x70]
fstp st(0)
call fcn.00417d80
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x74]
mov byte [esp + 0x6c], 1
call fcn.00415b30
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], 0
call fcn.00415980
jmp 0x50ebd5
fstp dword [esp + 0x50]
mov byte [esp + 0x54], al
cmp byte [esp + 0x54], 0
jne 0x50ebee
fld dword [esp + 0x50]
fld1
fdivrp st(1)
fmul qword [0x674328]
fstp dword [esp + 0x50]
lea eax, [esp + 0x50]
push eax
push esi
push 0x200001a
call fcn.00419cf0
lea ecx, [esp + 0x60]
push ecx
push esi
push 0x2010045
call fcn.00419cf0
push 0xa
push 0
push 0
push ebx
call fcn.0041aa70
fstp dword [esp + 0x50]
lea edx, [esp + 0x3d]
push edx
push esi
push 0x101006e
call fcn.00419de0
add esp, 0x34
cmp byte [esp + 0x15], 0
je 0x50ec44
lea eax, [esp + 0x12]
mov byte [esp + 0x12], 3
push eax
jmp 0x50ec4e
lea ecx, [esp + 0x12]
mov byte [esp + 0x12], 0
push ecx
push esi
push 0x2010009
call fcn.00419cf0
add esp, 0xc
lea edx, [esp + 0x16]
push edx
push esi
push 0x301044c
call fcn.00419de0
lea eax, [esp + 0x2c]
push eax
push esi
push 0x30000fa
call fcn.00419de0
lea ecx, [esp + 0x34]
push ecx
push esi
push 0x30000fb
call fcn.00419de0
mov al, byte [esp + 0x3a]
add esp, 0x24
cmp al, 4
jne 0x50ecb6
lea edx, [esp + 0x24]
push edx
push esi
push 0x30001e0
call fcn.00419de0
fld dword [esp + 0x34]
fld dword [esp + 0x30]
add esp, 0xc
fcompp
jmp 0x50ed17
cmp al, 5
jne 0x50ed41
lea edx, [esp + 0x38]
push edx
push esi
push 0x30001e1
call fcn.00419de0
lea eax, [esp + 0x30]
push eax
push esi
push 0x30001e0
call fcn.00419de0
fld dword [esp + 0x40]
fld dword [esp + 0x50]
add esp, 0x18
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x50ed11
lea ecx, [esp + 0x20]
fstp st(0)
push ecx
push esi
push 0x3000106
call fcn.00419de0
lea edx, [esp + 0x28]
push edx
push esi
push 0x3000107
jmp 0x50ed39
fld dword [esp + 0x24]
fcompp
fnstsw ax
test ah, 5
jp 0x50ed41
lea eax, [esp + 0x20]
push eax
push esi
push 0x3000100
call fcn.00419de0
lea ecx, [esp + 0x28]
push ecx
push esi
push 0x3000101
call fcn.00419de0
add esp, 0x18
fld dword [esp + 0x28]
sub esp, 0xc
fstp dword [esp + 8]
lea ecx, [esp + 0x1f]
fld dword [esp + 0x28]
fstp dword [esp + 4]
fld dword [esp + 0x2c]
fstp dword [esp]
call fcn.00417d90
lea edx, [esp + 0x2c]
fstp dword [esp + 0x2c]
push edx
push 0
push 0x2000007
call fcn.00419cf0
lea eax, [esp + 0x38]
push eax
push esi
push 0x2000004
call fcn.00419cf0
lea ecx, [esp + 0x30]
push ecx
push esi
push 0x2020003
call fcn.00419de0
lea edx, [esp + 0x3b]
push edx
push esi
push 0x2010010
call fcn.00419de0
fld dword [esp + 0x5c]
movzx eax, word [esp + 0x48]
fstp dword [esp + 0x2c]
movzx ecx, byte [esp + 0x47]
cdq
idiv ecx
add esp, 0x2c
mov ecx, edi
push edx
call fcn.005038d0
lea edx, [esp + 0x12]
push edx
push esi
push 0x2010008
call fcn.00419cf0
add esp, 0xc
lea ecx, [esp + 0x13]
mov dword [esp + 0x68], 0xffffffff
call fcn.00415980
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x5c
ret 4