Function at 0x401b50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x67f189
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x53cc
call fcn.00404eb0
mov eax, dword [0x6fd284]
xor eax, esp
mov dword [esp + 0x53c8], eax
push ebx
push esi
push edi
mov eax, dword [0x6fd284]
xor eax, esp
push eax
lea eax, [esp + 0x53e0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add eax, 0x61
push eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1d8]
mov ebx, ecx
push str._c:_video_ts_video_ts.ifo
push eax
mov dword [esp + 0x48], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push closesocket
lea ecx, [esp + 0x1ec]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
sub esi, 0xffffffff
neg esi
sbb esi, esi
and esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x53e8], 0
je 0x401c21
push 0
lea edx, [esp + 0x20]
push edx
push 0x800
lea eax, [esp + 0x3e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x1c], 0x800
je 0x401c28
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40243a
mov eax, 0xc
mov ecx, str.DVDVIDEO_VMG
lea edx, [esp + 0x3d4]
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x401c58
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x401c40
test eax, eax
je 0x401cb5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x401ca7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401cb5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x401ca7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401cb5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x401ca7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401cb5
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x401cb5
test esi, esi
mov eax, 1
jg 0x401cb7
or eax, 0xffffffff
jmp 0x401cb7
xor eax, eax
test eax, eax
je 0x401d5b
mov eax, 0xc
mov ecx, 0x6803c0
lea edx, [esp + 0x3d4]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x401ce8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x401cd0
test eax, eax
je 0x401d45
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x401d37
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401d45
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x401d37
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401d45
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x401d37
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401d45
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x401d45
test esi, esi
mov eax, 1
jg 0x401d47
or eax, 0xffffffff
jmp 0x401d47
xor eax, eax
test eax, eax
je 0x401d5b
lea ecx, [esp + 0x18]
call fcn.00401ad0
xor al, al
jmp 0x40243a
mov eax, dword [esp + 0x20]
push eax
mov ecx, 8
lea esi, [esp + 0x418]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1d8]
push str._c:_video_ts_vts_01_0.ifo
push ecx
mov byte [ebx + 0x20], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x1ec]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
sub esi, 0xffffffff
neg esi
sbb esi, esi
and esi, edi
mov dword [esp + 0x18], esi
je 0x401c21
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x800
lea edx, [esp + 0x3e0]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x1c], 0x800
jne 0x401c1a
mov eax, 0xc
mov ecx, str.DVDVIDEO_VTS
lea edx, [esp + 0x3d4]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x401f87
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x401e03
test eax, eax
mov dword [esp + 0x14], edx
jne 0x401f8b
xor eax, eax
test eax, eax
je 0x401e6e
mov eax, 0xc
mov ecx, 0x680384
lea edx, [esp + 0x3d4]
mov edi, edi
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x40200f
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x401e40
test eax, eax
mov dword [esp + 0x14], edx
jne 0x402013
xor eax, eax
test eax, eax
jne 0x401d4b
lea ecx, [esp + 0x4a0]
push ecx
call fcn.00401a10
lea edx, [esp + 0x4b8]
push edx
mov edi, eax
call fcn.00401a10
add esp, 8
push 0
push 0
shl eax, 0xb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401d4b
push 0
lea eax, [esp + 0x20]
push eax
push 0x2800
lea ecx, [esp + 0x2be0]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x1c], 0x800
jb 0x401d4b
lea edx, [esp + 0x2bd8]
push edx
call fcn.00401a10
mov ecx, eax
sub ecx, 8
mov eax, 0xaaaaaaab
mul ecx
add esp, 4
push 0
push 0
shl edi, 0xb
push edi
shr edx, 3
push esi
mov dword [esp + 0x68], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401d4b
push 0
lea edx, [esp + 0x20]
push edx
push 0x2800
lea eax, [esp + 0x3e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x1c], 0x800
lea ecx, [esp + 0x18]
jb 0x401d4f
call fcn.004019f0
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor esi, esi
mov ecx, dword [esp + 0x20]
push esi
push ecx
lea edx, [esp + 0x1dc]
push 0x680368
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1d8]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x402097
mov dword [esp + esi*4 + 0x6c], 0
jmp 0x4020ac
mov dword [esp + 0x14], edx
movzx edx, byte [edx]
movzx edi, byte [ecx]
sub edx, edi
jne 0x401ffa
add dword [esp + 0x14], 1
sub eax, 1
add ecx, 1
test eax, eax
je 0x401e27
mov edx, dword [esp + 0x14]
movzx edx, byte [edx]
movzx edi, byte [ecx]
sub edx, edi
jne 0x401ffa
add dword [esp + 0x14], 1
sub eax, 1
add ecx, 1
test eax, eax
je 0x401e27
mov edx, dword [esp + 0x14]
movzx edx, byte [edx]
movzx edi, byte [ecx]
sub edx, edi
jne 0x401ffa
mov edx, dword [esp + 0x14]
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401e27
movzx edx, byte [edx]
movzx eax, byte [ecx]
sub edx, eax
je 0x401e27
test edx, edx
mov eax, 1
jg 0x401e29
or eax, 0xffffffff
jmp 0x401e29
mov dword [esp + 0x14], edx
movzx edx, byte [edx]
movzx edi, byte [ecx]
sub edx, edi
jne 0x402082
add dword [esp + 0x14], 1
sub eax, 1
add ecx, 1
test eax, eax
je 0x401e64
mov edx, dword [esp + 0x14]
movzx edx, byte [edx]
movzx edi, byte [ecx]
sub edx, edi
jne 0x402082
add dword [esp + 0x14], 1
sub eax, 1
add ecx, 1
test eax, eax
je 0x401e64
mov edx, dword [esp + 0x14]
movzx edx, byte [edx]
movzx edi, byte [ecx]
sub edx, edi
jne 0x402082
mov edx, dword [esp + 0x14]
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401e64
movzx edx, byte [edx]
movzx eax, byte [ecx]
sub edx, eax
je 0x401e64
test edx, edx
mov eax, 1
jg 0x401e66
or eax, 0xffffffff
jmp 0x401e66
mov edx, dword [esp + 0xb4]
shr edx, 0xb
push eax
mov dword [esp + esi*4 + 0x70], edx
call dword [sym.imp.KERNEL32.dll_FindClose]
add esi, 1
cmp esi, 0xa
jl 0x401f43
movzx cx, byte [esp + 0x3d5]
xor eax, eax
mov ah, byte [esp + 0x3d4]
mov dword [esp + 0x38], 0
or ax, cx
movzx eax, ax
movzx eax, ax
test eax, eax
mov dword [esp + 0x60], eax
jle 0x40242f
lea edx, [esp + 0x3e0]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x20]
push eax
call fcn.00401a10
movzx ecx, byte [esp + eax + 0x3da]
movzx edx, byte [esp + eax + 0x3db]
lea eax, [esp + eax + 0x3d8]
mov dword [esp + 0x50], ecx
movzx cx, byte [eax + 0xe7]
mov ch, byte [eax + 0xe6]
mov dword [esp + 0x34], edx
xor edx, edx
mov dh, byte [eax + 0xe8]
xor esi, esi
add esp, 4
mov dword [esp + 0x40], esi
movzx ecx, cx
mov dl, byte [eax + 0xe9]
movzx ecx, cx
add ecx, eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x48], esi
movzx ecx, dx
xor edx, edx
mov dh, byte [eax + 0xea]
movzx ecx, cx
add ecx, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x14], esi
mov dl, byte [eax + 0xeb]
mov dword [esp + 0x28], esi
movzx edx, dx
movzx edx, dx
add edx, eax
cmp dword [esp + 0x30], esi
mov dword [esp + 0x5c], edx
jle 0x402415
add ecx, 0x14
mov dword [esp + 0x24], ecx
nop
mov edi, dword [esp + 0x50]
cmp edi, dword [esp + 0x4c]
jge 0x402265
mov eax, dword [esp + 0x54]
movzx ecx, byte [edi + eax]
sub ecx, 1
cmp ecx, dword [esp + 0x28]
jne 0x402265
push 0x40
call fcn.00404a6b
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
mov byte [esp + 0x53e8], 1
je 0x4021d6
mov ecx, eax
call fcn.004039b0
jmp 0x4021d8
xor eax, eax
mov edx, dword [ebx + 0x1b0]
mov dword [ebx + edx*4 + 0x24], eax
mov eax, dword [ebx + 0x1b0]
mov ecx, dword [ebx + eax*4 + 0x24]
mov edx, dword [esp + 0x38]
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x1b0]
mov ecx, dword [ebx + eax*4 + 0x24]
mov dword [ecx + 0x18], edi
add edi, 1
cmp edi, dword [esp + 0x4c]
mov byte [esp + 0x53e8], 0
mov dword [esp + 0x50], edi
jge 0x402222
mov edx, dword [esp + 0x54]
movzx eax, byte [edi + edx]
sub eax, 1
jmp 0x402226
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov edi, eax
lea eax, [edi + 5]
shl eax, 5
push eax
call fcn.00404794
mov ecx, dword [ebx + 0x1b0]
mov edx, dword [ebx + ecx*4 + 0x24]
mov dword [edx], edi
mov esi, eax
mov eax, dword [ebx + 0x1b0]
mov ecx, dword [ebx + eax*4 + 0x24]
add esp, 4
mov dword [ecx + 4], esi
add dword [ebx + 0x1b0], 1
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x5c]
xor edx, edx
mov dh, byte [eax]
add eax, 2
mov dl, byte [eax - 1]
mov edi, edx
test edi, edi
jne 0x402286
mov edi, dword [esp + 0x40]
add edi, 1
mov dword [esp + 0x40], edi
jmp 0x40228a
mov dword [esp + 0x40], edx
xor ecx, ecx
mov ch, byte [eax]
add eax, 2
mov dword [esp + 0x5c], eax
mov cl, byte [eax - 1]
test ecx, ecx
mov dword [esp + 0x44], ecx
jne 0x4022b1
mov eax, dword [esp + 0x48]
add eax, 1
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
jmp 0x4022b5
mov dword [esp + 0x48], ecx
test esi, esi
je 0x4023fb
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00401a10
mov ecx, dword [esp + 0x28]
push ecx
mov ebx, eax
call fcn.00401a10
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
push edx
mov dword [esp + 0x38], eax
call fcn.00401a30
fstp qword [esp + 0x70]
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x58], eax
jle 0x402358
lea ecx, [esp + 0x2bde]
mov dword [esp + 0x34], ecx
movzx ecx, byte [ecx]
cmp dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x34]
jne 0x40231a
xor edx, edx
mov dh, byte [ecx - 2]
mov dl, byte [ecx - 1]
cmp edi, edx
je 0x40232c
add eax, 1
add ecx, 0xc
cmp eax, dword [esp + 0x58]
mov dword [esp + 0x34], ecx
jl 0x402301
jmp 0x402358
lea edi, [eax + eax*2]
add edi, edi
add edi, edi
lea eax, [esp + edi + 0x2be0]
push eax
call fcn.00401a10
lea ecx, [esp + edi + 0x2be8]
push ecx
mov ebx, eax
call fcn.00401a10
add esp, 8
mov dword [esp + 0x2c], eax
xor edi, edi
cmp ebx, dword [esp + edi*4 + 0x6c]
mov eax, dword [esp + 0x2c]
jb 0x402373
mov ecx, dword [esp + edi*4 + 0x6c]
sub ebx, ecx
add edi, 1
sub eax, ecx
cmp ebx, dword [esp + edi*4 + 0x6c]
jae 0x402362
cmp eax, dword [esp + edi*4 + 0x6c]
mov ecx, dword [esp + 0x3c]
jbe 0x4023bc
lea ecx, [ecx]
mov edx, dword [esp + edi*4 + 0x6c]
sub eax, dword [esp + edi*4 + 0x6c]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x14]
mov dword [esi + 0xc], edx
mov edx, dword [esp + edi*4 + 0x6c]
sub edx, ebx
add dword [esp + 0x14], edx
mov dword [esi], ebx
mov dword [esi + 8], edi
mov edx, dword [ecx + 0x1b0]
mov edx, dword [ecx + edx*4 + 0x20]
add dword [edx], 1
add edi, 1
add esi, 0x10
xor ebx, ebx
cmp eax, dword [esp + edi*4 + 0x6c]
ja 0x402380
mov edx, dword [esp + 0x14]
fld qword [esp + 0x64]
mov dword [esi + 4], eax
mov dword [esi + 0xc], edx
mov dword [esi], ebx
mov dword [esi + 8], edi
sub eax, ebx
mov ebx, dword [esp + 0x3c]
add edx, eax
mov eax, dword [ecx + 0x1b0]
mov eax, dword [ecx + eax*4 + 0x20]
fadd qword [eax + 8]
mov dword [esp + 0x14], edx
add esi, 0x10
fstp qword [eax + 8]
mov eax, dword [ecx + 0x1b0]
mov ecx, dword [ecx + eax*4 + 0x20]
mov dword [ecx + 0x10], edx
mov eax, dword [esp + 0x28]
add dword [esp + 0x24], 0x18
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
jl 0x402190
mov eax, dword [esp + 0x38]
add dword [esp + 0x20], 8
add eax, 1
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x38], eax
jl 0x4020f2
lea ecx, [esp + 0x18]
call fcn.00401ad0
mov al, 1
mov ecx, dword [esp + 0x53e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x53c8]
xor ecx, esp
call fcn.00404e9c
mov esp, ebp
pop ebp
ret 4