Function at 0x482580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
push ecx
lea edi, [ebp - 0x2c]
mov ecx, 0xb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x55370c]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp + 8], 0
jne 0x4825c0
or eax, 0xffffffff
jmp 0x482c61
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], eax
push 0xb
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov byte [ebp - 0x18], 0x12
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x2c4]
sar eax, 0x10
and eax, 0xff
mov byte [ebp - 0x17], al
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x2c4]
sar edx, 8
and edx, 0xff
mov byte [ebp - 0x16], dl
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x2c4]
and ecx, 0xff
mov byte [ebp - 0x15], cl
mov dword [ebp - 0x28], 0
mov esi, esp
mov edx, dword [ebp + 8]
push edx
push 0xb
push 1
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.004f90e1
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00482d70
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x2c0]
push eax
push str.onMetaData
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00482e00
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 8]
add edx, 0x1c0
push edx
call sub.MSVCR71.dll_strlen
add esp, 4
test eax, eax
je 0x4826b2
mov eax, dword [ebp - 8]
add eax, 0x1c0
push eax
push str.creator
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00483190
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
add eax, 0xc0
push eax
push str.metadatacreator
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00483190
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
push str.hasKeyframes
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00483250
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
push str.hasVideo
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00483250
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
push str.hasAudio
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00483250
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
push str.hasMetadata
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00483250
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
push str.canSeekToEnd
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00483250
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
fld qword [edx + 0xb8]
sub esp, 8
fstp qword [esp]
push str.duration
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
fld qword [edx + 0x70]
sub esp, 8
fstp qword [esp]
push str.datasize
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 1
jne 0x48293a
mov eax, dword [ebp - 8]
fld qword [eax + 0x80]
sub esp, 8
fstp qword [esp]
push str.videosize
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
fld qword [eax + 0x48]
sub esp, 8
fstp qword [esp]
push str.videocodecid
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
fld qword [0x512e20]
fld qword [eax + 0x68]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4828a1
mov ecx, dword [ebp - 8]
fld qword [ecx + 0x68]
sub esp, 8
fstp qword [esp]
push str.width
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
fld qword [0x512e20]
fld qword [ecx + 0x60]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4828e2
mov edx, dword [ebp - 8]
fld qword [edx + 0x60]
sub esp, 8
fstp qword [esp]
push str.height
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
fld qword [edx + 0x50]
sub esp, 8
fstp qword [esp]
push str.framerate
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
fld qword [edx + 0x58]
sub esp, 8
fstp qword [esp]
push str.videodatarate
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 1
jne 0x482a4a
mov eax, dword [ebp - 8]
fld qword [eax + 0x78]
sub esp, 8
fstp qword [esp]
push str.audiosize
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
fld qword [eax + 0x18]
sub esp, 8
fstp qword [esp]
push str.audiocodecid
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
fld qword [eax + 0x20]
sub esp, 8
fstp qword [esp]
push str.audiosamplerate
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
fld qword [eax + 0x30]
sub esp, 8
fstp qword [esp]
push str.audiosamplesize
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x40]
push ecx
push str.stereo
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00483250
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
fld qword [ecx + 0x28]
sub esp, 8
fstp qword [esp]
push str.audiodatarate
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
fld qword [ecx + 0x88]
sub esp, 8
fstp qword [esp]
push str.filesize
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
fld qword [ecx + 0x90]
sub esp, 8
fstp qword [esp]
push str.lasttimestamp
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx], 1
jne 0x482c1c
mov edx, dword [ebp - 8]
fld qword [edx + 0x98]
sub esp, 8
fstp qword [esp]
push str.lastkeyframetimestamp
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
fld qword [edx + 0xa0]
sub esp, 8
fstp qword [esp]
push str.lastkeyframelocation
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
push str.keyframes
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00483040
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xa8]
push edx
push str.filepositions
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00482f20
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
jmp 0x482b65
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
cmp eax, dword [edx + 0xa8]
jge 0x482b9e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xac]
mov eax, dword [ebp - 0x20]
fld qword [edx + eax*8]
sub esp, 8
fstp qword [esp]
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
jmp 0x482b5c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xa8]
push eax
push str.times
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00482f20
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
jmp 0x482bd1
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0xa8]
jge 0x482c0a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xb0]
mov ecx, dword [ebp - 0x20]
fld qword [eax + ecx*8]
sub esp, 8
fstp qword [esp]
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00483310
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
jmp 0x482bc8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.004830f0
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x2c0], 0
jne 0x482c39
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0x2c0], eax
jmp 0x482615
mov ecx, dword [ebp - 0x28]
sub ecx, 0xb
mov edx, dword [ebp - 8]
mov dword [edx + 0x2c4], ecx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00482cb0
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push edx
mov ecx, ebp
push eax
lea edx, [0x482c8c]
call fcn.004f9104
pop eax
pop edx
mov ecx, dword [ebp - 4]
call fcn.004f90d3
pop edi
pop esi
add esp, 0x2c
cmp ebp, esp
call fcn.004f90e1
mov esp, ebp
pop ebp
ret 4