Function at 0x41e5ae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0
mov dword [esp], 0x14
call fcn.00405785
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41e5e9
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call sub.msvcrt.dll_free
mov eax, 0
jmp 0x41eb5b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ebx, 0xc
mov esi, 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.msvcrt.dll__lseek
cdq
mov ecx, edx
xor ecx, esi
xor eax, ebx
or ecx, eax
je 0x41e63e
mov dword [esp], str.Faild_to_seek_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
mov dword [esp + 8], 4
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 4
je 0x41e67e
mov dword [esp], str.Faild_to_read_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
lea ecx, [ebp - 0x14]
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
or edx, eax
movzx eax, byte [ebp - 0x14]
shl eax, 0x18
or edx, eax
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov ebx, 0x1c
mov esi, 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll__lseek
cdq
mov ecx, edx
xor ecx, esi
xor eax, ebx
or ecx, eax
je 0x41e6f5
mov dword [esp], str.Faild_to_seek_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
mov dword [esp + 8], 4
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sub.msvcrt.dll__read
cmp eax, 4
je 0x41e735
mov dword [esp], str.Faild_to_read_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
lea ecx, [ebp - 0x14]
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
or edx, eax
movzx eax, byte [ebp - 0x14]
shl eax, 0x18
or edx, eax
mov dword [ebp - 0x14], edx
mov eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov ebx, 0x3e
mov esi, 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sub.msvcrt.dll__lseek
cdq
mov ecx, edx
xor ecx, esi
xor eax, ebx
or ecx, eax
je 0x41e7af
mov dword [esp], str.Faild_to_seek_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
mov dword [esp + 8], 2
lea eax, [ebp - 0xe]
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.msvcrt.dll__read
cmp eax, 2
je 0x41e7ef
mov dword [esp], str.Faild_to_read_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
movzx dx, byte [ebp - 0xd]
movzx eax, byte [ebp - 0xe]
shl eax, 8
or eax, edx
mov word [ebp - 0xe], ax
mov edx, dword [ebp - 0x1c]
mov word [edx + 8], ax
mov ebx, 0xc0
mov esi, 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sub.msvcrt.dll__lseek
cdq
mov ecx, edx
xor ecx, esi
xor eax, ebx
or ecx, eax
je 0x41e855
mov dword [esp], str.Faild_to_seek_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
mov dword [esp + 8], 4
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.msvcrt.dll__read
cmp eax, 4
je 0x41e895
mov dword [esp], str.Faild_to_read_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
lea ecx, [ebp - 0x14]
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
or edx, eax
movzx eax, byte [ebp - 0x14]
shl eax, 0x18
or edx, eax
mov dword [ebp - 0x14], edx
mov eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov ebx, 0xc4
mov esi, 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sub.msvcrt.dll__lseek
cdq
mov ecx, edx
xor ecx, esi
xor eax, ebx
or ecx, eax
je 0x41e90f
mov dword [esp], str.Faild_to_seek_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
mov dword [esp + 8], 4
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.msvcrt.dll__read
cmp eax, 4
je 0x41e94f
mov dword [esp], str.Faild_to_read_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
lea ecx, [ebp - 0x14]
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
or edx, eax
movzx eax, byte [ebp - 0x14]
shl eax, 0x18
or edx, eax
mov dword [ebp - 0x14], edx
mov eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x10], eax
mov dword [esp], 8
call fcn.00405785
mov edi, eax
test eax, eax
jne 0x41e9a3
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], edi
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
shl eax, 0xb
mov ebx, eax
mov esi, 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sub.msvcrt.dll__lseek
cdq
mov ecx, edx
xor ecx, esi
xor eax, ebx
or ecx, eax
je 0x41e9f1
mov dword [esp], str.Faild_to_seek_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov eax, 0
jmp 0x41eb5b
mov dword [esp + 8], 2
lea eax, [ebp - 0xe]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 2
je 0x41ea26
mov dword [esp], str.Faild_to_read_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov eax, 0
jmp 0x41eb5b
movzx dx, byte [ebp - 0xd]
movzx eax, byte [ebp - 0xe]
shl eax, 8
or eax, edx
mov word [ebp - 0xe], ax
mov word [edi], ax
movzx eax, ax
shl eax, 2
mov dword [esp], eax
call fcn.00405785
mov dword [edi + 4], eax
test eax, eax
jne 0x41eaa7
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
mov dword [esp], str.Faild_to_seek_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
mov dword [esp], str.Faild_to_read_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0041ed49
mov eax, 0
jmp 0x41eb5b
mov dword [ebp - 0x18], 0
cmp word [edi], 0
je 0x41eb58
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
shl edx, 0xb
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + ecx*2]
lea eax, [edx + eax*4 + 0x10]
mov ebx, eax
mov esi, 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll__lseek
cdq
mov ecx, edx
xor ecx, esi
xor eax, ebx
or ecx, eax
jne 0x41ea65
mov dword [esp + 8], 4
lea edx, [ebp - 0x14]
mov dword [esp + 4], edx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sub.msvcrt.dll__read
cmp eax, 4
jne 0x41ea86
movzx edx, byte [ebp - 0x11]
movzx eax, byte [ebp - 0x12]
shl eax, 8
or edx, eax
movzx eax, byte [ebp - 0x13]
shl eax, 0x10
or edx, eax
movzx eax, byte [ebp - 0x14]
shl eax, 0x18
or edx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [ebp - 0x18], ecx
movzx eax, word [edi]
cmp eax, ecx
ja 0x41eab8
mov eax, dword [ebp + 0xc]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret