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

Disassembly:
push 0xffffffffffffffff
push 0x5fd971
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x6f1550]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6f1550]
xor eax, esp
push eax
lea eax, [esp + 0x350]
mov dword fs:[0], eax
mov edi, dword [esp + 0x364]
mov ecx, edi
call fcn.00403ef0
call fcn.005a2e2e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x488d03
push 0x80004005
call fcn.00401480
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 0x624e0c
push edx
mov dword [esp + 0x364], 0
call fcn.0040ada0
push 0x612bbc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00418de0
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 0x488d7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x48905f
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.00418de0
add esp, 0xc
call fcn.00488560
mov eax, esp
mov dword [esp + 0x1c], esp
push str.mpegav_avseq__.mpg
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00418de0
add esp, 0xc
call fcn.00488560
mov edx, esp
mov dword [esp + 0x1c], esp
push str.mpeg2_avseq__.dat
lea eax, [esp + 0x1c]
push eax
push edx
call fcn.00418de0
add esp, 0xc
call fcn.00488560
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.mpeg2_avseq__.mpg
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00418de0
add esp, 0xc
call fcn.00488560
mov eax, esp
mov dword [esp + 0x1c], esp
push str.mpegavmusic__.dat
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00418de0
add esp, 0xc
call fcn.00488560
mov edx, esp
mov dword [esp + 0x1c], esp
push str.mpegavmusic__.mpg
lea eax, [esp + 0x1c]
push eax
push edx
call fcn.00418de0
add esp, 0xc
call fcn.00488560
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.mpeg2music__.dat
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00418de0
add esp, 0xc
call fcn.00488560
mov eax, esp
mov dword [esp + 0x1c], esp
push str.mpeg2music__.mpg
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00418de0
add esp, 0xc
call fcn.00488560
add esp, 4
cmp dword [edi + 8], 0
jbe 0x488eae
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 0x488ea4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x489085
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.00418de0
add esp, 0xc
call fcn.00488560
add esp, 4
cmp dword [edi + 8], 0
jbe 0x488f04
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 0x488efa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
jmp 0x489085
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x489014
push str.._
lea ecx, [esp + 0x1c]
call fcn.00401f00
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x364], 1
call fcn.00418d30
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.00401aa0
lea ecx, [esp + 0x18]
call fcn.00401aa0
cmp ebx, esi
je 0x489014
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 0x48900d
movzx ebp, byte [esp + 0x2a]
movzx edx, byte [esp + 0x2b]
cmp ebp, edx
jg 0x48900d
lea esi, [esp + ebp*8 + 0x25]
lea esp, [esp]
and byte [esi], 0xf5
mov al, byte [esi]
and al, 0xf
je 0x488fbd
cmp al, 1
jne 0x488ffb
lea ecx, [esp + 0x1c]
call fcn.00401a30
mov eax, dword [esp + 0x14]
push ebp
push eax
lea ecx, [esp + 0x24]
push 0x624d38
push ecx
mov byte [esp + 0x368], 2
call fcn.0040ada0
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.004048b0
lea ecx, [esp + 0x1c]
call fcn.00401aa0
movzx eax, byte [esp + 0x2b]
add ebp, 1
add esi, 8
cmp ebp, eax
jle 0x488fb0
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 0x489045
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x48903e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x489085
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x489058
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 4
jmp 0x489085
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 0x489083
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.005bf6a4
add esp, 0x348
ret