Function at 0x47a5f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ebx, dword [ebx + 0x70]
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.0047ba70
push ebx
mov esi, eax
mov edi, edx
call fcn.00500897
or ebx, 0xffffffff
mov ecx, edx
xor edx, edx
mov dword [ebp - 0x18], ebx
xor ebx, ebx
mov dword [ebp - 0x14], edx
add eax, esi
mov dword [ebp - 4], edx
mov esi, dword [ebp - 0x1c]
adc ecx, edi
mov dword [ebp - 8], edx
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
call fcn.00500897
add esp, 0xc
cmp dword [ebp - 0xc], edx
jb 0x47a75b
ja 0x47a651
cmp dword [ebp - 0x10], eax
jbe 0x47a75b
xor edi, edi
push esi
call fcn.004f857f
shl ebx, 8
add esp, 4
movzx eax, al
inc edi
add ebx, eax
cmp ebx, 0x75a1
jg 0x47a6e9
je 0x47a6d6
lea eax, [ebx - 0x8e]
cmp eax, 0x6d
ja case.0x47a681.143
movzx eax, byte [eax + 0x47a91c]
jmp dword [eax*4 + 0x47a90c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047a990
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47a73a
mov ebx, dword [ebp - 8]
lea ecx, [ebx*4 + 4]
push ecx
push dword [ebp - 4]
call fcn.004f6762
add esp, 8
mov dword [ebp - 4], eax
mov dword [eax + ebx*4], edi
inc ebx
mov dword [ebp - 8], ebx
jmp 0x47a73a
push esi
call fcn.0047b980
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x47a73a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047acd0
add esp, 0xc
jmp 0x47a73a
cmp ebx, 0x75a2
je case.0x47a681.142
cmp edi, 4
jne 0x47a73e
push esi
call fcn.00500897
add eax, 0xfffffffc
adc edx, 0xffffffff
push edx
push eax
push ebx
push str._nMatroska_parser_error:_Unknown_element_0x_x_at_position__I64d__skipping_segment_cluster_block_group_n
call fcn.0048f060
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
call fcn.00500299
add esp, 0x24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0047ba70
push 1
push edx
push eax
push esi
call fcn.00500299
add esp, 0x14
xor ebx, ebx
xor edi, edi
push esi
call fcn.00500897
add esp, 4
cmp dword [ebp - 0xc], edx
jb 0x47a75b
ja 0x47a653
cmp dword [ebp - 0x10], eax
ja 0x47a653
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], eax
jle 0x47a8fa
mov ebx, dword [ebp - 0x18]
nop dword [eax]
mov edi, dword [ebp - 0x14]
cmp ebx, 0xffffffff
jne 0x47a78c
test edi, edi
jne 0x47a78c
mov ecx, dword [ebp - 4]
lea esi, [ecx + eax*4]
mov eax, dword [esi]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], edi
jmp 0x47a7ad
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov eax, dword [edx + 0x18]
or eax, dword [edx + 0x1c]
jne 0x47a7ad
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
add ecx, ebx
mov dword [edx + 0x18], ecx
adc eax, edi
mov dword [edx + 0x1c], eax
cmp dword [0x6023e8], 0
je 0x47a8ea
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esi]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0045b070
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi]
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.0045b070
mov eax, dword [esi]
add esp, 0x30
mov eax, dword [eax]
mov edi, eax
mov dword [ebp + 8], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x47a803
sub edi, ecx
xor ebx, ebx
nop
push str.SUBTITLE
push 2
call fcn.004f6faa
add esp, 4
push eax
call fcn.00402d30
add esp, 8
test ebx, ebx
jne 0x47a86c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x1c]
shl ecx, 4
sub ecx, dword [ebp - 0xc]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x24]
shl ecx, 4
sub ecx, dword [ebp - 0x28]
lea eax, [eax + ecx*4]
push eax
push str._02u:_02u_02u:_02u
push 2
call fcn.004f6faa
add esp, 4
push eax
call fcn.00402d30
add esp, 0x18
jmp 0x47a884
push 0x5399c8
push 2
call fcn.004f6faa
add esp, 4
push eax
call fcn.00402d30
add esp, 8
mov esi, ebx
cmp ebx, edi
jge 0x47a89b
mov eax, dword [ebp + 8]
nop dword [eax]
cmp byte [esi + eax], 0xa
je 0x47a89b
inc esi
cmp esi, edi
jl 0x47a890
push 2
call fcn.004f6faa
push eax
mov eax, esi
sub eax, ebx
push eax
mov eax, dword [ebp + 8]
add eax, ebx
push 1
push eax
call fcn.004f88b9
push 2
call fcn.004f6faa
push eax
push 1
push 1
push 0x51e8a4
call fcn.004f88b9
push 2
call fcn.004f6faa
push eax
call fcn.004f69f1
add esp, 0x30
cmp esi, edi
je 0x47a8e7
lea ebx, [esi + 1]
jmp 0x47a810
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 8]
jl 0x47a770
push dword [ebp - 4]
call fcn.004f6752
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret