Function at 0x4708e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66b971
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x73bb00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4bc], edi
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x1fc]
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x5c], 0
push ecx
lea ecx, [edi + 0x1d8]
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.0046ee40
lea ecx, [ebp - 0x60]
call fcn.0046ed00
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x5c], 0
push ecx
lea ecx, [edi + 0x188]
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.0046ee40
lea ecx, [ebp - 0x60]
call fcn.0046ed00
mov ecx, dword [edi + 8]
push 0x400
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
lea eax, [ebp - 0x4a0]
push eax
push 0
push 2
lea eax, [edi + 0x18]
push eax
call edx
test eax, eax
je 0x47164f
push eax
call fcn.0061fe80
lea eax, [ebp - 0x4a0]
push eax
push 0x6ad248
lea esi, [edi + 0x234]
push 0
push esi
call sub.avformat_60.dll_avformat_alloc_output_context2
mov eax, dword [esi]
add esp, 0x14
test eax, eax
jne 0x4709ff
push str.Failed_to_create_formatcontext_for_recoding_video.
jmp 0x471654
mov eax, dword [eax + 8]
mov esi, dword [edi + 0x14]
imul esi, dword [edi + 0x10]
mov dword [edi + 0x238], eax
mov dword [edi + 0x138], 2
mov dword [edi + 0x140], 2
mov dword [edi + 0x13c], 0
mov dword [edi + 0x144], 0
mov eax, dword [edi + 0x178]
mov ecx, dword [edi + 0x17c]
sub ecx, eax
mov dword [ebp - 0x4b4], eax
mov eax, 0x2aaaaaab
shl esi, 2
imul ecx
mov dword [ebp - 0x4a4], esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x4a8], eax
cmp eax, 2
jbe 0x470a9d
mov esi, dword [ebp - 0x4b4]
lea ecx, [edi + 0x178]
mov eax, dword [ecx + 4]
add esi, 0x18
push ecx
push eax
push esi
call fcn.0046df80
lea eax, [edi + 0x178]
add esp, 0xc
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x4a4]
jmp 0x470b04
jae 0x470afe
mov ecx, dword [edi + 0x180]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x4b4]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jae 0x470ad6
lea eax, [ebp - 0x4ad]
push eax
push 2
lea ecx, [edi + 0x178]
call fcn.0046e620
jmp 0x470afe
lea eax, [edi + 0x178]
push eax
mov eax, 2
sub eax, dword [ebp - 0x4a8]
push eax
mov eax, dword [edi + 0x17c]
push eax
call fcn.0046e7e0
add esp, 0xc
mov dword [edi + 0x17c], eax
lea eax, [edi + 0x178]
cmp dword [edi + 0x138], 0
mov dword [ebp - 0x4c0], 0
jbe 0x470bb5
xor edx, edx
mov dword [ebp - 0x4a8], edx
mov ecx, dword [eax]
mov eax, dword [ecx + edx]
add ecx, edx
mov dword [ebp - 0x4ac], ecx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x4b4], edx
sub edx, eax
cmp esi, edx
jae 0x470b43
add eax, esi
jmp 0x470b84
jbe 0x470b87
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp esi, eax
jbe 0x470b5d
lea eax, [ebp - 0x4ad]
push eax
push esi
call fcn.004190d0
jmp 0x470b87
sub esi, edx
push esi
push 0
push dword [ebp - 0x4b4]
call fcn.00634760
mov eax, dword [ebp - 0x4b4]
add esp, 0xc
mov ecx, dword [ebp - 0x4ac]
add eax, esi
mov esi, dword [ebp - 0x4a4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x4c0]
mov edx, dword [ebp - 0x4a8]
inc eax
add edx, 0xc
mov dword [ebp - 0x4c0], eax
cmp eax, dword [edi + 0x138]
lea eax, [edi + 0x178]
mov dword [ebp - 0x4a8], edx
jb 0x470b23
mov eax, dword [edi + 0x170]
lea edx, [edi + 0x16c]
mov esi, dword [edi + 0x140]
mov ecx, eax
mov dword [ebp - 0x4a4], eax
mov eax, dword [edx]
sub ecx, eax
sar ecx, 0xd
cmp esi, ecx
jae 0x470be4
shl esi, 0xd
add esi, eax
mov dword [edx + 4], esi
jmp 0x470c34
jbe 0x470c34
mov eax, dword [edx + 8]
sub eax, dword [edx]
sar eax, 0xd
cmp esi, eax
jbe 0x470c03
lea eax, [ebp - 0x4ad]
mov ecx, edx
push eax
push esi
call fcn.0046e200
jmp 0x470c34
sub esi, ecx
je 0x470c2b
shl esi, 0xd
push esi
push 0
push dword [ebp - 0x4a4]
call fcn.00634760
mov eax, dword [ebp - 0x4a4]
lea edx, [edi + 0x16c]
add esp, 0xc
add eax, esi
jmp 0x470c31
mov eax, dword [ebp - 0x4a4]
mov dword [edx + 4], eax
mov eax, dword [edi + 0x238]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x470c67
push eax
lea eax, [edi + 0x228]
mov ecx, edi
push eax
push dword [edi + 0x234]
lea eax, [edi + 0x188]
push eax
call fcn.0046f010
test al, al
je 0x471661
jmp 0x470c79
push str.Failed_to_add_VideoStream_for_recoding_video.
push str.video_recorder
call fcn.0061d2f0
add esp, 8
cmp byte [edi + 0x168], 0
je 0x470cb5
mov eax, dword [edi + 0x238]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x470cb5
push eax
lea eax, [edi + 0x22c]
mov ecx, edi
push eax
push dword [edi + 0x234]
lea eax, [edi + 0x1d8]
push eax
call fcn.0046f010
test al, al
je 0x471661
jmp 0x470cc7
push str.No_audio.
push str.video_recorder
call fcn.0061d2f0
add esp, 8
mov ecx, dword [edi + 0x14c]
lea esi, [edi + 0x148]
mov edx, dword [edi + 0x138]
mov eax, ecx
sub eax, dword [esi]
sar eax, 2
mov dword [ebp - 0x4a4], ecx
mov dword [ebp - 0x4a8], eax
cmp edx, eax
jae 0x470d11
mov eax, dword [esi]
lea esi, [eax + edx*4]
lea eax, [edi + 0x148]
push eax
push ecx
push esi
call fcn.0046df20
mov dword [edi + 0x14c], esi
lea esi, [edi + 0x148]
jmp 0x470d6f
jbe 0x470d72
mov eax, dword [esi + 8]
sub eax, dword [esi]
sar eax, 2
cmp edx, eax
jbe 0x470d30
lea eax, [ebp - 0x4ad]
mov ecx, esi
push eax
push edx
call fcn.0046e4b0
jmp 0x470d72
sub edx, dword [ebp - 0x4a8]
je 0x470d5e
mov edi, dword [ebp - 0x4a4]
xor eax, eax
shl edx, 2
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x4a4]
mov edi, dword [ebp - 0x4bc]
add ecx, edx
mov dword [ebp - 0x4a4], ecx
push esi
push ecx
push ecx
call fcn.0046df20
mov eax, dword [ebp - 0x4a4]
mov dword [esi + 4], eax
add esp, 0xc
mov ecx, dword [edi + 0x138]
mov dword [ebp - 0x4a4], 0
test ecx, ecx
je 0x470eff
nop word [eax + eax]
push 0xc8
call fcn.006326f1
mov ecx, eax
add esp, 4
mov dword [ebp - 0x4b4], ecx
test ecx, ecx
je 0x470e82
push 0xbc
add ecx, 0xc
push 0
push ecx
call fcn.00634760
mov eax, dword [ebp - 0x4b4]
xorps xmm0, xmm0
movq qword [eax], xmm0
movups xmmword [eax + 0x14], xmm0
movq qword [eax + 0x24], xmm0
mov dword [eax + 0x2c], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 8], 2
mov dword [eax + 0x34], 0
add eax, 0x38
push eax
call fcn.00630c2e
mov eax, dword [ebp - 0x4b4]
xorps xmm0, xmm0
mov word [eax + 0x60], 0
mov byte [eax + 0x62], 0
movups xmmword [eax + 0x70], xmm0
movq qword [eax + 0x80], xmm0
mov dword [eax + 0x88], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov dword [eax + 0x8c], 0xffffffff
mov dword [eax + 0x64], 2
mov dword [eax + 0x90], 0
add eax, 0x94
push eax
call fcn.00630c2e
mov ecx, dword [ebp - 0x4b4]
add esp, 0x14
mov dword [ecx + 0xc0], 0
mov dword [ecx + 0xc4], 0
jmp 0x470e84
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [ebp - 0x4a4]
mov edi, dword [ebp - 0x4a4]
mov edx, dword [eax + edx*4]
mov dword [eax + edi*4], ecx
mov edi, dword [ebp - 0x4bc]
mov dword [ebp - 0x4a8], edx
test edx, edx
je 0x470ee4
lea eax, [edx + 0x94]
push eax
call fcn.0041bb80
mov eax, dword [ebp - 0x4a8]
add eax, 0x38
push eax
call fcn.0041bb80
mov eax, dword [ebp - 0x4a8]
add esp, 8
cmp dword [eax + 4], 0
jne 0x47167c
push 0xc8
push eax
call fcn.00632721
add esp, 8
mov eax, dword [ebp - 0x4a4]
mov ecx, dword [edi + 0x138]
inc eax
mov dword [ebp - 0x4a4], eax
cmp eax, ecx
jb 0x470d90
xor eax, eax
mov dword [ebp - 0x4a4], eax
test ecx, ecx
je 0x471079
nop
lea ecx, [eax*4]
mov byte [ebp - 0x4c0], 0
mov eax, dword [esi]
mov eax, dword [eax + ecx]
add eax, 8
push eax
mov dword [ebp - 0x4c4], eax
call fcn.00630a82
add esp, 4
test eax, eax
jne 0x4716a0
mov eax, dword [ebp - 0x4c4]
cmp dword [eax + 0x2c], 0x7fffffff
je 0x471692
mov byte [ebp - 0x4c0], 1
push 8
mov dword [ebp - 4], 0
call fcn.006326f1
add esp, 4
test eax, eax
je 0x470f79
mov ecx, dword [ebp - 0x4a4]
mov dword [eax], edi
mov dword [eax + 4], ecx
jmp 0x470f7b
xor eax, eax
mov dword [ebp - 0x4a8], eax
lea ecx, [ebp - 0x4b4]
mov byte [ebp - 4], 1
push ecx
push 0
push eax
push 0x46dff0
push 0
push 0
call fcn.0064a803
add esp, 0x18
mov dword [ebp - 0x4ac], eax
mov dword [ebp - 0x4b8], eax
test eax, eax
je 0x471681
mov ecx, dword [esi]
mov edx, dword [ebp - 0x4a4]
mov byte [ebp - 4], 0
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x4a8], eax
cmp dword [eax + 4], 0
jne 0x47167c
mov edi, dword [ebp - 0x4a8]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x4b4]
mov ecx, dword [ebp - 0x4ac]
movlpd qword [ebp - 0x4b8], xmm0
mov dword [edi], ecx
mov ecx, edi
mov edi, dword [ebp - 0x4bc]
mov dword [ecx + 4], eax
cmp dword [ebp - 0x4b4], 0
jne 0x47167c
mov eax, dword [esi]
mov eax, dword [eax + edx*4]
cmp byte [eax + 0x60], 0
lea ecx, [eax + 0x38]
mov dword [ebp - 0x4ac], ecx
jne 0x47104b
mov edi, dword [ebp - 0x4c4]
push edi
push ecx
call fcn.00630c3d
mov ecx, dword [ebp - 0x4a4]
add esp, 8
mov eax, dword [esi]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x4ac]
cmp byte [eax + 0x60], 0
je 0x471024
mov edi, dword [ebp - 0x4bc]
push dword [ebp - 0x4c4]
mov dword [ebp - 4], 0xffffffff
call fcn.00630a93
mov eax, dword [ebp - 0x4a4]
add esp, 4
inc eax
mov dword [ebp - 0x4a4], eax
cmp eax, dword [edi + 0x138]
jb 0x470f10
mov ecx, dword [edi + 0x158]
lea esi, [edi + 0x154]
mov edx, dword [edi + 0x140]
mov eax, ecx
sub eax, dword [esi]
sar eax, 2
mov dword [ebp - 0x4a4], ecx
mov dword [ebp - 0x4a8], eax
cmp edx, eax
jae 0x4710c3
mov eax, dword [esi]
lea esi, [eax + edx*4]
lea eax, [edi + 0x154]
push eax
push ecx
push esi
call fcn.0046dec0
mov dword [edi + 0x158], esi
lea esi, [edi + 0x154]
jmp 0x471121
jbe 0x471124
mov eax, dword [esi + 8]
sub eax, dword [esi]
sar eax, 2
cmp edx, eax
jbe 0x4710e2
lea eax, [ebp - 0x4ad]
mov ecx, esi
push eax
push edx
call fcn.0046e340
jmp 0x471124
sub edx, dword [ebp - 0x4a8]
je 0x471110
mov edi, dword [ebp - 0x4a4]
xor eax, eax
shl edx, 2
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x4a4]
mov edi, dword [ebp - 0x4bc]
add ecx, edx
mov dword [ebp - 0x4a4], ecx
push esi
push ecx
push ecx
call fcn.0046dec0
mov eax, dword [ebp - 0x4a4]
mov dword [esi + 4], eax
add esp, 0xc
mov ecx, dword [edi + 0x140]
mov dword [ebp - 0x4a4], 0
test ecx, ecx
je 0x4712c3
nop dword [eax]
push 0xd0
call fcn.006326f1
mov ecx, eax
add esp, 4
mov dword [ebp - 0x4b4], ecx
test ecx, ecx
je 0x471246
push 0xc4
add ecx, 0xc
push 0
push ecx
call fcn.00634760
mov eax, dword [ebp - 0x4b4]
xorps xmm0, xmm0
movq qword [eax], xmm0
movups xmmword [eax + 0x14], xmm0
movq qword [eax + 0x24], xmm0
mov dword [eax + 0x2c], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 8], 2
mov dword [eax + 0x34], 0
add eax, 0x38
push eax
call fcn.00630c2e
mov eax, dword [ebp - 0x4b4]
xorps xmm0, xmm0
mov word [eax + 0x60], 0
mov byte [eax + 0x62], 0
movups xmmword [eax + 0x70], xmm0
movq qword [eax + 0x80], xmm0
mov dword [eax + 0x88], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov dword [eax + 0x8c], 0xffffffff
mov dword [eax + 0x64], 2
mov dword [eax + 0x90], 0
add eax, 0x94
push eax
call fcn.00630c2e
mov ecx, dword [ebp - 0x4b4]
add esp, 0x14
mov dword [ecx + 0xc0], 0
mov dword [ecx + 0xc4], 0
mov dword [ecx + 0xc8], 0
mov dword [ecx + 0xcc], 0
jmp 0x471248
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [ebp - 0x4a4]
mov edi, dword [ebp - 0x4a4]
mov edx, dword [eax + edx*4]
mov dword [eax + edi*4], ecx
mov edi, dword [ebp - 0x4bc]
mov dword [ebp - 0x4a8], edx
test edx, edx
je 0x4712a8
lea eax, [edx + 0x94]
push eax
call fcn.0041bb80
mov eax, dword [ebp - 0x4a8]
add eax, 0x38
push eax
call fcn.0041bb80
mov eax, dword [ebp - 0x4a8]
add esp, 8
cmp dword [eax + 4], 0
jne 0x47167c
push 0xd0
push eax
call fcn.00632721
add esp, 8
mov eax, dword [ebp - 0x4a4]
mov ecx, dword [edi + 0x140]
inc eax
mov dword [ebp - 0x4a4], eax
cmp eax, ecx
jb 0x471140
xor eax, eax
mov dword [ebp - 0x4a4], eax
test ecx, ecx
je 0x471455
nop dword [eax]
nop word [eax + eax]
lea ecx, [eax*4]
mov byte [ebp - 0x4c0], 0
mov eax, dword [esi]
mov eax, dword [eax + ecx]
add eax, 8
push eax
mov dword [ebp - 0x4c4], eax
call fcn.00630a82
add esp, 4
test eax, eax
jne 0x4716a0
mov eax, dword [ebp - 0x4c4]
cmp dword [eax + 0x2c], 0x7fffffff
je 0x471692
mov byte [ebp - 0x4c0], 1
push 8
mov dword [ebp - 4], 2
call fcn.006326f1
add esp, 4
test eax, eax
je 0x471349
mov ecx, dword [ebp - 0x4a4]
mov dword [eax], edi
mov dword [eax + 4], ecx
jmp 0x47134b
xor eax, eax
mov dword [ebp - 0x4a8], eax
lea ecx, [ebp - 0x4b4]
mov byte [ebp - 4], 3
push ecx
push 0
push eax
push 0x46e060
push 0
push 0
call fcn.0064a803
add esp, 0x18
mov dword [ebp - 0x4ac], eax
mov dword [ebp - 0x4b8], eax
test eax, eax
je 0x471681
mov eax, dword [ebp - 0x4a4]
mov ecx, dword [esi]
mov byte [ebp - 4], 2
lea edx, [eax*4]
mov eax, dword [ecx + edx]
mov dword [ebp - 0x4a8], eax
cmp dword [eax + 4], 0
jne 0x47167c
mov edi, dword [ebp - 0x4a8]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x4b4]
mov ecx, dword [ebp - 0x4ac]
movlpd qword [ebp - 0x4b8], xmm0
mov dword [edi], ecx
mov ecx, edi
mov edi, dword [ebp - 0x4bc]
mov dword [ecx + 4], eax
cmp dword [ebp - 0x4b4], 0
jne 0x47167c
mov eax, dword [esi]
mov eax, dword [eax + edx]
cmp byte [eax + 0x60], 0
lea ecx, [eax + 0x38]
mov dword [ebp - 0x4ac], ecx
jne 0x471427
mov edi, dword [ebp - 0x4c4]
nop dword [eax + eax]
push edi
push ecx
call fcn.00630c3d
mov ecx, dword [ebp - 0x4a4]
add esp, 8
mov eax, dword [esi]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x4ac]
cmp byte [eax + 0x60], 0
je 0x471400
mov edi, dword [ebp - 0x4bc]
push dword [ebp - 0x4c4]
mov dword [ebp - 4], 0xffffffff
call fcn.00630a93
mov eax, dword [ebp - 0x4a4]
add esp, 4
inc eax
mov dword [ebp - 0x4a4], eax
cmp eax, dword [edi + 0x140]
jb 0x4712e0
mov ecx, edi
call fcn.0046ff50
test al, al
je 0x471661
cmp byte [edi + 0x168], 0
je 0x47147c
mov ecx, edi
call fcn.0046fb20
test al, al
je 0x471661
push 1
lea eax, [ebp - 0x4a0]
push eax
push 0
push dword [edi + 0x234]
call sub.avformat_60.dll_av_dump_format
mov eax, dword [edi + 0x238]
add esp, 0x10
test byte [eax + 0x1c], 1
jne 0x4714ee
push 2
lea eax, [ebp - 0x4a0]
push eax
mov eax, dword [edi + 0x234]
add eax, 0x10
push eax
call sub.avformat_60.dll_avio_open
add esp, 0xc
test eax, eax
jns 0x4714ee
push 0x40
lea ecx, [ebp - 0x50]
push ecx
push eax
call sub.avutil_58.dll_av_strerror
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4a0]
push eax
push str.Could_not_open__s:__s
push str.video_recorder
call fcn.0061d2f0
add esp, 0x1c
jmp 0x471661
mov eax, dword [edi + 0x1c8]
lea esi, [edi + 0x1c0]
sub eax, dword [esi]
mov ecx, dword [edi + 0x138]
sar eax, 2
mov dword [ebp - 0x4ac], ecx
cmp ecx, eax
jbe 0x471529
cmp ecx, 0x3fffffff
ja 0x4716a7
lea eax, [ebp - 0x4ac]
mov ecx, esi
push eax
call fcn.004577e0
xor ecx, ecx
mov dword [ebp - 0x4b4], ecx
cmp dword [edi + 0x138], ecx
jbe 0x4715dd
nop dword [eax]
mov edx, dword [esi + 4]
mov eax, edx
sub eax, dword [esi]
sar eax, 2
cmp eax, ecx
ja 0x47157e
mov dword [ebp - 0x4ac], 0
cmp edx, dword [esi + 8]
je 0x471569
mov dword [edx], 0
add dword [esi + 4], 4
jmp 0x47157e
lea eax, [ebp - 0x4ac]
mov ecx, esi
push eax
push edx
call fcn.00445e40
mov ecx, dword [ebp - 0x4b4]
mov eax, dword [esi]
lea edx, [ecx*4]
mov dword [ebp - 0x4ac], edx
cmp dword [edx + eax], 0
jne 0x4715ca
mov eax, dword [edi + 0x18c]
push 0
push 0
push 0
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x5c]
push 0
push 0
push ecx
push eax
push 0x1a
push ecx
push eax
push 0
call sub.swscale_7.dll_sws_getCachedContext
mov ecx, dword [esi]
add esp, 0x2c
mov edx, dword [ebp - 0x4ac]
mov dword [edx + ecx], eax
mov ecx, dword [ebp - 0x4b4]
inc ecx
mov dword [ebp - 0x4b4], ecx
cmp ecx, dword [edi + 0x138]
jb 0x471540
lea eax, [edi + 0x230]
push eax
push dword [edi + 0x234]
call sub.avformat_60.dll_avformat_write_header
add esp, 8
test eax, eax
jns 0x471620
push 0x40
lea ecx, [ebp - 0xa0]
push ecx
push eax
call sub.avutil_58.dll_av_strerror
lea eax, [ebp - 0xa0]
push eax
push str.Error_occurred_when_opening_output_file:__s
push str.video_recorder
call fcn.0061d2f0
add esp, 0x18
jmp 0x471661
mov word [edi + 0x134], 0x101
call fcn.00625aa0
mov dword [0x7862c8], eax
mov dword [0x7862cc], edx
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
jmp 0x471661
push str.Failed_to_open_file_for_recoding_video.
push str.video_recorder
call fcn.0061d2f0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063292f
mov esp, ebp
pop ebp
ret
call fcn.0064a66b
push 6
mov dword [ebp - 0x4b4], 0
call fcn.00630cc4
push 6
mov dword [eax + 0x2c], bind
call fcn.00630cc4
push 5
call fcn.00630cc4
call fcn.00418620
int3