Function at 0x10196bd0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.1000120d
mov eax, dword [0x10266634]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x1024], edi
mov dword [ebp - 0x1010], 0
mov dword [ebp - 0x1008], esi
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x100c], ecx
cmp dword [edi + 0x18], esi
jbe 0x1019709b
xor eax, eax
mov dword [ebp - 0x1014], eax
nop
mov ebx, dword [ecx + 0x18]
add ebx, eax
cmp dword [ebx + 0x8428], 0
je 0x1019703e
lea eax, [ebx + 4]
push eax
push str._s_temp
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.10001794
push 0
push dword [edi + 0x550]
lea eax, [edi + 0x4a0]
push dword [edi + 0x544]
lea ecx, [ebx + 0x8404]
push 0
push eax
push 2
lea eax, [ebp - 0x404]
push eax
push ecx
call fcn.10001ab9
add esp, 0x30
mov dword [ebp - 0x1010], eax
test eax, eax
js 0x1019709b
mov eax, dword [ebx + 0x8410]
mov ecx, dword [ebx + 0x8414]
push 0
push dword [ebx]
mov dword [ebx + 0x8420], eax
mov dword [ebx + 0x8424], ecx
call sym.avformat_58.dll_av_write_frame
mov eax, dword [ebx]
push dword [eax + 0x10]
call sym.avformat_58.dll_avio_flush
lea eax, [ebx + 0x8404]
mov dword [ebx + 0x8428], 0
add esp, 0xc
cmp dword [eax], 0
je 0x10197085
cmp dword [ebx + 0x840c], 0
jne 0x10197085
push eax
call fcn.100010fa
mov eax, dword [ebx + 0x8410]
sub eax, dword [ebx + 0x8420]
mov ecx, dword [ebx + 0x8414]
sbb ecx, dword [ebx + 0x8424]
push ecx
push eax
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x1038]
mov dword [ebp - 0x1020], ecx
push eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.101978d0
add esp, 0x20
mov dword [ebp - 0x1010], eax
test eax, eax
js 0x1019709b
mov eax, dword [edi + 0x1c]
lea ecx, [esi*4]
mov dword [ebp - 0x1018], ecx
mov edx, dword [ecx + eax]
mov ecx, dword [edx + 0xb0]
mov eax, dword [ecx + 0x18]
or eax, dword [ecx + 0x1c]
jne 0x10196e65
push 0xf4240
push 1
push dword [edx + 0x14]
push dword [edx + 0x10]
push dword [ebp - 0x1034]
push dword [ebp - 0x1038]
call sub.avutil_56.dll_av_rescale_q
add esp, 0x18
mov edi, eax
mov esi, edx
push 0
push 0x7a1200
push dword [ebp - 0x1020]
push dword [ebp - 0x101c]
call fcn.10001352
push esi
push edi
push edx
push eax
call fcn.10001c1c
mov esi, dword [ebp - 0x1024]
mov edi, eax
mov eax, edx
mov ecx, edi
or ecx, eax
mov dword [ebp - 0x1010], eax
je 0x1019705f
push eax
push edi
push str.calculated_bitrate:__lld_n
push 0x30
push esi
call sub.avutil_56.dll_av_log
mov eax, dword [esi + 0x1c]
lea esi, [ebx + 4]
mov edx, dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x1010]
mov eax, dword [edx + eax]
mov eax, dword [eax + 0xb0]
mov dword [eax + 0x18], edi
lea edi, [ebp - 0x1004]
mov dword [eax + 0x1c], ecx
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x1024]
lea esi, [ebx + 4]
mov eax, dword [edi + 0x1c]
mov eax, dword [edx + eax]
mov eax, dword [eax + 0xb0]
push dword [eax + 0x1c]
push dword [eax + 0x18]
push dword [edi + 0x420]
push str._s_QualityLevels__lld_
push 0x400
push esi
call fcn.10001794
push esi
push str._s_temp
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.10001794
push edi
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.10001190
add esp, 0x48
test eax, eax
js 0x101972b0
mov esi, dword [ebp - 0x1008]
push dword [ebp - 0x1028]
lea eax, [ebx + 4]
push dword [ebp - 0x102c]
push dword [ebx + 0x842c]
push eax
push str._s_FragmentInfo__s_llu_
lea eax, [ebp - 0xc04]
push 0x400
push eax
call fcn.10001794
push dword [ebp - 0x1028]
lea eax, [ebx + 4]
push dword [ebp - 0x102c]
push dword [ebx + 0x842c]
push eax
push str._s_Fragments__s_llu_
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.10001794
push dword [ebp - 0x103c]
lea eax, [ebp - 0xc04]
push dword [ebp - 0x1040]
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.10196940
add esp, 0x4c
lea eax, [ebp - 0x804]
push edi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.10001190
add esp, 0xc
mov dword [ebp - 0x1010], eax
test eax, eax
js 0x1019709b
mov eax, dword [ebx + 0x8420]
mov dword [ebp - 0x1018], eax
mov eax, dword [ebx + 0x8424]
mov dword [ebp - 0x1030], eax
mov eax, dword [ebx + 0x8434]
cmp dword [ebx + 0x8430], eax
jl 0x10196f67
lea eax, [eax*2 + 2]
push eax
mov dword [ebx + 0x8434], eax
lea eax, [ebx + 0x843c]
push 4
push eax
call sub.avutil_56.dll_av_reallocp_array
add esp, 0xc
test eax, eax
jns 0x10196f67
mov dword [ebx + 0x8434], 0
mov dword [ebx + 0x8430], 0
jmp 0x10197038
push 0x828
call sub.avutil_56.dll_av_mallocz
mov esi, eax
add esp, 4
test esi, esi
je 0x10197032
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.avutil_56.dll_av_strlcpy
push 0x400
lea eax, [ebp - 0xc04]
push eax
lea eax, [esi + 0x400]
push eax
call sub.avutil_56.dll_av_strlcpy
mov eax, dword [ebp - 0x102c]
add esp, 0x18
mov dword [esi + 0x800], eax
mov eax, dword [ebp - 0x1028]
mov dword [esi + 0x804], eax
mov eax, dword [ebp - 0x1038]
mov dword [esi + 0x808], eax
mov eax, dword [ebp - 0x1034]
mov dword [esi + 0x80c], eax
mov eax, dword [ebp - 0x1018]
mov dword [esi + 0x818], eax
mov eax, dword [ebp - 0x1030]
mov dword [esi + 0x81c], eax
mov eax, dword [ebp - 0x101c]
mov dword [esi + 0x820], eax
mov eax, dword [ebp - 0x1020]
mov dword [esi + 0x824], eax
mov eax, dword [ebx + 0x8438]
mov dword [esi + 0x810], eax
mov ecx, dword [ebx + 0x8430]
mov eax, dword [ebx + 0x843c]
mov dword [eax + ecx*4], esi
inc dword [ebx + 0x8430]
inc dword [ebx + 0x8438]
mov esi, dword [ebp - 0x1008]
mov ecx, dword [ebp - 0x100c]
add dword [ebp - 0x1014], 0x8450
inc esi
mov dword [ebp - 0x1008], esi
cmp esi, dword [edi + 0x18]
jae 0x1019709b
mov eax, dword [ebp - 0x1014]
jmp 0x10196c20
push str.calculating_bitrate_got_zero._n
push 0x10
push esi
call sub.avutil_56.dll_av_log
add esp, 0xc
mov eax, 0xffffffea
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100014c9
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100014c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x100c]
mov esi, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
jne 0x101970bc
test esi, esi
je 0x1019729c
cmp dword [ecx + 0x14], 0
je 0x1019729c
xor edx, edx
mov dword [ebp - 0x1008], edx
cmp dword [edi + 0x18], edx
jbe 0x1019729c
xor ebx, ebx
mov dword [ebp - 0x1018], ebx
mov edi, dword [ecx + 0x18]
add edi, ebx
mov dword [ebp - 0x1020], edi
mov eax, dword [edi + 0x8430]
mov ebx, eax
sub ebx, dword [ecx + 0xc]
sub ebx, dword [ecx + 8]
sub ebx, dword [ecx + 4]
test esi, esi
je 0x101970fc
cmp dword [ecx + 0x14], 0
cmovne ebx, eax
test ebx, ebx
jle 0x1019721e
xor eax, eax
mov dword [ebp - 0x1014], eax
nop dword [eax]
lea ecx, [eax*4]
mov eax, dword [edi + 0x843c]
mov dword [ebp - 0x101c], ecx
mov eax, dword [ecx + eax]
lea ecx, [ebp - 0x1030]
push ecx
push eax
mov dword [ebp - 0x103c], eax
call fcn.10197bb0
add esp, 8
test eax, eax
jne 0x1019716b
mov esi, dword [ebp - 0x1030]
test esi, esi
jne 0x1019715b
push dword [ebp - 0x103c]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
add esp, 4
jmp 0x1019716b
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wunlink]
push esi
call sub.avutil_56.dll_av_free
add esp, 8
mov eax, dword [edi + 0x843c]
mov esi, dword [ebp - 0x101c]
mov esi, dword [eax + esi]
lea eax, [ebp - 0x1034]
push eax
add esi, 0x400
push esi
call fcn.10197bb0
add esp, 8
test eax, eax
jne 0x101971c0
mov edi, dword [ebp - 0x1034]
test edi, edi
jne 0x101971aa
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
add esp, 4
jmp 0x101971ba
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wunlink]
push edi
call sub.avutil_56.dll_av_free
add esp, 8
mov edi, dword [ebp - 0x1020]
mov eax, dword [edi + 0x843c]
add eax, dword [ebp - 0x101c]
push eax
call fcn.101e0e4b
mov eax, dword [ebp - 0x1014]
add esp, 4
inc eax
mov dword [ebp - 0x1014], eax
cmp eax, ebx
jl 0x10197110
mov eax, dword [edi + 0x8430]
mov ecx, dword [edi + 0x843c]
sub eax, ebx
mov dword [edi + 0x8430], eax
shl eax, 2
push eax
lea eax, [ecx + ebx*4]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x100c]
add esp, 0xc
mov edx, dword [ebp - 0x1008]
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1019726e
cmp dword [ecx + 0x14], 0
je 0x1019726e
lea eax, [ebp - 0x1028]
add edi, 4
push eax
push edi
call fcn.10197bb0
add esp, 8
test eax, eax
jne 0x10197268
mov esi, dword [ebp - 0x1028]
test esi, esi
jne 0x10197255
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__rmdir]
add esp, 4
jmp 0x10197265
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrmdir]
push esi
call sub.avutil_56.dll_av_free
add esp, 8
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1008]
mov edi, dword [ebp - 0x1024]
inc edx
mov ebx, dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x100c]
add ebx, 0x8450
mov dword [ebp - 0x1008], edx
mov dword [ebp - 0x1018], ebx
cmp edx, dword [edi + 0x18]
jb 0x101970d5
mov eax, dword [ebp - 0x1010]
test eax, eax
js 0x101972b0
push esi
push edi
call fcn.10197d90
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100014c9
mov esp, ebp
pop ebp
ret