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

Disassembly:
push 0xffffffffffffffff
push 0x4f1321
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x338
mov eax, dword [0x53ffd0]
xor eax, dword [esp + 0x344]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x35c]
mov ecx, edi
mov dword [esp + 0x344], eax
call fcn.004ce070
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
movzx eax, word [esp + 0x358]
push eax
lea ecx, [esp + 0x14]
push 0x507c94
push ecx
mov dword [esp + 0x35c], 0
call fcn.00407a50
push 0x506a3c
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00410a70
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 5
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4685dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x46886a
push edi
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
push str.mpegav_avseq__.dat
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00410a70
add esp, 0xc
call fcn.00466b60
add esp, 8
push edi
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push str.mpegav_avseq__.mpg
lea eax, [esp + 0x1c]
push eax
push edx
call fcn.00410a70
add esp, 0xc
call fcn.00466b60
add esp, 8
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.mpeg2_avseq__.dat
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00410a70
add esp, 0xc
call fcn.00466b60
add esp, 8
push edi
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
push str.mpeg2_avseq__.mpg
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00410a70
add esp, 0xc
call fcn.00466b60
mov eax, dword [edi + 0xc]
add esp, 8
test eax, eax
jle 0x4686a3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x350], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x468699
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
jmp 0x46888e
call dword [sym.imp.KERNEL32.DLL_GetVersion]
test eax, eax
js 0x46881c
push str.._
lea ecx, [esp + 0x20]
call fcn.00403260
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x35c], 1
call fcn.00406fc0
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_CreateFileW]
mov ebx, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468718
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x350], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46873d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebx, ebp
je 0x46881c
push 0
lea eax, [esp + 0x20]
push eax
push 0x324
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0x24000
push ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x468815
movzx esi, byte [esp + 0x22]
movzx edx, byte [esp + 0x23]
cmp esi, edx
jg 0x468815
lea ebp, [esp + esi*8 + 0x1d]
mov bl, 2
mov dl, byte [ebp]
and dl, 0xf5
mov al, dl
and al, 0xf
mov byte [ebp], dl
je 0x468799
cmp al, 1
jne 0x4687fd
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x1c]
push str._s_track_02d.cda
push ecx
mov byte [esp + 0x360], bl
call fcn.00407a50
add esp, 0x10
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.004ce0cc
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x350], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4687fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
movzx eax, byte [esp + 0x23]
inc esi
add ebp, 8
cmp esi, eax
jle 0x468786
mov ebx, dword [esp + 0x18]
or ebp, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [edi + 0xc]
test eax, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x350], ebp
jle 0x46884c
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x468845
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x46888e
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x468863
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 3
jmp 0x46888e
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x350], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x46888c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x348]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x33c]
xor ecx, dword [esp + 0x34c]
pop ebp
pop ebx
add esp, 0x344
jmp fcn.004b8f56