Function at 0x405150
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x415434]
push ebx
mov ebx, dword [0x415e28]
mov dword [ebp - 0x38], eax
mov eax, dword [0x415548]
push esi
mov esi, dword [0x415438]
mov dword [ebp - 0x3c], eax
push edi
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xb0]
push str.MaxScanSize
push ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0xb4], 0xffffffff
mov dword [ebp - 0xb0], 0xffffffff
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x54], 0xffffffff
call dword [sym.imp.libav.dll_Ordinal_44283]
mov edi, dword [sym.imp.libav.dll_Ordinal_12]
add esp, 8
cmp dword [eax + 0x1c], 0
je 0x40527a
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0
push esi
call edi
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40527a
push esi
call dword [sym.imp.libav.dll_Ordinal_9]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
mov esi, dword [sym.imp.libav.dll_Ordinal_10]
call esi
mov ecx, eax
add esp, 0xc
or ecx, edx
je 0x40529f
push edx
push eax
push str.Limits:_Global_size_limit_set_to__llu_bytes._n
call fcn.00408a10
add esp, 0xc
push str.MaxFileSize
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x1c], 0
je 0x4052e3
push dword [eax + 0x14]
push dword [eax + 0x10]
push 1
push dword [ebp - 8]
call edi
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4052e3
push dword [ebp - 8]
call dword [sym.imp.libav.dll_Ordinal_9]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 1
push dword [ebp - 8]
call esi
add esp, 0xc
push str.MaxRecursion
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x1c], 0
je 0x40531b
push dword [eax + 0x14]
push dword [eax + 0x10]
push 2
push dword [ebp - 8]
call edi
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4052cb
push 0
push 2
push dword [ebp - 8]
call esi
add esp, 0xc
push str.MaxFiles
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x1c], 0
je 0x405357
push dword [eax + 0x14]
push dword [eax + 0x10]
push 3
push dword [ebp - 8]
call edi
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4052cb
push 0
push 3
push dword [ebp - 8]
call esi
add esp, 0xc
push str.MaxEmbeddedPE
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x1c], 0
je 0x405393
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
push dword [ebp - 8]
call edi
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4052cb
push 0
push 0x12
push dword [ebp - 8]
call esi
add esp, 0xc
push str.MaxHTMLNormalize
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x1c], 0
je 0x4053cf
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x13
push dword [ebp - 8]
call edi
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4052cb
push 0
push 0x13
push dword [ebp - 8]
call esi
add esp, 0xc
push str.MaxHTMLNoTags
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x1c], 0
je 0x40540b
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
push dword [ebp - 8]
call edi
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4052cb
push 0
push 0x14
push dword [ebp - 8]
call esi
add esp, 0xc
push str.MaxScriptNormalize
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x1c], 0
je 0x405447
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x15
push dword [ebp - 8]
call edi
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4052cb
push 0
push 0x15
push dword [ebp - 8]
call esi
add esp, 0xc
push str.MaxZipTypeRcg
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x1c], 0
je 0x405483
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
push dword [ebp - 8]
call edi
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4052cb
push 0
push 0x16
push dword [ebp - 8]
call esi
add esp, 0xc
push str.MaxPartitions
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x1c], 0
je 0x4054bf
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1b
push dword [ebp - 8]
call edi
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4052cb
push 0
push 0x1b
push dword [ebp - 8]
call esi
add esp, 0xc
push str.MaxIconsPE
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x1c], 0
je 0x4054fb
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1c
push dword [ebp - 8]
call edi
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4052cb
push 0
push 0x1c
push dword [ebp - 8]
call esi
add esp, 0xc
push str.ScanArchive
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x40553f
push str.ArchiveBlockEncrypted
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
mov ecx, 9
mov eax, 1
cmovne eax, ecx
mov dword [ebp - 0xc], eax
push str.AlgorithmicDetection
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x40555b
or dword [ebp - 0xc], 0x200
push 0x4115a0
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405574
or dword [ebp - 0xc], 0x20
push 0x4115a8
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405590
or dword [ebp - 0xc], 0x2000
push str.ScanPE
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
jne 0x4055ba
push str.ScanELF
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4055d3
push str.DetectBrokenExecutables
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4055d3
or dword [ebp - 0xc], 0x40
push str.ScanMail
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405608
or dword [ebp - 0xc], 2
push str.ScanPartialMessages
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405608
or dword [ebp - 0xc], 0x40000
push str.ScanOLE2
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x40563d
or dword [ebp - 0xc], 4
push str.OLE2BlockMacros
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x40563d
or dword [ebp - 0xc], 0x100000
push str.ScanPDF
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405659
or dword [ebp - 0xc], 0x4000
push str.ScanSWF
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405675
or dword [ebp - 0xc], 0x400000
push str.ScanHTML
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x40568e
or dword [ebp - 0xc], 0x10
push str.PhishingScanURLs
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4056db
push str.PhishingAlwaysBlockCloak
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4056bf
or dword [ebp - 0xc], 0x1000
push str.PhishingAlwaysBlockSSLMismatch
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4056db
or dword [ebp - 0xc], 0x800
push str.PartitionIntersection
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4056f7
or dword [ebp - 0xc], 0x800000
push str.HeuristicScanPrecedence
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405713
or dword [ebp - 0xc], 0x80000
push str.StructuredDataDetection
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4057ea
or dword [ebp - 0xc], 0x8000
push str.StructuredMinCreditCardCount
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405763
push dword [eax + 0x14]
push dword [eax + 0x10]
push 4
push dword [ebp - 8]
call edi
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4052cb
push 0
push 4
push dword [ebp - 8]
call esi
add esp, 0xc
push str.StructuredMinSSNCount
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x40579f
push dword [eax + 0x14]
push dword [eax + 0x10]
push 5
push dword [ebp - 8]
call edi
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4052cb
push 0
push 5
push dword [ebp - 8]
call esi
mov edi, dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 0xc
push str.StructuredSSNFormatNormal
push ebx
call edi
mov esi, dword [ebp - 0xc]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4057ce
or esi, 0x10000
mov dword [ebp - 0xc], esi
push str.StructuredSSNFormatStripped
push ebx
call edi
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4057f0
or esi, 0x20000
mov dword [ebp - 0xc], esi
jmp 0x4057f0
mov edi, dword [sym.imp.libav.dll_Ordinal_44283]
push str.SelfCheck
push ebx
call edi
mov eax, dword [eax + 0x10]
xorps xmm0, xmm0
add esp, 8
mov dword [ebp - 0x44], eax
movq qword [0x4155c0], xmm0
movq qword [0x4155c8], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x411744
push ebx
mov dword [ebp - 0x2c], eax
call edi
mov esi, eax
add esp, 8
cmp dword [esi + 0x18], 0
je 0x4058ab
mov ebx, dword [sym.imp.MSVCR110.dll__umask]
push 2
call ebx
add esp, 4
movzx eax, ax
push 0x41174c
push dword [esi + 8]
mov dword [ebp - 0x30], eax
call dword [sym.imp.MSVCR110.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x40586c
push dword [esi + 8]
push 0x411750
call fcn.00408dd0
add esp, 8
jmp 0x40589c
push dword [ebp - 0x2c]
push 0x41176c
push edi
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 0xc
test eax, eax
jns 0x405892
push dword [esi + 8]
push str._Cant_save_PID_in_file__s_n
call fcn.00408dd0
add esp, 8
push edi
call dword [sym.imp.MSVCR110.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x30]
movzx eax, ax
push eax
call ebx
mov ebx, dword [ebp - 0x14]
add esp, 4
mov esi, dword [sym.imp.libav.dll_Ordinal_44283]
push str.MaxThreads
push ebx
call esi
mov edi, dword [ebp - 0x14]
mov ebx, dword [eax + 0x10]
push str.MaxQueue
push edi
call esi
mov eax, dword [eax + 0x10]
push str.CommandReadTimeout
push edi
mov dword [ebp - 0x28], eax
call esi
mov eax, dword [eax + 0x10]
push str.ReadTimeout
push edi
mov dword [ebp - 0x64], eax
call esi
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
push str.ScanOnAccess
push edi
mov dword [ebp - 0x68], eax
call esi
add esp, 0x28
cmp dword [eax + 0x18], 0
je 0x405910
push str.IdleTimeout
push edi
call esi
mov edi, dword [eax + 0x10]
add esp, 8
jmp 0x405913
mov edi, dword [ebp - 0x34]
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x20], esi
jbe 0x40594a
lea ecx, [ecx]
mov eax, dword [ebp - 0x3c]
push 0
mov edx, dword [eax + esi*4]
push 1
lea ecx, [ebp - 0x94]
call fcn.004030b0
add esp, 8
cmp eax, 0xffffffff
je 0x4052cb
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, dword [ebp - 0x20]
jb 0x405920
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [0x415558], eax
call esi
mov esi, dword [ebp - 0x28]
push ecx
push esi
mov edx, edi
mov ecx, ebx
mov dword [0x41555c], eax
call fcn.00407e10
add esp, 8
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x40598e
push 0xffffffffffffffff
call dword [sym.imp.MSVCR110.dll_exit]
lea eax, [ebp - 0x94]
push eax
push 0x404a10
lea eax, [ebp - 0xbc]
push 0
push eax
call dword [sym.imp.libav.dll_Ordinal_44303]
add esp, 0x10
test eax, eax
je 0x4059b8
push 0xffffffffffffffff
call dword [sym.imp.MSVCR110.dll_exit]
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.MSVCR110.dll__time64]
mov eax, dword [ebp - 0x44]
mov edi, dword [sym.imp.libav.dll_Ordinal_44298]
or ecx, 0xffffffff
add esp, 4
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0xa0], ecx
mov ebx, dword [sym.imp.libav.dll_Ordinal_44297]
push dword [ebp - 0x80]
call ebx
add esp, 4
lea ecx, [ebp - 0x80]
call fcn.00403290
cmp dword [ebp - 0x78], esi
ja 0x405a07
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.libav.dll_Ordinal_44307]
add esp, 4
push dword [0x41555c]
mov edx, dword [ebp - 0xa0]
push 1
lea ecx, [ebp - 0x80]
call fcn.00402dd0
add esp, 8
mov esi, eax
push dword [0x41555c]
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp esi, 0xffffffff
jne 0x405a5f
call dword [sym.imp.MSVCR110.dll__errno]
cmp dword [eax], 4
je 0x405a5f
push 0x411910
call ebx
add esp, 4
mov dword [0x415560], 1
push 0x411910
call edi
add esp, 4
mov ebx, dword [ebp - 0x78]
test ebx, ebx
je 0x405a75
mov eax, dword [ebp - 0x48]
inc eax
xor edx, edx
div ebx
mov eax, edx
mov dword [ebp - 0x1c], eax
jmp 0x405a78
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], 0
test ebx, ebx
je 0x405d1c
test esi, esi
js 0x405d16
lea ecx, [eax + eax*8]
mov eax, dword [ebp - 0x7c]
xor edx, edx
lea esi, [eax + ecx*8]
xor edi, edi
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], edi
test eax, eax
je 0x405cf7
cmp eax, 0xffffffff
jne 0x405adb
cmp dword [esi + 0x1c], 2
jne 0x405ad3
mov ecx, dword [esi + 0x40]
mov dword [esi + 0xc], eax
call fcn.00408260
mov ecx, dword [esi + 0x40]
lea edx, [edi + 1]
call fcn.00407d60
jmp 0x405cf4
mov edi, 1
mov dword [ebp - 0x18], edi
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
je 0x405b01
cmp eax, 0xfffffffe
jne 0x405b01
push str.COMMAND_READ_TIMED_OUT_n
push ecx
call fcn.00408b60
mov edx, dword [ebp - 0x24]
mov edi, 1
add esp, 8
mov dword [ebp - 0x18], edi
cmp dword [esi + 0x1c], 3
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
jne 0x405b14
mov dword [esi + 0x1c], 0
test edi, edi
jne 0x405c82
lea esp, [esp]
cmp dword [esi + 0xc], 0xffffffff
je 0x405c7e
cmp dword [esi], 0
je 0x405c7e
cmp edx, dword [esi + 8]
jae 0x405c7e
mov ebx, dword [esi + 0x1c]
cmp ebx, 3
je 0x405c7e
push 0x40
lea eax, [ebp - 0xfc]
push 0
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xf4], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xe4], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0xc4], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0xcc], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0xc8], eax
mov eax, dword [esi + 0x30]
add esp, 0xc
mov dword [ebp - 0xf8], eax
mov al, byte [esi + 0x10]
mov dword [ebp - 0xc0], ebx
mov ebx, dword [ebp - 0x34]
push ebx
mov byte [ebp - 0xd4], al
push ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0xe8], ecx
push eax
mov edx, esi
lea ecx, [ebp - 0xfc]
mov dword [esi + 0x18], 0xffffffff
call fcn.00404750
add esp, 0x10
cmp dword [ebp - 0xc0], 0
jne 0x405bf9
test eax, eax
je 0x405c7b
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x405c5a
mov eax, dword [esi + 0x1c]
cmp eax, 2
jne 0x405c2e
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x405c2e
mov eax, dword [esi]
mov byte [ecx + eax], 0
push dword [esi]
push str._Garbage:__s_n
call fcn.00408dd0
mov edi, 1
add esp, 8
mov dword [ebp - 0x18], edi
jmp 0x405c5f
cmp eax, 1
jne 0x405c73
mov edi, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
mov edx, esi
lea ecx, [ebp - 0xfc]
call fcn.00404530
add esp, 0x10
cmp eax, 0xffffffff
je 0x405c7b
mov edi, dword [ebp - 0x18]
jmp 0x405c6f
cmp edi, 0x15
je 0x405c6f
mov edx, 0x41554e
lea ecx, [ebp - 0xfc]
call fcn.00406c90
test edi, edi
jne 0x405c82
mov edx, dword [ebp - 0x24]
jmp 0x405b20
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x405cf4
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x405cb8
push eax
call dword [sym.imp.MSVCR110.dll__close]
mov eax, dword [esi + 0x30]
add esp, 4
test eax, eax
je 0x405cb1
push eax
call dword [sym.imp.libav.dll_Ordinal_44219]
add esp, 4
push dword [esi + 0x30]
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov dword [esi + 0x24], 0xffffffff
mov ecx, dword [esi + 0x40]
call fcn.00408260
mov ecx, dword [esi + 0x40]
mov edx, 1
call fcn.00407d60
test eax, eax
je 0x405ced
mov eax, dword [esi + 0xc]
test eax, eax
js 0x405ced
push 2
push eax
call dword [sym.imp.libav.dll_Ordinal_44328]
push dword [esi + 0xc]
call dword [sym.imp.libav.dll_Ordinal_44331]
add esp, 0xc
mov dword [esi + 0xc], 0xffffffff
mov ebx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x1c]
inc eax
xor edx, edx
div ebx
mov ecx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x40], ecx
mov eax, edx
mov dword [ebp - 0x1c], eax
cmp ecx, ebx
jb 0x405a87
mov edi, dword [sym.imp.libav.dll_Ordinal_44298]
push dword [ebp - 0x80]
call edi
mov ebx, dword [sym.imp.libav.dll_Ordinal_44297]
add esp, 4
push 0x411910
call ebx
add esp, 4
cmp dword [0x415560], 0
push 0x411910
jne 0x405ecd
call edi
add esp, 4
cmp dword [0x415568], 0
je 0x405d8e
call fcn.00408de0
cmp dword [0x41558c], 0
mov ebx, dword [ebp - 0x14]
mov dword [0x415568], 0
jne 0x405d91
push str.LogFile
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405d91
mov eax, dword [eax + 8]
mov dword [0x41558c], eax
jmp 0x405d91
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x405e1b
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.MSVCR110.dll__time64]
mov ecx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xa8]
add esp, 4
sub ecx, dword [ebp - 0x9c]
sbb eax, dword [ebp - 0x98]
js 0x405e1b
jg 0x405dcc
cmp ecx, esi
jb 0x405e1b
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
mov ecx, esi
call fcn.00404ea0
add esp, 0xc
test eax, eax
je 0x405e09
push 0x410614
call dword [sym.imp.libav.dll_Ordinal_44297]
add esp, 4
mov dword [0x415564], 1
push 0x410614
call edi
add esp, 4
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.MSVCR110.dll__time64]
add esp, 4
jmp 0x405e1e
mov esi, dword [ebp - 8]
push 0x410614
call dword [sym.imp.libav.dll_Ordinal_44297]
add esp, 4
cmp dword [0x415564], 0
push 0x410614
je 0x405ea9
call edi
mov edx, dword [ebp - 0x38]
add esp, 4
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
mov ecx, esi
call fcn.00404ea0
mov edi, dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
mov dword [ebp - 8], esi
test edi, edi
jne 0x405eb6
mov ebx, dword [sym.imp.libav.dll_Ordinal_44297]
push 0x410614
call ebx
mov esi, dword [sym.imp.MSVCR110.dll__time64]
add esp, 4
mov dword [0x415564], edi
push 0x415550
call esi
mov edi, dword [sym.imp.libav.dll_Ordinal_44298]
add esp, 4
push 0x410614
call edi
add esp, 4
lea eax, [ebp - 0x9c]
push eax
call esi
mov esi, dword [ebp - 0x28]
add esp, 4
jmp 0x4059e5
call edi
mov esi, dword [ebp - 0x28]
add esp, 4
jmp 0x4059df
mov eax, dword [ebp - 0x30]
test eax, eax
js 0x405f53
push eax
call dword [sym.imp.libav.dll_Ordinal_44331]
jmp 0x405f50
call edi
add esp, 4
push dword [ebp - 0x80]
call ebx
xor edi, edi
add esp, 4
cmp dword [ebp - 0x78], edi
jbe 0x405f3e
xor esi, esi
mov eax, dword [ebp - 0x7c]
cmp dword [esi + eax + 0xc], 0xffffffff
je 0x405f35
mov ecx, dword [esi + eax + 0x40]
call fcn.00408260
mov ecx, dword [ebp - 0x7c]
mov edx, 1
mov ecx, dword [esi + ecx + 0x40]
call fcn.00407d60
test eax, eax
je 0x405f35
mov eax, dword [ebp - 0x7c]
push 2
push dword [esi + eax + 0xc]
call dword [sym.imp.libav.dll_Ordinal_44328]
mov eax, dword [ebp - 0x7c]
push dword [esi + eax + 0xc]
call dword [sym.imp.libav.dll_Ordinal_44331]
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov dword [esi + eax + 0xc], 0xffffffff
inc edi
add esi, 0x48
cmp edi, dword [ebp - 0x78]
jb 0x405ee3
push dword [ebp - 0x80]
call dword [sym.imp.libav.dll_Ordinal_44298]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
add esp, 4
push 0x411910
call dword [sym.imp.libav.dll_Ordinal_44297]
add esp, 4
mov dword [0x415560], 1
push 0x411910
call dword [sym.imp.libav.dll_Ordinal_44298]
add esp, 4
push dword [0x415558]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x2c]
call fcn.004080a0
test esi, esi
je 0x405fa2
xor ecx, ecx
call fcn.00407d30
push esi
call dword [sym.imp.libav.dll_Ordinal_9]
add esp, 4
push 0
push dword [ebp - 0xb8]
push dword [ebp - 0xbc]
call dword [sym.imp.libav.dll_Ordinal_44309]
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.00402d40
push dword [ebp - 0x80]
call dword [sym.imp.libav.dll_Ordinal_44299]
add esp, 4
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.libav.dll_Ordinal_44308]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push dword [0x415558]
call esi
push dword [0x41555c]
call esi
cmp dword [0x4155cc], 0
je 0x406007
push 0x4155c0
call dword [sym.imp.libav.dll_Ordinal_25]
add esp, 4
xor esi, esi
cmp dword [ebp - 0x20], esi
jbe 0x40602d
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x3c]
push 2
push dword [ebx + esi*4]
call dword [sym.imp.libav.dll_Ordinal_44328]
inc esi
add esp, 8
cmp esi, edi
jb 0x406014
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
push str.PidFile
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.MSVCR110.dll__time64]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret