Function at 0x498f5a
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61d730
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov ax, word [eax + 0x14]
cmp ax, word [0x6464c4]
je 0x498fb1
mov ecx, dword [esi + 0x364]
xor edi, edi
cmp ecx, edi
je 0x498f85
call fcn.0054f4f0
mov dword [esi + 0x364], edi
mov ecx, dword [esi + 0x360]
cmp ecx, edi
je 0x4995ba
call fcn.0054f4f0
mov dword [esi + 0x360], edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ebx, dword [esi + 0x280]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebx
je 0x4995ba
mov cl, byte [ebx + 0x2c]
shr cl, 5
test cl, 1
je 0x499188
mov eax, dword [esi + 0x364]
lea edi, [esi + 0x364]
cmp eax, ebp
jne 0x49905c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x3c]
cmp eax, 2
je 0x49905c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov ecx, dword [esi + 0x21c]
mov ebp, dword [esi + 0x358]
mov dword [esp + 0x18], ecx
mov ecx, ebp
mov byte [esp + 0x14], al
call fcn.004995d0
mov ebx, eax
test ebx, ebx
je 0x49902b
mov edx, dword [esp + 0x18]
mov ecx, ebx
push edx
call fcn.0054f2f0
mov dword [ebx + 0x54], edi
mov dword [edi], ebx
jmp 0x49905c
cmp byte [esp + 0x14], 3
jae 0x49905c
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0xec]
xor eax, eax
and ecx, 0xff
mov al, byte [ebp + 0x1e3]
sub eax, ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [edx + eax*4 - 4]
mov dword [eax + 0x34], ecx
mov dword [eax + 0x54], edi
mov dword [edi], eax
mov eax, dword [edi]
mov ebx, dword [esp + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x49919d
fld dword [ebx + 0x34]
fld dword [esi + 0x2e0]
fxch st(1)
fstp dword [esp + 0x20]
mov edx, dword [esi + 0x2d8]
fstp dword [esp + 0x24]
mov dword [esp + 0x1c], edx
fld dword [esi + 0xbc]
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x3c], ebp
fstp dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebp
fld dword [esi + 0x98]
fld dword [esi + 0x94]
fld dword [esi + 0x90]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
mov byte [esp + 0x3c], 1
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
fstp st(0)
fstp st(0)
fstp st(0)
push ecx
call fcn.005917c0
mov edx, dword [esi + 0x368]
mov al, byte [esi + 0x135]
add esp, 4
cmp al, 9
fld dword [edx + 0xc]
fxch st(1)
fdiv st(1)
fstp dword [esp + 0x14]
fstp st(0)
je 0x499156
cmp al, 0xa
je 0x499156
test byte [esi + 0x384], 7
jne 0x499156
fld dword [esi + 0x8c]
fcomp dword [0x623b34]
mov edi, dword [edi]
push 8
fnstsw ax
test ah, 5
jnp 0x49915a
mov ecx, dword [esi + 0x35c]
mov eax, dword [esp + 0x18]
mov edx, ecx
mov dword [esp + 0x1c], ecx
push edx
push eax
lea ecx, [esp + 0x34]
push 0x662138
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, edi
call fcn.0054f310
mov dword [esp + 0x3c], 0xffffffff
jmp 0x49919d
mov edi, dword [edi]
push 2
mov eax, dword [esi + 0x35c]
lea edx, [esp + 0x2c]
mov ecx, eax
mov dword [esp + 0x1c], eax
push ecx
push ebp
push 0x662138
lea eax, [esp + 0x2c]
push edx
push eax
mov ecx, edi
call fcn.0054f310
mov dword [esp + 0x3c], 0xffffffff
jmp 0x49919d
mov ecx, dword [esi + 0x364]
cmp ecx, ebp
je 0x49919d
call fcn.0054f4f0
mov dword [esi + 0x364], ebp
mov cl, byte [ebx + 0x2c]
shr cl, 1
test cl, 1
je 0x4995a5
mov eax, dword [esi + 0x360]
lea edi, [esi + 0x360]
cmp eax, ebp
jne 0x499226
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x3c]
mov ebp, dword [esi + 0x358]
mov byte [esp + 0x18], al
mov eax, dword [esi + 0x21c]
mov ecx, ebp
mov dword [esp + 0x14], eax
call fcn.004995d0
mov ebx, eax
test ebx, ebx
je 0x4991f6
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.0054f2f0
mov dword [ebx + 0x54], edi
mov dword [edi], ebx
jmp 0x499226
cmp byte [esp + 0x18], 3
jae 0x499226
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xec]
xor edx, edx
and eax, 0xff
mov dl, byte [ebp + 0x1e3]
sub edx, eax
mov eax, dword [ecx + edx*4 - 4]
mov edx, dword [esp + 0x14]
mov dword [eax + 0x34], edx
mov dword [eax + 0x54], edi
mov dword [edi], eax
cmp dword [edi], 0
je 0x4995ba
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x2d8]
mov dword [esp + 0x1c], eax
fld dword [ebx + 0x34]
fld dword [esi + 0x2e0]
fxch st(1)
fstp dword [esp + 0x20]
fstp dword [esp + 0x24]
fld dword [esi + 0xbc]
mov ecx, dword [esi + 0xb4]
mov dword [esp + 0x3c], 2
fstp dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
fld dword [esi + 0x98]
fld dword [esi + 0x94]
fld dword [esi + 0x90]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
mov byte [esp + 0x3c], 3
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
fstp st(0)
fstp st(0)
fstp st(0)
push edx
call fcn.005917c0
mov eax, dword [esi + 0x368]
add esp, 4
fld dword [eax + 0xc]
fdivr st(1)
mov al, byte [esi + 0x18]
shr al, 1
and al, 0xf
fstp dword [esp + 0x10]
fstp st(0)
je 0x4992d0
cmp al, 1
jne 0x49934d
mov eax, dword [esi + 0x38c]
test al, 4
je 0x49934d
test al, 8
jne 0x49934d
fld dword [esp + 0x10]
fcomp dword [0x625a6c]
fnstsw ax
and eax, 0x4100
jne 0x49934d
mov ecx, dword [esi + 0x35c]
mov edx, dword [esi + 0x358]
mov dword [esp + 0x18], ecx
mov al, byte [edx + 0x1e2]
mov cl, byte [edx + 0x16]
cmp al, cl
jae 0x49933d
mov ebp, dword [edx + 0xa4]
mov ecx, eax
and ecx, 0xff
inc al
mov ecx, dword [ebp + ecx*4]
mov byte [edx + 0x1e2], al
test ecx, ecx
je 0x49933d
mov edx, dword [esp + 0x18]
push 2
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00550380
mov eax, dword [esi + 0x390]
or al, 0x10
mov dword [esi + 0x390], eax
jmp 0x4993b6
mov eax, dword [esi + 0x38c]
test al, 4
jne 0x4993b6
test al, 8
je 0x4993b6
test byte [esi + 0x384], 7
je 0x4993b6
fld dword [esi + 0x35c]
mov edx, dword [esi + 0x358]
fmul dword [0x622c20]
mov al, byte [edx + 0x1e2]
mov cl, byte [edx + 0x16]
cmp al, cl
fstp dword [esp + 0x18]
jae 0x4993b6
mov ebp, dword [edx + 0xa4]
mov ecx, eax
and ecx, 0xff
inc al
mov ecx, dword [ebp + ecx*4]
mov byte [edx + 0x1e2], al
test ecx, ecx
je 0x4993b6
mov edx, dword [esp + 0x18]
push 2
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00550380
test byte [esi + 0x338], 2
je 0x49949b
fld dword [ebx + 0x34]
fld dword [esi + 0x70]
fadd dword [0x6222d4]
mov ecx, dword [0x6621f4]
fcompp
mov ecx, dword [ecx + 0x8c]
fnstsw ax
test ah, 5
jp 0x49941b
fld dword [esi + 0x35c]
push 6
push ecx
fstp dword [esp]
push 0
mov ecx, dword [edi]
lea edx, [esp + 0x34]
push 0x662138
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0054f310
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [ecx + 0x40]
fld dword [ecx + 0x9c]
fcomp dword [0x622c08]
fnstsw ax
and eax, 0x4100
jne 0x499446
fld dword [esi + 0x35c]
push 5
push ecx
mov ecx, dword [esp + 0x18]
fstp dword [esp]
push ecx
jmp 0x4993f2
fld dword [esp + 0x10]
fcomp dword [0x623b34]
fld dword [esi + 0x35c]
lea edx, [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x49946b
push 1
push ecx
fstp dword [esp]
push 0
jmp 0x499476
mov eax, dword [esp + 0x10]
push 4
push ecx
fstp dword [esp]
push eax
lea ecx, [esp + 0x34]
push 0x662138
push ecx
push edx
mov ecx, dword [edi]
call fcn.0054f310
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov al, byte [esi + 0x135]
cmp al, 9
je 0x499583
cmp al, 0xa
je 0x499583
test byte [esi + 0x384], 7
jne 0x499583
test byte [esi + 0x38c], 4
je 0x499501
fld dword [esi + 0x35c]
mov eax, dword [esp + 0x10]
push 3
push ecx
lea ecx, [esp + 0x30]
fstp dword [esp]
push eax
push 0x662138
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [edi]
push edx
call fcn.0054f310
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
fld dword [esi + 0x8c]
fcomp dword [0x623b34]
fld dword [esi + 0x35c]
fnstsw ax
test ah, 5
jp 0x49954b
push 2
push ecx
lea eax, [esp + 0x30]
lea ecx, [esp + 0x24]
fstp dword [esp]
push 0
push 0x662138
push eax
push ecx
mov ecx, dword [edi]
call fcn.0054f310
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov edx, dword [esp + 0x10]
push 7
push ecx
lea eax, [esi + 0x288]
lea ecx, [esp + 0x30]
add esi, 0x298
fstp dword [esp]
push edx
push eax
push ecx
mov ecx, dword [edi]
push esi
call fcn.0054f310
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
fld dword [esi + 0x35c]
push 2
push ecx
fstp dword [esp]
push 0
lea edx, [esp + 0x34]
push 0x662138
lea eax, [esp + 0x2c]
push edx
push eax
jmp 0x499481
mov ecx, dword [esi + 0x360]
cmp ecx, ebp
je 0x4995ba
call fcn.0054f4f0
mov dword [esi + 0x360], ebp
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret