Function at 0x490c10
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4a6e7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa0]
push edi
lea ecx, [esp + 0x30]
lea edi, [esi + 0x70]
push edi
call fcn.0040f9a0
xor ebp, ebp
push 0x80
push ebp
lea ecx, [esp + 0x64]
call fcn.00439d40
push 0x80
push ebp
lea ecx, [esp + 0x54]
mov dword [esp + 0xa4], ebp
call fcn.00439d40
push 0x80
push ebp
lea ecx, [esp + 0x74]
mov byte [esp + 0xa4], 1
call fcn.00439d40
mov ecx, 0x7fff
mov eax, 0xffff8001
mov word [esp + 0x10], cx
mov word [esp + 0x12], cx
mov word [esp + 0x14], ax
mov word [esp + 0x16], ax
mov word [esp + 0x24], cx
mov word [esp + 0x26], cx
mov word [esp + 0x28], ax
mov word [esp + 0x2a], ax
mov ebx, dword [esp + 0xac]
mov byte [esp + 0x9c], 4
mov ecx, ebx
call fcn.0043a070
fmul qword [0x4dce58]
fld dword [esi + 0x2c]
fmul qword [0x4dce48]
fstp qword [esp + 0x1c]
fcom qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
je 0x490ced
fstp st(0)
fld qword [esp + 0x1c]
fst dword [esp + 0x2c]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
call sub.MSVCRT.dll__ftol
push eax
push ebx
call fcn.004911a0
movsx ecx, word [ebx + 8]
mov edx, dword [0x4dd008]
add esp, 0x10
cmp ecx, edx
mov dword [esp + 0x1c], ecx
jle 0x491126
movsx edx, ax
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fidiv dword [esp + 0x1c]
fcomp qword [0x4dcec8]
fnstsw ax
test ah, 1
jne 0x491126
sub ecx, edx
cmp ecx, 1
jl 0x491126
mov dword [esp + 0x30], edi
mov eax, dword [edi]
mov dword [esp + 0x34], eax
mov edi, dword [edi]
cmp edi, ebp
je 0x490d61
mov eax, dword [edi]
jmp 0x490d63
xor eax, eax
cmp eax, ebp
mov dword [esp + 0x38], eax
je 0x490d6f
mov ecx, dword [eax]
jmp 0x490d71
xor ecx, ecx
cmp eax, ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], ebp
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 0
je 0x490d8d
mov dword [esp + 0x44], eax
jmp 0x490d92
mov byte [esp + 0x41], 1
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0
call fcn.00440430
movsx edi, word [eax + 0xc]
mov al, byte [0x4dd138]
test al, al
je 0x490dc0
lea ecx, [esp + 0x30]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00428280
jmp 0x490ded
mov al, byte [0x4dd098]
test al, al
je 0x490dde
lea eax, [esp + 0x30]
lea ecx, [esp + 0x1c]
push eax
push esi
push ecx
call fcn.00493d00
add esp, 0xc
jmp 0x490df0
lea edx, [esp + 0x30]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.004281b0
add esp, 8
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
movsx edx, cx
sub edi, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x30]
xor edi, edi
cmp dword [eax], edi
je 0x490fa9
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
cmp ecx, eax
jne 0x490e34
mov al, byte [esp + 0x48]
test al, al
jne 0x490fa9
mov al, byte [0x4dd138]
test al, al
je 0x490e4e
lea edx, [esp + 0x30]
lea eax, [esp + 0x7c]
push edx
push eax
call fcn.00428280
jmp 0x490e7c
mov al, byte [0x4dd098]
lea edx, [esp + 0x30]
test al, al
push edx
je 0x490e6f
lea eax, [esp + 0x88]
push esi
push eax
call fcn.00493d00
add esp, 0xc
jmp 0x490e7f
lea eax, [esp + 0x90]
push eax
call fcn.004281b0
add esp, 8
mov edi, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x1c]
push edi
push ebp
push edx
mov ebx, edi
push eax
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
sub ebx, ebp
call fcn.00493bd0
add esp, 0x14
test al, al
jne 0x490f6f
movsx ecx, bx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x490f6f
fild dword [esp + 0x18]
fld dword [esi + 0x2c]
fmul qword [0x4dcf48]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x490f4d
fld dword [esi + 0x2c]
fmul qword [0x4dcf58]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x490f25
mov al, byte [0x4dd0f8]
test al, al
je 0x490f4f
mov edx, dword [esp + 0x24]
push ebp
push edx
push esi
call fcn.00493370
add esp, 0xc
test al, al
jne 0x490f25
mov eax, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.00493370
add esp, 0xc
test al, al
je 0x490f4f
mov ecx, dword [esp + 0x24]
push ebp
push ecx
push esi
call fcn.00493410
add esp, 0xc
test al, al
je 0x490f5f
mov edx, dword [esp + 0x14]
push edx
push edi
push esi
call fcn.00493410
add esp, 0xc
test al, al
je 0x490f5f
jmp 0x490f4f
fstp st(0)
mov eax, dword [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x64]
call fcn.00439e30
mov ecx, dword [esp + 0x18]
push 1
push ecx
lea ecx, [esp + 0x54]
call fcn.00439e30
movsx ecx, bx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 1
je 0x490f91
push 1
push ecx
lea ecx, [esp + 0x74]
call fcn.00439e30
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0xac]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
jmp 0x490e0e
mov eax, dword [esp + 0x64]
mov ecx, dword [0x4dd018]
cmp eax, ecx
jl 0x490fc2
lea ecx, [esp + 0x5c]
call fcn.0043a070
jmp 0x490fe2
mov dl, byte [esp + 0xb0]
test dl, dl
je 0x4910c5
cmp eax, edi
jle 0x4910c5
lea ecx, [esp + 0x5c]
call fcn.00439ed0
fstp dword [esi + 0x48]
mov al, byte [0x4dd0c8]
lea ecx, [esp + 0x6c]
test al, al
jne 0x490ff4
mov ecx, ebx
call fcn.0043a070
fstp dword [esi + 0x44]
fld dword [esi + 0x44]
fadd dword [esi + 0x48]
sub esp, 8
fmul dword [0x4a8208]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
add esp, 8
call sub.MSVCRT.dll__ftol
mov ecx, eax
mov dword [esp + 0x1c], ecx
mov dword [esi + 0x40], ecx
fild dword [esp + 0x1c]
fcom dword [esi + 0x44]
fnstsw ax
test ah, 0x41
jne 0x4910df
fcomp dword [esi + 0x48]
fnstsw ax
test ah, 1
je 0x4910e1
cmp ecx, edi
jle 0x4910e1
cmp dword [0x4dd028], 5
jle 0x491088
fld dword [esi + 0x48]
movsx edx, word [esp + 0xb8]
movsx eax, word [esp + 0xb4]
sub esp, 8
fstp qword [esp]
fld dword [esi + 0x44]
push ecx
sub esp, 8
fstp qword [esp]
push edx
push eax
push 0x4c7a34
call fcn.00443600
add esp, 0x20
lea ecx, [esp + 0x6c]
mov byte [esp + 0x9c], 1
call fcn.00439e10
lea ecx, [esp + 0x4c]
mov byte [esp + 0x9c], 0
call fcn.00439e10
lea ecx, [esp + 0x5c]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00439e10
mov al, 1
jmp 0x491186
mov eax, dword [esp + 0x54]
cmp eax, ecx
lea ecx, [esp + 0x4c]
jl 0x490fdd
call fcn.0043a070
jmp 0x490fe2
fstp st(0)
cmp dword [0x4dd028], edi
jle 0x49111b
fld dword [esi + 0x48]
movsx edx, word [esp + 0xb4]
sub esp, 8
fstp qword [esp]
fld dword [esi + 0x44]
push ecx
movsx ecx, word [esp + 0xc4]
sub esp, 8
fstp qword [esp]
push ecx
push edx
push 0x4c79f8
call fcn.00443600
add esp, 0x20
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
jmp 0x49114e
cmp dword [0x4dd028], 5
jle 0x49114e
movsx eax, word [esp + 0xb8]
movsx ecx, word [esp + 0xb4]
push eax
push ecx
push 0x4c79cc
call fcn.00443600
add esp, 0xc
lea ecx, [esp + 0x6c]
mov byte [esp + 0x9c], 1
call fcn.00439e10
lea ecx, [esp + 0x4c]
mov byte [esp + 0x9c], 0
call fcn.00439e10
lea ecx, [esp + 0x5c]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00439e10
xor al, al
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret