Function at 0x499ba0
Capabilities:
Check os version
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x61ab81
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x7161c0]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7161c0]
xor eax, esp
push eax
lea eax, [esp + 0x350]
mov dword fs:[0], eax
mov edi, dword [esp + 0x364]
mov ecx, edi
call fcn.00406b60
call fcn.005bc43d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x499c03
push 0x80004005
call fcn.00401470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
movsx ecx, byte [esp + 0x360]
push ecx
lea edx, [esp + 0x18]
push 0x643e00
push edx
mov dword [esp + 0x364], 0
call fcn.004030a0
push 0x630bfc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00403170
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
or esi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x499c7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x499f5f
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.mpegav_avseq__.dat
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00403170
add esp, 0xc
call fcn.00499460
mov eax, esp
mov dword [esp + 0x1c], esp
push str.mpegav_avseq__.mpg
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00403170
add esp, 0xc
call fcn.00499460
mov edx, esp
mov dword [esp + 0x1c], esp
push str.mpeg2_avseq__.dat
lea eax, [esp + 0x1c]
push eax
push edx
call fcn.00403170
add esp, 0xc
call fcn.00499460
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.mpeg2_avseq__.mpg
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00403170
add esp, 0xc
call fcn.00499460
mov eax, esp
mov dword [esp + 0x1c], esp
push str.mpegavmusic__.dat
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00403170
add esp, 0xc
call fcn.00499460
mov edx, esp
mov dword [esp + 0x1c], esp
push str.mpegavmusic__.mpg
lea eax, [esp + 0x1c]
push eax
push edx
call fcn.00403170
add esp, 0xc
call fcn.00499460
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.mpeg2music__.dat
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00403170
add esp, 0xc
call fcn.00499460
mov eax, esp
mov dword [esp + 0x1c], esp
push str.mpeg2music__.mpg
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00403170
add esp, 0xc
call fcn.00499460
add esp, 4
cmp dword [edi + 8], 0
jbe 0x499dae
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x358], esi
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x499da4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x499f85
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.VIDEO_TS_video_ts.ifo
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00403170
add esp, 0xc
call fcn.00499460
add esp, 4
cmp dword [edi + 8], 0
jbe 0x499e04
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x358], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x499dfa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
jmp 0x499f85
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x499f14
push str.._
lea ecx, [esp + 0x1c]
call fcn.00401eb0
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x364], 1
call fcn.004030c0
mov eax, dword [eax]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x20]
mov ebx, eax
call fcn.00401a50
lea ecx, [esp + 0x18]
call fcn.00401a50
cmp ebx, esi
je 0x499f14
push 0
lea eax, [esp + 0x28]
push eax
push 0x324
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 0x24000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x499f0d
movzx ebp, byte [esp + 0x2a]
movzx edx, byte [esp + 0x2b]
cmp ebp, edx
jg 0x499f0d
lea esi, [esp + ebp*8 + 0x25]
lea esp, [esp]
and byte [esi], 0xf5
mov al, byte [esi]
and al, 0xf
je 0x499ebd
cmp al, 1
jne 0x499efb
lea ecx, [esp + 0x1c]
call fcn.004019e0
mov eax, dword [esp + 0x14]
push ebp
push eax
lea ecx, [esp + 0x24]
push str._s_track_02d.cda
push ecx
mov byte [esp + 0x368], 2
call fcn.004030a0
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0040b2f0
lea ecx, [esp + 0x1c]
call fcn.00401a50
movzx eax, byte [esp + 0x2b]
add ebp, 1
add esi, 8
cmp ebp, eax
jle 0x499eb0
or esi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
cmp dword [edi + 8], 0
mov dword [esp + 0x358], esi
lea ecx, [eax + 0xc]
jbe 0x499f45
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x499f3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x499f85
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x499f58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 4
jmp 0x499f85
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x358], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x499f83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x350]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.005d8d34
add esp, 0x348
ret