Function at 0x974264
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x974726
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
mov eax, 0x974740
call fcn.00973e00
shr eax, 0x10
and eax, 0xff
cmp eax, 5
setg byte [ebp - 0x11]
call fcn.00973cbc
test al, al
je 0x9742c7
cmp byte [ebx + 0x2f0], 0
je 0x9742c7
mov eax, dword [0x9f2070]
mov eax, dword [eax]
call eax
test eax, eax
je 0x9742c7
cmp byte [ebp - 0x11], 0
jne 0x9742cb
xor eax, eax
jmp 0x9742cd
mov al, 1
mov byte [ebp - 0x12], al
cmp byte [ebp - 0x12], 0
je 0x97456c
fld dword [0x97475c]
fmul dword [ebx + 0x2f4]
call fcn.00405668
mov edi, eax
fld dword [ebx + 0x2f4]
fcomp dword [0x974760]
wait
fnstsw ax
sahf
jb 0x974304
mov edi, 0x14
fld dword [ebx + 0x2f4]
fcomp dword [0x974760]
wait
fnstsw ax
sahf
ja 0x97431b
mov edi, 0x10
movzx eax, byte [ebx + 0x2c8]
sub al, 1
jb 0x97432e
je 0x974337
dec al
je 0x974368
jmp 0x97437a
mov dword [ebp - 0xc], 4
jmp 0x97437a
lea edx, [ebp - 0x34]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov esi, dword [ebp - 0x28]
lea edx, [ebp - 0x44]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x60]
sub esi, dword [ebp - 0x40]
sar esi, 1
jns 0x974358
adc esi, 0
mov eax, edi
sar eax, 1
jns 0x974361
adc eax, 0
sub esi, eax
mov dword [ebp - 0xc], esi
jmp 0x97437a
lea edx, [ebp - 0x34]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x28]
sub eax, edi
mov dword [ebp - 0xc], eax
cmp byte [ebx + 0x2c9], 1
je 0x974392
mov eax, ebx
mov si, 0xffc6
call fcn.00406ca4
test al, al
je 0x9743a4
lea edx, [ebp - 0x34]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov esi, dword [ebp - 0x2c]
sub esi, edi
dec esi
jmp 0x9743a6
xor esi, esi
push 0x974764
mov eax, ebx
call fcn.0051a434
push eax
mov eax, dword [0x9f1c98]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add eax, edi
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + esi]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040e324
cmp dword [ebp - 0x10], 0
je 0x974568
cmp byte [ebx + 0x299], 0
je 0x9744aa
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
jne 0x974420
push 0
lea eax, [ebp - 0x24]
push eax
push 8
push 2
mov eax, dword [ebx + 0x290]
call fcn.004eadd0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x9f1eec]
mov eax, dword [eax]
call eax
jmp 0x974559
cmp byte [ebx + 0x298], 0
je 0x974451
push 0
lea eax, [ebp - 0x24]
push eax
push 7
push 2
mov eax, dword [ebx + 0x290]
call fcn.004eadd0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x9f1eec]
mov eax, dword [eax]
call eax
jmp 0x974559
cmp byte [ebx + 0x2de], 0
je 0x974482
push 0
lea eax, [ebp - 0x24]
push eax
push 6
push 2
mov eax, dword [ebx + 0x290]
call fcn.004eadd0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x9f1eec]
mov eax, dword [eax]
call eax
jmp 0x974559
push 0
lea eax, [ebp - 0x24]
push eax
push 5
push 2
mov eax, dword [ebx + 0x290]
call fcn.004eadd0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x9f1eec]
mov eax, dword [eax]
call eax
jmp 0x974559
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
jne 0x9744da
push 0
lea eax, [ebp - 0x24]
push eax
push 4
push 2
mov eax, dword [ebx + 0x290]
call fcn.004eadd0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x9f1eec]
mov eax, dword [eax]
call eax
jmp 0x974559
cmp byte [ebx + 0x298], 0
je 0x974508
push 0
lea eax, [ebp - 0x24]
push eax
push 3
push 2
mov eax, dword [ebx + 0x290]
call fcn.004eadd0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x9f1eec]
mov eax, dword [eax]
call eax
jmp 0x974559
cmp byte [ebx + 0x2de], 0
je 0x974536
push 0
lea eax, [ebp - 0x24]
push eax
push 2
push 2
mov eax, dword [ebx + 0x290]
call fcn.004eadd0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x9f1eec]
mov eax, dword [eax]
call eax
jmp 0x974559
push 0
lea eax, [ebp - 0x24]
push eax
push 1
push 2
mov eax, dword [ebx + 0x290]
call fcn.004eadd0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x9f1eec]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x9f1f28]
mov eax, dword [eax]
call eax
jmp 0x97456c
mov byte [ebp - 0x12], 0
cmp byte [ebp - 0x12], 0
jne 0x974710
fld dword [0x974774]
fmul dword [ebx + 0x2f4]
call fcn.00405668
mov edi, eax
lea eax, [ebp - 4]
mov edx, 0x974784
call fcn.00408b70
mov dl, 1
mov eax, dword [0x4e6d30]
call fcn.004efc38
mov dword [ebp - 8], eax
cmp byte [ebx + 0x299], 0
je 0x9745ed
cmp byte [ebx + 0x298], 0
je 0x9745c6
lea eax, [ebp - 4]
mov edx, 0x9747a0
call fcn.00408b70
jmp 0x97462a
cmp byte [ebx + 0x2de], 0
je 0x9745de
lea eax, [ebp - 4]
mov edx, 0x9747c0
call fcn.00408b70
jmp 0x97462a
lea eax, [ebp - 4]
mov edx, 0x9747e0
call fcn.00408b70
jmp 0x97462a
cmp byte [ebx + 0x298], 0
je 0x974605
lea eax, [ebp - 4]
mov edx, 0x9747fc
call fcn.00408b70
jmp 0x97462a
cmp byte [ebx + 0x2de], 0
je 0x97461d
lea eax, [ebp - 4]
mov edx, 0x97481c
call fcn.00408b70
jmp 0x97462a
lea eax, [ebp - 4]
mov edx, 0x97483c
call fcn.00408b70
mov ecx, dword [ebp - 4]
mov edx, dword [0x9f5c54]
mov eax, dword [ebp - 8]
call fcn.004f0d10
mov dl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x40]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004f1a28
movzx eax, byte [ebx + 0x2c8]
sub al, 1
jb 0x974662
je 0x97466b
dec al
je 0x97469c
jmp 0x9746b1
mov dword [ebp - 0xc], 4
jmp 0x9746b1
lea edx, [ebp - 0x34]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov esi, dword [ebp - 0x28]
lea edx, [ebp - 0x44]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x60]
sub esi, dword [ebp - 0x40]
sar esi, 1
jns 0x97468c
adc esi, 0
mov eax, edi
sar eax, 1
jns 0x974695
adc eax, 0
sub esi, eax
mov dword [ebp - 0xc], esi
jmp 0x9746b1
lea edx, [ebp - 0x34]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x28]
sub eax, edi
sub eax, 2
mov dword [ebp - 0xc], eax
cmp byte [ebx + 0x2c9], 1
je 0x9746c9
mov eax, ebx
mov si, 0xffc6
call fcn.00406ca4
test al, al
je 0x9746db
lea edx, [ebp - 0x34]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov esi, dword [ebp - 0x2c]
sub esi, edi
dec esi
jmp 0x9746dd
xor esi, esi
mov eax, dword [ebp - 0xc]
add eax, edi
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + esi]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040e324
lea edx, [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x290]
mov ebx, dword [eax]
call dword [ebx + 0x88]
mov eax, dword [ebp - 8]
call fcn.004069e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x97472d
lea eax, [ebp - 4]
call fcn.00408748
ret