Function at 0x4edb24
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xec
push ebx
push edi
mov edi, dword [esp + 0xf8]
xor ebx, ebx
cmp edi, ebx
jne 0x4ed591
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0xec
ret
push esi
mov esi, dword [edi + 4]
cmp esi, ebx
jne 0x4ed5b7
mov eax, dword [edi]
push eax
call fcn.00533b3e
push edi
call fcn.0050fd2d
add esp, 8
pop esi
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0xec
ret
mov eax, 0xf4240
cdq
idiv esi
mov edx, dword [edi + 8]
xor ecx, ecx
cmp byte [edi + 0x19], bl
push ebp
setne cl
mov dword [esp + 0xe4], edx
mov edx, dword [edi + 0xc]
mov ebp, 0x34363248
mov dword [esp + 0xc8], 0xc350
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], 0x910
add ecx, 1
cmp esi, 0x1e
mov dword [esp + 0xdc], ecx
mov ecx, 0x100000
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe8], edx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0x2c], 0x73646976
mov dword [esp + 0x30], ebp
mov dword [esp + 0xc4], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0xd4], eax
mov dword [esp + 0x34], ebx
mov word [esp + 0x38], bx
mov word [esp + 0x3a], bx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0x3e8
jne 0x4ed67d
mov dword [esp + 0x44], 0x7512
jmp 0x4ed687
imul esi, esi, 0x3e8
mov dword [esp + 0x44], esi
mov dword [esp + 0x50], ecx
mov cx, dx
push 0x38
mov dword [esp + 0x50], eax
mov ax, word [edi + 8]
lea edx, [esp + 0x68]
push ebx
or esi, 0xffffffff
push edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ebx
mov word [esp + 0x68], bx
mov word [esp + 0x6c], ax
mov word [esp + 0x6e], cx
call fcn.00530d30
mov ecx, dword [edi + 8]
mov eax, 2
mov dword [esp + 0x84], eax
mov dword [esp + 0x9c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0xb0], eax
imul eax, ecx
lea eax, [eax + eax*2]
mov dword [esp + 0xbc], eax
mov eax, dword [edi + 0x14]
mov edx, 1
mov dword [esp + 0x74], edx
mov word [esp + 0xb4], dx
mov word [esp + 0x24], dx
mov word [esp + 0x26], dx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0xac], ecx
mov ecx, dword [edi + 0x10]
mov dword [esp + 0xb8], ebp
movzx ebp, ax
mov dword [esp + 0x28], ecx
imul ebp, ecx
mov ecx, dword [edi + 0x76720]
mov word [esp + 0x30], ax
lea eax, [edi + 0x20]
shl ecx, 4
push 0x584c10
push eax
mov dword [esp + 0x78], 0x73647561
mov dword [esp + 0x80], ebx
mov word [esp + 0x84], bx
mov word [esp + 0x86], bx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x90], 0x3e80
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], 0xecf
mov dword [esp + 0x9c], 0x3c0
mov dword [esp + 0xa0], esi
mov word [esp + 0x72], bx
mov word [esp + 0xa8], bx
mov word [esp + 0xac], bx
mov word [esp + 0xae], bx
mov dword [esp + 0xb0], 0x28
mov word [esp + 0xbe], 0x18
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov word [esp + 0x3a], 0x10
mov dword [esp + 0x24], ecx
call fcn.00533f90
mov esi, eax
add esp, 0x14
cmp esi, ebx
mov dword [esp + 0x28], esi
je 0x4ed81d
push 2
push ebx
push esi
call fcn.00533e47
push esi
call fcn.00533d52
add esp, 0x10
add dword [esp + 0x10], eax
mov edx, dword [edi]
push 2
push ebx
push edx
call fcn.00533e47
mov eax, dword [edi]
push eax
call fcn.00533d52
mov esi, eax
mov ecx, esi
add esp, 0x10
and ecx, reloc.PlayBack.dll_Ordinal_1
mov dword [esp + 0x14], eax
jns 0x4ed848
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x4ed866
mov edx, dword [edi]
push edx
push ecx
push ecx
push 0x58278c
call fcn.00536144
add esp, 0x10
add esi, 1
mov dword [esp + 0x14], esi
lea esi, [edi + 0xc20]
mov eax, str.RIFF
mov edx, esi
mov cl, 0x52
sub edx, eax
mov byte [edx + eax], cl
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4ed877
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add ecx, eax
add esi, 4
mov dword [esi], ecx
add esi, 4
mov eax, str.AVI
mov edx, esi
mov cl, 0x41
sub edx, eax
mov byte [edx + eax], cl
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4ed8a1
add esi, 4
mov eax, str.LIST
mov edx, esi
mov cl, 0x4c
sub edx, eax
lea esp, [esp]
mov byte [edx + eax], cl
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4ed8c0
add esi, 4
cmp byte [edi + 0x19], bl
mov eax, 0xc0
je 0x4ed8df
mov eax, 0x124
mov dword [esi], eax
add esi, 4
mov eax, str.hdrl
mov edx, esi
mov cl, 0x68
sub edx, eax
nop
mov byte [edx + eax], cl
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4ed8f0
add esi, 4
mov eax, str.avih
mov edx, esi
mov cl, 0x61
sub edx, eax
jmp 0x4ed910
mov byte [eax + edx], cl
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4ed910
add esi, 4
push 0x38
lea edx, [esp + 0xc8]
mov dword [esi], 0x38
push edx
add esi, 4
push esi
call fcn.00530db0
add esi, 0x38
mov eax, str.LIST
mov edx, esi
add esp, 0xc
mov cl, 0x4c
sub edx, eax
lea ebx, [ebx]
mov byte [eax + edx], cl
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4ed950
add esi, 4
mov dword [esi], 0x74
add esi, 4
mov eax, str.strl
mov edx, esi
mov cl, 0x73
sub edx, eax
mov byte [eax + edx], cl
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4ed974
add esi, 4
mov eax, str.strh
mov edx, esi
mov cl, 0x73
sub edx, eax
nop
mov byte [eax + edx], cl
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4ed990
add esi, 4
push 0x38
lea eax, [esp + 0x30]
mov dword [esi], 0x38
push eax
add esi, 4
push esi
call fcn.00530db0
add esi, 0x38
mov eax, str.strf
mov edx, esi
add esp, 0xc
mov cl, 0x73
sub edx, eax
mov byte [eax + edx], cl
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4ed9c7
add esi, 4
push 0x28
lea ecx, [esp + 0xa0]
mov dword [esi], 0x28
push ecx
add esi, 4
push esi
call fcn.00530db0
add esp, 0xc
add esi, 0x28
cmp byte [edi + 0x19], bl
je 0x4eda83
push str.LIST
push esi
call fcn.004ed200
add esi, 4
mov dword [esi], 0x5c
add esi, 4
push str.strl
push esi
call fcn.004ed200
add esi, 4
push str.strh
push esi
call fcn.004ed200
add esi, 4
push 0x38
lea edx, [esp + 0x80]
mov dword [esi], 0x38
push edx
add esi, 4
push esi
call fcn.00530db0
add esi, 0x38
push str.strf
push esi
call fcn.004ed200
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov dword [esi + 4], 0x10
add esi, 4
add esi, 4
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], ebp
add esp, 0x2c
mov dword [esi + 0xc], edx
add esi, 0x10
mov eax, str.JUNK
mov edx, esi
mov cl, 0x4a
sub edx, eax
mov edi, edi
mov byte [eax + edx], cl
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4eda90
add esi, 4
mov eax, edi
sub eax, esi
add eax, 0x1410
lea edx, [esi + eax + 4]
mov dword [esi], eax
mov eax, str.LIST
mov esi, edx
mov cl, 0x4c
sub esi, eax
lea ebx, [ebx]
mov byte [eax + esi], cl
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4edac0
mov eax, dword [esp + 0x14]
add edx, 4
add eax, 0xfffff804
mov dword [edx], eax
mov eax, str.movi
add edx, 4
mov cl, 0x6d
sub edx, eax
mov byte [eax + edx], cl
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4edae7
mov ecx, dword [edi]
push ebx
push ebx
push ecx
call fcn.00533e47
mov edx, dword [edi]
push edx
push 0x800
lea eax, [edi + 0xc20]
push 1
push eax
call fcn.00536144
mov eax, dword [edi]
push 2
push ebx
push eax
call fcn.00533e47
mov ecx, dword [edi]
push ecx
push 4
push 1
push str.idx1
call fcn.00536144
mov edx, dword [edi]
push edx
push 4
lea eax, [esp + 0x50]
push 1
push eax
call fcn.00536144
mov ebp, dword [esp + 0x70]
add esp, 0x48
cmp ebp, ebx
je 0x4edb9f
push 0xc800
call fcn.0050fd28
push ebx
push ebx
push ebp
mov esi, eax
call fcn.00533e47
push ebp
push 0xc800
push 1
push esi
call fcn.00536b46
add esp, 0x20
cmp eax, ebx
jle 0x4edb96
mov ecx, dword [edi]
push ecx
push eax
push 1
push esi
call fcn.00536144
push ebp
push 0xc800
push 1
push esi
call fcn.00536b46
add esp, 0x20
cmp eax, ebx
jg 0x4edb75
push esi
call fcn.0050fd2d
add esp, 4
mov edx, dword [edi]
mov eax, dword [edi + 0x76720]
push edx
shl eax, 4
push eax
lea ecx, [edi + 0x1420]
push 1
push ecx
call fcn.00536144
lea ecx, [edi + 0xc20]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov edx, dword [edi]
push edx
push 0x10
push 1
push ecx
call fcn.00536144
add esp, 0x20
cmp ebp, ebx
je 0x4edbf3
push ebp
call fcn.00533b3e
lea eax, [edi + 0x20]
push eax
call fcn.00536b61
add esp, 8
mov eax, dword [edi]
push eax
call fcn.00533b3e
push edi
call fcn.0050fd2d
add esp, 8
pop ebp
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0xec
ret