Function at 0x526a20
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x314
push ebx
push ebp
push esi
mov esi, dword [esp + 0x328]
push edi
xor edi, edi
push 0x10
lea eax, [esi + 0x738]
push edi
push eax
mov dword [esi + 0x718], edi
mov dword [esi + 0x2d4], edi
mov dword [esi + 0x728], edi
mov dword [esi + 0x72c], edi
mov dword [esi + 0x730], edi
mov dword [esi + 0x734], edi
mov dword [esi + 0x2d0], edi
call fcn.004dc0b0
push 0x10
lea ecx, [esi + 0x748]
push edi
push ecx
call fcn.004dc0b0
add esp, 0x18
call fcn.004ebdf0
mov ecx, dword [esp + 0x33c]
cmp ecx, 1
jne 0x526a9b
cmp eax, edi
je 0x526aa0
cmp dword [0x71dfbc], ecx
jmp 0x526a9e
cmp ecx, 2
jne 0x526aa5
call fcn.004ebe10
lea ebx, [esi + 0x54]
push ebx
push 0x6d6760
push 3
push edi
push 0x6d6530
call dword [0x7090c8]
test eax, eax
jge 0x526ad5
push str.CLSID_FilterGraph
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x526d81
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00538420
add esp, 8
cmp eax, edi
mov dword [esi + 0x64], eax
je 0x526aef
lea ecx, [eax + 0xc]
jmp 0x526af1
xor ecx, ecx
mov eax, dword [ebx]
mov edx, dword [eax]
push str.MovieRenderer
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
cmp eax, edi
mov dword [esp + 0x10], eax
jge 0x526b28
push str.Could_not_add_renderer_filter_to_graph_
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret
mov eax, dword [ebx]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esi + 0x60]
push ecx
push 0x6d66b0
push eax
call edx
test eax, eax
jge 0x526b53
push str.BasicAudio
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x526d81
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [esi + 0x58]
push edx
push 0x6d66f0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jge 0x526b7e
push str.IID_IMediaControl
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x526d81
mov eax, dword [ebx]
mov edx, dword [eax]
lea ecx, [esi + 0x5c]
push ecx
push 0x6d66c0
push eax
mov eax, dword [edx]
call eax
test eax, eax
jge 0x526ba9
push str.IID_IMediaSeeking
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x526d81
mov edx, dword [esp + 0x330]
mov eax, dword [0x715680]
push 0x104
lea ebp, [esi + 0x94]
push ebp
push 0xffffffffffffffff
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push edi
push ebp
push eax
call edx
cmp eax, edi
mov dword [esp + 0x10], eax
jge 0x526ea7
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.RenderFile_faired_
lea eax, [esp + 0x28]
push eax
call ebx
push 0x6aa854
lea ecx, [esp + 0x28]
push ecx
call ebx
mov ebp, dword [esp + 0x330]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
lea edx, [esp + 0x28]
push edx
call ebx
push 0x6aa840
lea eax, [esp + 0x28]
push eax
call ebx
cmp dword [esi + 0x90], 1
je 0x526d81
push edi
push 1
push edi
push ebp
call fcn.004de690
mov ebx, eax
add esp, 0x10
cmp ebx, edi
je 0x526d81
push 2
push edi
push ebx
call fcn.004de6c0
push ebx
call fcn.004de6b0
push edi
push edi
push ebx
mov dword [esp + 0x34], eax
call fcn.004de6c0
push edi
push 0x69d8f9
push 0x100000
call fcn.004e0530
mov ebp, eax
add esp, 0x28
cmp ebp, edi
jne 0x526c89
push ebx
call fcn.004de6a0
add esp, 4
jmp 0x526d81
lea ecx, [esp + 0x124]
push ecx
call fcn.004e03a0
add esp, 4
push 0x104
mov dword [esp + 0x18], eax
lea eax, [esi + 0x94]
push eax
push 0xffffffffffffffff
lea edx, [esp + 0x130]
push edx
push edi
push 0x3a4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [esp + 0x14], edi
jne 0x526cd9
push ebx
call fcn.004de6a0
push ebp
call fcn.004e0760
add esp, 8
jmp 0x526d81
cmp dword [esp + 0x18], edi
mov dword [esi + 0x90], 1
mov dword [esp + 0x1c], edi
jbe 0x526d3e
lea ecx, [ecx]
mov edi, dword [esp + 0x1c]
sub edi, dword [esp + 0x18]
cmp edi, 0x100000
jbe 0x526d05
mov edi, 0x100000
push ebx
push 1
push edi
push ebp
call fcn.004de6d0
mov ecx, dword [esp + 0x24]
add esp, 0x10
push 0
lea eax, [esp + 0x24]
push eax
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [esp + 0x20]
jne 0x526d3c
mov eax, dword [esp + 0x1c]
add eax, edi
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
jb 0x526cf0
xor edi, edi
push ebx
call fcn.004de6a0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.004e0760
mov eax, dword [esi + 0x54]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
add esp, 4
push edi
lea ebx, [esi + 0x94]
push ebx
push eax
call edx
cmp eax, edi
mov dword [esp + 0x10], eax
jge 0x526ea7
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x44]
cmp eax, edi
je 0x526d93
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x4c]
cmp eax, edi
je 0x526da5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x4c], edi
mov eax, dword [esi + 0x50]
cmp eax, edi
je 0x526db7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x50], edi
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x526dc9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x38]
cmp eax, edi
je 0x526ddb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x38], edi
mov eax, dword [esi + 0x34]
cmp eax, edi
je 0x526ded
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x34], edi
mov eax, dword [esi + 0x48]
cmp eax, edi
je 0x526dff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x48], edi
mov eax, dword [esi + 0x40]
cmp eax, edi
je 0x526e11
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x40], edi
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x526e23
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x3c], edi
mov eax, dword [esi + 0x68]
cmp eax, edi
je 0x526e35
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x68], edi
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x526e47
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x6c], edi
mov eax, dword [esi + 0x54]
cmp eax, edi
je 0x526e59
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x54], edi
mov eax, dword [esi + 0x58]
cmp eax, edi
je 0x526e6b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x58], edi
mov eax, dword [esi + 0x5c]
cmp eax, edi
je 0x526e7d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x5c], edi
mov eax, dword [esi + 0x60]
cmp eax, edi
je 0x526e8f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x60], edi
lea eax, [esp + 0x24]
push eax
call fcn.004e16a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
lea ebx, [esi + 0x70]
push ebx
push eax
call edx
mov eax, dword [ebx]
or eax, dword [ebx + 4]
jne 0x526ec6
mov dword [ebx], 0x28b0a
mov dword [ebx + 4], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax]
lea edx, [esi + 0x2b0]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 0x334]
cmp eax, edi
je 0x526eee
mov ecx, dword [esi + 0x64]
mov edx, dword [ecx + 0x16c]
mov dword [eax], edx
mov eax, dword [esp + 0x338]
cmp eax, edi
je 0x526f04
mov ecx, dword [esi + 0x64]
mov edx, dword [ecx + 0x170]
mov dword [eax], edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x314
ret