Function at 0x499740
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x66dfd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebx
call fcn.0064dc20
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
push 0xa
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0xa8], edi
mov dword [esp + 0x30], 0x69de10
call fcn.0048b670
mov esi, dword [ebx + 0xa0]
mov dword [esp + 0xa0], 1
cmp esi, edi
mov dword [esp + 0x24], esi
jne 0x4997dd
mov dword [esp + 0x28], 0x69de4c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa0], 2
cmp eax, edi
je 0x499bcf
jmp 0x499bc6
mov ecx, dword [ebx + 0x80]
mov eax, dword [ecx]
call dword [eax + 0xb8]
fstp qword [esp + 0x5c]
xor eax, eax
cmp esi, edi
mov dword [esp + 0xc], eax
jle 0x499b05
jmp 0x499801
xor edi, edi
mov ecx, dword [ebx + 0x9c]
mov esi, dword [ecx + eax*4]
mov ecx, esi
call fcn.0050ba10
cmp eax, 1
jne 0x4998e9
lea edx, [esp + 0x68]
mov ecx, esi
push edx
call fcn.004ac900
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebx + 0x80]
mov dword [esp + 0x50], edx
sub esp, 0x18
mov dword [esp + 0x64], ecx
mov edi, dword [eax]
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0064dc70
mov ecx, dword [ebx + 0x80]
call dword [edi + 0x108]
test eax, eax
je 0x499af0
cmp eax, 5
je 0x499af0
cmp eax, 6
je 0x499af0
mov eax, dword [ebp + 8]
push eax
push esi
call fcn.00499680
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x499af0
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
inc eax
push eax
lea ecx, [esp + 0x30]
call fcn.0048b670
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push esi
mov dword [ecx + edx*4], esi
mov ecx, edi
call fcn.0048f4b0
mov ecx, esi
call fcn.0050ba90
mov eax, dword [eax + 4]
push edi
push ebx
mov ecx, esi
mov dword [eax], edi
call fcn.004bd1e0
jmp 0x499af0
cmp eax, edi
jne 0x499af0
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
call fcn.004ac900
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebx + 0x80]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
sub esp, 0x18
mov edi, dword [ecx]
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0064dc70
mov ecx, dword [ebx + 0x80]
call dword [edi + 0x108]
test eax, eax
je 0x499a6e
cmp eax, 5
je 0x499a6e
cmp eax, 6
je 0x499a6e
mov eax, dword [ebp + 8]
push eax
push esi
call fcn.00499680
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x499af0
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
mov ebx, eax
inc eax
push eax
lea ecx, [esp + 0x30]
call fcn.0048b670
mov ecx, dword [esp + 0x2c]
push esi
mov dword [ecx + ebx*4], esi
mov ecx, edi
call fcn.0048f4b0
push edi
mov ecx, esi
call fcn.004ac930
mov ecx, esi
call fcn.0050ba90
mov edx, dword [eax + 4]
mov ecx, edi
mov dword [edx], edi
call fcn.004da3a0
mov ebx, eax
mov ecx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
call dword [eax + 0xb8]
fstp qword [esp + 0x54]
mov ebx, dword [ebx]
sub esp, 0x18
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0064dc70
mov ecx, dword [esp + 0x28]
call dword [ebx + 0xc0]
fstp qword [esp + 0x14]
fld qword [esp + 0x54]
fmul qword [0x691ac8]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x499a3a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0050ba40
mov ecx, esi
call fcn.0050bc60
mov edx, dword [eax + 4]
mov ebx, dword [esp + 0x20]
push edi
push ebx
mov ecx, esi
mov byte [edx], 0
call fcn.004bd1e0
jmp 0x499af0
fld qword [esp + 0x54]
fsub qword [esp + 0x14]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.0050ba40
mov ecx, esi
call fcn.0050bc60
mov eax, dword [eax + 4]
mov ebx, dword [esp + 0x20]
push edi
push ebx
mov ecx, esi
mov byte [eax], 1
call fcn.004bd1e0
jmp 0x499af0
mov ecx, dword [ebx + 0x80]
sub esp, 0x18
lea edx, [esp + 0x54]
mov dword [esp + 0x2c], esp
mov edi, dword [ecx]
mov ecx, esp
push edx
call fcn.0064dc70
mov ecx, dword [ebx + 0x80]
call dword [edi + 0xc0]
fstp qword [esp + 0x14]
fld qword [esp + 0x5c]
fmul qword [0x691ac8]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x499ace
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0050ba40
mov ecx, esi
call fcn.0050bc60
mov edx, dword [eax + 4]
mov byte [edx], 0
jmp 0x499af0
fld qword [esp + 0x5c]
fsub qword [esp + 0x14]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.0050ba40
mov ecx, esi
call fcn.0050bc60
mov eax, dword [eax + 4]
mov byte [eax], 1
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x4997ff
mov eax, dword [esp + 0x30]
mov edi, eax
test eax, eax
mov dword [esp + 0x24], edi
je 0x499bab
mov ecx, ebx
call fcn.0048fc00
xor esi, esi
mov dword [esp + 0x20], eax
test edi, edi
mov dword [esp + 0xc], esi
jle 0x499bab
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov edi, dword [ecx + esi*4]
mov ecx, dword [ebx + 0xa0]
test ecx, ecx
jle 0x499b7f
mov esi, dword [ebx + 0x9c]
mov edx, esi
cmp edi, dword [edx]
je 0x499b55
inc eax
add edx, 4
cmp eax, ecx
jl 0x499b47
jmp 0x499b7f
cmp eax, 0xffffffff
je 0x499b7f
sub ecx, eax
dec ecx
je 0x499b79
lea edx, [ecx*4]
lea ecx, [esi + eax*4 + 4]
push edx
lea edx, [esi + eax*4]
push ecx
push edx
nop
call fcn.0081d07c
add esp, 0xc
dec dword [ebx + 0xa0]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x499b9a
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0xc]
mov edx, dword [eax + esi*4]
push edx
call fcn.004d9280
jmp 0x499b9e
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
mov dword [esp + 0xc], esi
jl 0x499b2c
mov dword [esp + 0x28], 0x69de4c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa0], 3
test eax, eax
je 0x499bcf
push eax
call fcn.0065e732
add esp, 4
mov ecx, dword [esp + 0x98]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4