Function at 0x100692c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008dab6
mov eax, dword fs:[0]
push eax
sub esp, 0x890
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x884], ecx
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x888], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x880], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x87c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x894], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x890], eax
mov eax, dword [ebp + 0x28]
push 0x208
mov dword [ebp - 0x88c], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x89c], ebx
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x884]
add esp, 0xc
cmp dword [ecx + 0x158], 8
lea eax, [ecx + 0x144]
jb 0x1006936a
mov eax, dword [ecx + 0x144]
mov edx, dword [ebp - 0x880]
lea ecx, [ebp - 0x848]
push eax
call fcn.1005aa70
add esp, 4
mov ecx, ebx
push eax
call fcn.100075b0
mov edx, dword [ebp - 0x834]
cmp edx, 8
jb 0x100693c9
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100693bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100693bf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007face
add esp, 8
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x100693d3
mov eax, dword [ebx]
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x100693dd
mov edx, dword [esi]
lea ecx, [ebp - 0x218]
push ecx
push str.m2ts
push eax
lea ecx, [ebp - 0x848]
call fcn.1005b4a0
add esp, 0xc
mov ecx, ebx
push eax
call fcn.100075b0
mov edx, dword [ebp - 0x834]
cmp edx, 8
jb 0x10069442
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10069438
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10069438
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007face
add esp, 8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10069450
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10016cc0
push 4
push str..avi
mov ecx, edi
call fcn.10016cc0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10069486
mov eax, dword [esi]
push 0x10091ba4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wtempnam]
mov ebx, eax
add esp, 8
mov edx, ebx
lea eax, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x100694a0
mov ecx, dword [ebp - 0x87c]
sub edx, eax
sar edx, 1
push edx
push ebx
call fcn.10016cc0
mov ecx, dword [ebp - 0x87c]
push 1
push 0x100a57dc
call fcn.10016cc0
mov edi, dword [ebp - 0x884]
add edi, 0xde4
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x100694e4
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, dword [ebp - 0x87c]
push eax
call fcn.10016cc0
push ebx
call fcn.1008029f
lea ecx, [ebp - 0x218]
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10069505
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x894]
push eax
call fcn.10016cc0
mov ecx, dword [ebp - 0x894]
push 4
push 0x100a57e0
call fcn.10016cc0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10069542
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x890]
push eax
call fcn.10016cc0
mov ecx, dword [ebp - 0x890]
push 5
push 0x100a5808
call fcn.10016cc0
cmp dword [esi + 0x14], 8
jb 0x1006957e
mov esi, dword [esi]
push 0x10091ba4
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wtempnam]
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x884]
cmp dword [eax + 0x158], 8
lea esi, [eax + 0x144]
jb 0x100695aa
mov esi, dword [eax + 0x144]
cmp dword [eax + 0x154], 4
jne 0x100695e8
mov ecx, str.x264
mov edx, 4
sub esi, ecx
nop
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x100695e8
add ecx, 2
sub edx, 1
jne 0x100695c0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100695d6
mov esi, str..264
jmp 0x10069600
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100695f0
mov esi, str..m4v
mov eax, dword [ebp - 0x888]
sub ecx, edx
sar ecx, 1
mov edx, ebx
push ecx
push edx
mov ecx, eax
call fcn.10016cc0
mov ecx, dword [ebp - 0x888]
push 4
push esi
call fcn.10016cc0
push ebx
call fcn.1008029f
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp - 0x880]
add esp, 0x10
mov ecx, ebx
call fcn.100159b0
mov esi, eax
test esi, esi
je 0x10069760
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 8]
call edx
sub esp, 8
lea eax, [ebp - 0x420]
fstp qword [esp]
push str._.3f
push eax
call fcn.100077f0
lea ecx, [ebp - 0x420]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10069682
mov ebx, dword [ebp - 0x88c]
lea eax, [ebp - 0x420]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.100052a0
mov eax, dword [ebp - 0x884]
lea ecx, [ebp - 0x848]
add eax, 0x928
push eax
call fcn.10007640
lea eax, [ebp - 0x848]
mov dword [ebp - 4], 0
push eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
fstp qword [ebp - 0x898]
movsd xmm1, qword [ebp - 0x898]
call fcn.1005e1b0
test eax, eax
jne 0x10069711
lea eax, [ebp - 0x848]
cmp ebx, eax
je 0x10069711
cmp dword [ebp - 0x834], 8
mov ecx, ebx
push dword [ebp - 0x838]
cmovae eax, dword [ebp - 0x848]
push eax
call fcn.100052a0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x834]
cmp edx, 8
jb 0x1006975a
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10069750
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10069750
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007face
add esp, 8
mov ebx, dword [ebp - 0x880]
mov esi, dword [ebp - 0x89c]
cmp dword [esi + 0x14], 8
jb 0x1006976e
mov esi, dword [esi]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10069773
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebx + 0x2d0]
call fcn.100052a0
xor eax, eax
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 7
mov word [ebp - 0x878], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x860], eax
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x84c], 7
mov word [ebp - 0x860], ax
mov byte [ebp - 4], 2
mov esi, edi
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x100697ea
mov esi, dword [edi]
mov ebx, dword [edi + 0x10]
cmp ebx, 3
jne 0x1006981d
mov ecx, 0x10095dec
mov edx, ebx
sub esi, ecx
nop dword [eax + eax]
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x1006981a
add ecx, 2
sub edx, 1
jne 0x10069800
push 5
push str.A_AAC
jmp 0x1006984a
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x10069824
mov edi, dword [edi]
cmp ebx, 3
jne 0x10069855
mov ecx, 0x10095e18
mov edx, ebx
sub edi, ecx
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x10069855
add ecx, 2
sub edx, 1
jne 0x10069832
push 5
push str.A_AC3
lea ecx, [ebp - 0x860]
call fcn.100052a0
mov eax, dword [ebp - 0x88c]
cmp dword [eax + 0x14], 8
jb 0x10069863
mov eax, dword [eax]
mov ecx, dword [ebp - 0x888]
cmp dword [ecx + 0x14], 8
jb 0x10069871
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x420]
push str.MUXOPT___no_pcr_on_video_pid___new_audio_pes___vbr____vbv_len500_nV_MPEG4_ISO_AVC____s___fps_s__insertSEI__contSPS_n
push eax
call fcn.100077f0
lea edx, [ebp - 0x420]
add esp, 0x10
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10069890
sub edx, ecx
lea eax, [ebp - 0x420]
sar edx, 1
lea ecx, [ebp - 0x878]
push edx
push eax
call fcn.100052a0
mov eax, dword [ebp - 0x880]
cmp dword [eax + 0x270], 0
je 0x10069936
mov ecx, dword [ebp - 0x884]
mov eax, dword [ecx]
call dword [eax + 0xd0]
test eax, eax
jne 0x10069936
mov ecx, dword [ebp - 0x87c]
cmp dword [ecx + 0x14], 8
jb 0x100698e1
mov ecx, dword [ecx]
cmp dword [ebp - 0x84c], 8
lea eax, [ebp - 0x860]
push ecx
cmovae eax, dword [ebp - 0x860]
push eax
lea eax, [ebp - 0x628]
push str._s____s_
push eax
call fcn.100077f0
lea ecx, [ebp - 0x628]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10069914
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x878]
call fcn.10016cc0
cmp dword [ebp + 0x2c], 0
jne 0x100699f5
mov eax, dword [ebp - 0x890]
mov dword [ebp - 0x87c], 0
cmp dword [eax + 0x14], 8
jb 0x10069958
mov eax, dword [eax]
push 0x100a5930
push eax
lea eax, [ebp - 0x87c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
xor ebx, ebx
add esp, 0xc
test eax, eax
sete bl
test eax, eax
jne 0x100699cd
cmp dword [ebp - 0x864], 8
lea ecx, [ebp - 0x878]
cmovae ecx, dword [ebp - 0x878]
call fcn.1007c570
mov esi, eax
mov edx, esi
lea eax, [edx + 1]
nop dword [eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x100699a0
push dword [ebp - 0x87c]
sub edx, eax
push edx
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call fcn.1008029f
push dword [ebp - 0x87c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x100699f2
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [ebp - 0x830]
push str.TsMuxeR_meta_file_could_not_be_opened__d_n
push eax
call fcn.100077f0
add esp, 0x18
mov edx, dword [ebp - 0x84c]
cmp edx, 8
jb 0x10069a31
mov ecx, dword [ebp - 0x860]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10069a27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10069a80
push edx
push ecx
call fcn.1007face
add esp, 8
mov edx, dword [ebp - 0x864]
xor eax, eax
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x84c], 7
mov word [ebp - 0x860], ax
cmp edx, 8
jb 0x10069a90
mov ecx, dword [ebp - 0x878]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10069a86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10069a86
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007face
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 0x28