Function at 0x5a1030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638796
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
cmp dword [ebp + 0x18], 0xe
je 0x5a1083
cmp dword [ebp + 0x18], 1
je 0x5a1083
cmp dword [ebp + 0x18], 5
je 0x5a1083
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x14c], 0
jne 0x5a1083
mov eax, 1
jmp 0x5a141c
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + 0x140], 0
je 0x5a1096
xor eax, eax
jmp 0x5a141c
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x154], eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x24]
push edx
call fcn.005a97c0
mov ecx, eax
call fcn.005a9cc0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5a1102
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x158]
push ecx
mov edx, dword [ebp - 0x5c]
xor eax, eax
cmp dword [edx + 0x144], 0
sete al
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x5c]
add ecx, 0x15c
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x15c]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [ebp - 0x5c]
movzx ecx, byte [eax + 0x138]
test ecx, ecx
je 0x5a1256
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x168], 0
je 0x5a1254
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x170], 0xffffffff
je 0x5a1159
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + 0x170], 2
jne 0x5a1254
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x164]
push edx
call sub.StreamReader.dll_Ordinal_2_3
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x164]
push ecx
call sub.StreamReader.dll_Ordinal_4_2
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5a1254
mov edx, dword [ebp - 0x18]
cmp dword [edx + 8], 0
je 0x5a11a5
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 3
jne 0x5a11a7
jmp 0x5a1177
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0xc], 0
jne 0x5a11bf
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x16c], 0
jmp 0x5a1177
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 1
jne 0x5a11e1
mov ecx, dword [ebp - 0x5c]
mov byte [ecx + 0x174], 0
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x170], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x10], 1
jne 0x5a1200
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0
jne 0x5a1200
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x16c], 1
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x16c], 0
jne 0x5a1211
jmp 0x5a1177
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 1
je 0x5a1223
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x10], 2
jne 0x5a124f
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x18], 2
jne 0x5a124f
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x168]
push eax
call fcn.0059cb20
add esp, 0x10
jmp 0x5a1177
jmp 0x5a1295
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + 0x34], 0
je 0x5a1295
mov edx, dword [ebp - 0x5c]
movzx eax, byte [edx + 0x138]
test eax, eax
jne 0x5a1295
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x34]
push edx
push 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005e96c4
add esp, 0x10
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x34]
push eax
call fcn.005ed884
add esp, 4
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + 0x170], 5
jne 0x5a1402
mov edx, dword [ebp - 0x5c]
movzx eax, byte [edx + 0x138]
test eax, eax
je 0x5a1402
mov ecx, dword [ebp - 0x5c]
movzx edx, byte [ecx + 0x174]
test edx, edx
jne 0x5a13d1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [edx + 0xc8]
call eax
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + 0x164], 0
je 0x5a1305
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x164]
push eax
call sub.StreamReader.dll_Ordinal_1_3
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x164], 0
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x168], 0
je 0x5a1330
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x168]
push ecx
call fcn.0059ceb0
add esp, 4
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x168], 0
mov eax, dword [ebp - 0x5c]
add eax, 0x38
push eax
call fcn.005edef8
add esp, 4
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x58]
call fcn.004072b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x5c]
add ecx, 0x38
push ecx
lea ecx, [ebp - 0x58]
call fcn.0042f000
push str.h264
push 3
mov edx, dword [ebp - 0x5c]
add edx, 0x38
push edx
call fcn.005e51c0
add esp, 4
sub eax, 3
push eax
lea ecx, [ebp - 0x58]
call fcn.005a24f0
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040a9f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00404ae0
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [edx + 0xc4]
call eax
mov ecx, dword [ebp - 0x5c]
mov byte [ecx + 0x174], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00404ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00404ac0
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x34], 0
je 0x5a1402
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x34]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.005e96c4
add esp, 0x10
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x34]
push edx
call fcn.005ed884
add esp, 4
mov ecx, dword [ebp - 0x5c]
add ecx, 0x15c
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x15c]
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret 0x14