Function at 0x405760
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x411574]
push ebx
mov ebx, dword [0x411f68]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x411688]
push esi
mov esi, dword [0x411578]
mov dword [ebp - 0x44], eax
push edi
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xa0]
push str.MaxScanSize
push ebx
mov dword [ebp - 0x34], 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 - 0xb0], 0xffffffff
mov dword [ebp - 0xa0], 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 0x40588a
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 0x40588a
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 0x4058af
push edx
push eax
push str.Limits:_Global_size_limit_set_to__llu_bytes._n
call fcn.00409970
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 0x4058f3
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 0x4058f3
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 0x40592b
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 0x4058db
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 0x405967
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 0x4058db
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 0x4059a3
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 0x4058db
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 0x4059df
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 0x4058db
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 0x405a1b
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 0x4058db
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 0x405a57
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 0x4058db
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 0x405a93
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 0x4058db
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 0x405acf
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 0x4058db
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 0x405b0b
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 0x4058db
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 0x405b4f
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 0x405b6b
or dword [ebp - 0xc], 0x200
push str.ScanPE
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405b84
or dword [ebp - 0xc], 0x20
push str.ScanELF
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405ba0
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 0x405bca
push str.ScanELF
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405be3
push str.DetectBrokenExecutables
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405be3
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 0x405c18
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 0x405c18
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 0x405c4d
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 0x405c4d
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 0x405c69
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 0x405c85
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 0x405c9e
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 0x405ceb
push str.PhishingAlwaysBlockCloak
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405ccf
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 0x405ceb
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 0x405d07
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 0x405d23
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 0x405dfa
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 0x405d73
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 0x4058db
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 0x405daf
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 0x4058db
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 0x405dde
or esi, 0x10000
mov dword [ebp - 0xc], esi
push str.StructuredSSNFormatStripped
push ebx
call edi
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405e00
or esi, 0x20000
mov dword [ebp - 0xc], esi
jmp 0x405e00
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 - 0x38], eax
movq qword [0x4116fc], xmm0
movq qword [0x411704], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.PidFile
push ebx
mov dword [ebp - 0x2c], eax
call edi
mov esi, eax
add esp, 8
cmp dword [esi + 0x18], 0
je 0x405ebb
mov ebx, dword [sym.imp.MSVCR110.dll__umask]
push 2
call ebx
add esp, 4
movzx eax, ax
push 0x40f6a4
push dword [esi + 8]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.MSVCR110.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x405e7c
push dword [esi + 8]
push str._Cant_save_PID_in_file__s_n
call fcn.00409d30
add esp, 8
jmp 0x405eac
push dword [ebp - 0x2c]
push 0x40f6c4
push edi
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 0xc
test eax, eax
jns 0x405ea2
push dword [esi + 8]
push str._Cant_save_PID_in_file__s_n
call fcn.00409d30
add esp, 8
push edi
call dword [sym.imp.MSVCR110.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x1c]
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 - 0x40], 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 - 0xb4], eax
mov eax, dword [ebp - 0x40]
push str.ScanOnAccess
push edi
mov dword [ebp - 0x68], eax
call esi
add esp, 0x28
cmp dword [eax + 0x18], 0
je 0x405f23
push str.IdleTimeout
push edi
call esi
mov edi, dword [eax + 0x10]
add esp, 8
jmp 0x405f26
mov edi, dword [ebp - 0x3c]
xor esi, esi
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x34], esi
jbe 0x405f5a
mov eax, dword [ebp - 0x44]
push 0
mov edx, dword [eax + esi*4]
push 1
lea ecx, [ebp - 0x94]
call fcn.004031f0
add esp, 8
cmp eax, 0xffffffff
je 0x4058db
inc esi
mov dword [ebp - 0x20], esi
cmp esi, dword [ebp - 0x34]
jb 0x405f30
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 [0x411698], eax
call esi
push ecx
push dword [ebp - 0x40]
mov edx, edi
mov ecx, ebx
mov dword [0x41169c], eax
call fcn.00408990
add esp, 8
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x405f9d
push 0xffffffffffffffff
call dword [sym.imp.MSVCR110.dll_exit]
lea eax, [ebp - 0x94]
push eax
push 0x404fe0
lea eax, [ebp - 0xbc]
push 0
push eax
call dword [sym.imp.libav.dll_Ordinal_44303]
add esp, 0x10
test eax, eax
je 0x405fc7
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 - 0x38]
mov edi, dword [sym.imp.libav.dll_Ordinal_44297]
mov esi, dword [sym.imp.libav.dll_Ordinal_44298]
or ebx, 0xffffffff
add esp, 4
test eax, eax
cmovne ebx, eax
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x80]
call edi
add esp, 4
lea ecx, [ebp - 0x80]
call fcn.00403480
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x78], eax
ja 0x406016
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.libav.dll_Ordinal_44307]
add esp, 4
push dword [0x41169c]
mov edx, ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.00402eb0
add esp, 8
mov dword [ebp - 0x24], eax
push dword [0x41169c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xffffffff
jne 0x40606e
call dword [sym.imp.MSVCR110.dll__errno]
cmp dword [eax], 4
je 0x40606b
push 0x41102c
call edi
add esp, 4
mov dword [0x4116a0], 1
push 0x41102c
call esi
add esp, 4
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x78]
test ebx, ebx
je 0x406084
mov eax, dword [ebp - 0x48]
inc eax
xor edx, edx
div ebx
mov eax, edx
mov dword [ebp - 0x20], eax
jmp 0x406087
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], 0
test ebx, ebx
je 0x4064da
test ecx, ecx
js 0x4064ce
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 - 0x28], edx
mov dword [ebp - 0x18], edi
test eax, eax
je 0x4064af
cmp eax, 0xffffffff
jne 0x4061a9
cmp dword [esi + 0x1c], 2
jne 0x4061a1
mov edi, dword [esi + 0x40]
mov dword [esi + 0xc], eax
test edi, edi
je 0x4060f8
push edi
call dword [sym.imp.libav.dll_Ordinal_44297]
mov ebx, dword [sym.imp.libav.dll_Ordinal_44298]
add esp, 4
mov dword [edi + 0x18], 1
push edi
call ebx
add esp, 4
jmp 0x4060fe
mov ebx, dword [sym.imp.libav.dll_Ordinal_44298]
mov esi, dword [esi + 0x40]
xor edi, edi
test esi, esi
je 0x4064ac
push esi
call dword [sym.imp.libav.dll_Ordinal_44297]
add esp, 4
push dword [esi + 8]
push esi
push str._THRMGR:_group_finished:__p___d_n
call fcn.00409d30
mov eax, dword [esi + 8]
inc dword [esi + 0x14]
inc dword [esi + 0x10]
add esp, 0xc
test eax, eax
je 0x406162
dec eax
mov dword [esi + 8], eax
jne 0x406140
mov edi, 1
jmp 0x40614f
push eax
push esi
push str._THRMGR:_active_jobs_for__p:__d_n
call fcn.00409d30
add esp, 0xc
cmp dword [esi + 8], 1
jne 0x406162
lea eax, [esi + 4]
push eax
call dword [sym.imp.libav.dll_Ordinal_44307]
add esp, 4
push esi
call ebx
add esp, 4
test edi, edi
je 0x4064ac
push esi
push str._THRMGR:_group_finished:_freeing__p_n
call fcn.00409d30
push esi
call dword [sym.imp.libav.dll_Ordinal_44299]
add esp, 0xc
lea eax, [esi + 4]
push eax
call dword [sym.imp.libav.dll_Ordinal_44308]
add esp, 4
push esi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
jmp 0x4064ac
mov edi, 1
mov dword [ebp - 0x18], edi
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
je 0x4061cf
cmp eax, 0xfffffffe
jne 0x4061cf
push str.COMMAND_READ_TIMED_OUT_n
push ecx
call fcn.00409ac0
mov edx, dword [ebp - 0x28]
mov edi, 1
add esp, 8
mov dword [ebp - 0x18], edi
cmp dword [esi + 0x1c], 3
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
jne 0x4061e2
mov dword [esi + 0x1c], 0
test edi, edi
jne 0x406393
lea ebx, [ebx]
cmp dword [esi + 0xc], 0xffffffff
je 0x40638b
cmp dword [esi], 0
je 0x40638b
cmp edx, dword [esi + 8]
jae 0x40638b
mov ebx, dword [esi + 0x1c]
cmp ebx, 3
je 0x40638b
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 - 0xb4]
push ebx
mov byte [ebp - 0xd4], al
push ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xe8], ecx
push eax
mov edx, esi
lea ecx, [ebp - 0xfc]
mov dword [esi + 0x18], 0xffffffff
call fcn.00404bc0
add esp, 0x10
cmp dword [ebp - 0xc0], 0
jne 0x4062cc
test eax, eax
je 0x406388
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x40632d
mov eax, dword [esi + 0x1c]
cmp eax, 2
jne 0x406301
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x406301
mov eax, dword [esi]
mov byte [ecx + eax], 0
push dword [esi]
push str._Garbage:__s_n
call fcn.00409d30
mov edi, 1
add esp, 8
mov dword [ebp - 0x18], edi
jmp 0x406332
cmp eax, 1
jne 0x406380
mov edi, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
mov edx, esi
lea ecx, [ebp - 0xfc]
call fcn.004048a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x406388
mov edi, dword [ebp - 0x18]
jmp 0x406377
cmp edi, 0x15
je 0x406377
movsx eax, byte [ebp - 0xd4]
mov ecx, dword [ebp - 0xcc]
push eax
push str.ERROR
push 0x40e5b9
test ecx, ecx
je 0x406364
push ecx
push str._u:__s__s_c
push dword [ebp - 0xf0]
call fcn.00409ac0
add esp, 0x18
jmp 0x406377
push str._s__s_c
push dword [ebp - 0xf0]
call fcn.00409ac0
add esp, 0x14
test edi, edi
jne 0x406393
jmp 0x406380
mov edx, dword [ebp - 0x28]
jmp 0x4061f0
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4064ac
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x4063c9
push eax
call dword [sym.imp.MSVCR110.dll__close]
mov eax, dword [esi + 0x30]
add esp, 4
test eax, eax
je 0x4063c2
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 edi, dword [esi + 0x40]
test edi, edi
je 0x4063eb
push edi
call dword [sym.imp.libav.dll_Ordinal_44297]
add esp, 4
mov dword [edi + 0x18], 1
push edi
call dword [sym.imp.libav.dll_Ordinal_44298]
add esp, 4
mov edi, dword [esi + 0x40]
xor ebx, ebx
test edi, edi
je 0x406489
push edi
call dword [sym.imp.libav.dll_Ordinal_44297]
add esp, 4
push dword [edi + 8]
push edi
push str._THRMGR:_group_finished:__p___d_n
call fcn.00409d30
mov eax, dword [edi + 8]
inc dword [edi + 0x14]
inc dword [edi + 0x10]
add esp, 0xc
test eax, eax
je 0x40644f
dec eax
mov dword [edi + 8], eax
jne 0x40642d
mov ebx, 1
jmp 0x40643c
push eax
push edi
push str._THRMGR:_active_jobs_for__p:__d_n
call fcn.00409d30
add esp, 0xc
cmp dword [edi + 8], 1
jne 0x40644f
lea eax, [edi + 4]
push eax
call dword [sym.imp.libav.dll_Ordinal_44307]
add esp, 4
push edi
call dword [sym.imp.libav.dll_Ordinal_44298]
add esp, 4
test ebx, ebx
je 0x4064a5
push edi
push str._THRMGR:_group_finished:_freeing__p_n
call fcn.00409d30
push edi
call dword [sym.imp.libav.dll_Ordinal_44299]
add esp, 0xc
lea eax, [edi + 4]
push eax
call dword [sym.imp.libav.dll_Ordinal_44308]
add esp, 4
push edi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov eax, dword [esi + 0xc]
test eax, eax
js 0x4064a5
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 - 0x20]
inc eax
xor edx, edx
div ebx
mov ecx, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x30], ecx
cmp ecx, ebx
mov ecx, dword [ebp - 0x24]
mov eax, edx
mov dword [ebp - 0x20], eax
jb 0x406096
mov esi, dword [sym.imp.libav.dll_Ordinal_44298]
mov edi, dword [sym.imp.libav.dll_Ordinal_44297]
push dword [ebp - 0x80]
call esi
add esp, 4
push 0x41102c
call edi
add esp, 4
cmp dword [0x4116a0], 0
push 0x41102c
jne 0x4066b7
call esi
add esp, 4
cmp dword [0x4116a8], 0
je 0x406572
push 0x411208
call edi
mov eax, dword [0x4116f8]
add esp, 4
test eax, eax
je 0x406533
push eax
call dword [sym.imp.MSVCR110.dll_fclose]
add esp, 4
mov dword [0x4116f8], 0
push 0x411208
call esi
mov ebx, dword [ebp - 0x14]
add esp, 4
cmp dword [0x4116c8], 0
mov dword [0x4116a8], 0
jne 0x406575
push str.LogFile
push ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x406575
mov eax, dword [eax + 8]
mov dword [0x4116c8], eax
jmp 0x406575
mov ebx, dword [ebp - 0x14]
cmp dword [ebp - 0x38], 0
je 0x40660e
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 0x40660e
jg 0x4065b0
cmp ecx, dword [ebp - 0x38]
jb 0x40660e
cmp dword [0x411708], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0
je 0x4065da
push 0x4116fc
call dword [sym.imp.libav.dll_Ordinal_24]
add esp, 4
cmp eax, 1
jne 0x4065fe
cmp dword [ebp - 8], 0
je 0x4065fe
push 0x411024
call edi
add esp, 4
mov dword [0x4116a4], 1
push 0x411024
call esi
add esp, 4
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.MSVCR110.dll__time64]
add esp, 4
push 0x411024
call edi
add esp, 4
cmp dword [0x4116a4], 0
push 0x411024
je 0x406693
call esi
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 8]
add esp, 4
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
call fcn.00405470
add esp, 0xc
cmp dword [ebp - 0x10], 0
mov edi, eax
mov dword [ebp - 8], edi
jne 0x4066a0
mov edi, dword [sym.imp.libav.dll_Ordinal_44297]
push 0x411024
call edi
mov ebx, dword [sym.imp.MSVCR110.dll__time64]
add esp, 4
mov dword [0x4116a4], 0
push 0x411690
call ebx
add esp, 4
push 0x411024
call esi
add esp, 4
lea eax, [ebp - 0x9c]
push eax
call ebx
mov ebx, dword [ebp - 0x1c]
add esp, 4
jmp 0x405ff1
call esi
mov ebx, dword [ebp - 0x1c]
add esp, 4
jmp 0x405ff1
mov eax, dword [ebp - 0x24]
test eax, eax
js 0x406804
push eax
call dword [sym.imp.libav.dll_Ordinal_44331]
jmp 0x406801
call esi
add esp, 4
push dword [ebp - 0x80]
call edi
add esp, 4
cmp dword [ebp - 0x78], 0
mov dword [ebp - 0x1c], 0
jbe 0x4067f6
xor edi, edi
jmp 0x4066e0
mov eax, dword [ebp - 0x7c]
cmp dword [edi + eax + 0xc], 0xffffffff
je 0x4067dd
mov esi, dword [edi + eax + 0x40]
test esi, esi
je 0x406711
push esi
call dword [sym.imp.libav.dll_Ordinal_44297]
add esp, 4
mov dword [esi + 0x18], 1
push esi
call dword [sym.imp.libav.dll_Ordinal_44298]
add esp, 4
mov eax, dword [ebp - 0x7c]
xor ebx, ebx
mov esi, dword [edi + eax + 0x40]
test esi, esi
je 0x4067b3
push esi
call dword [sym.imp.libav.dll_Ordinal_44297]
add esp, 4
push dword [esi + 8]
push esi
push str._THRMGR:_group_finished:__p___d_n
call fcn.00409d30
mov eax, dword [esi + 8]
inc dword [esi + 0x14]
inc dword [esi + 0x10]
add esp, 0xc
test eax, eax
je 0x406779
dec eax
mov dword [esi + 8], eax
jne 0x406757
mov ebx, 1
jmp 0x406766
push eax
push esi
push str._THRMGR:_active_jobs_for__p:__d_n
call fcn.00409d30
add esp, 0xc
cmp dword [esi + 8], 1
jne 0x406779
lea eax, [esi + 4]
push eax
call dword [sym.imp.libav.dll_Ordinal_44307]
add esp, 4
push esi
call dword [sym.imp.libav.dll_Ordinal_44298]
add esp, 4
test ebx, ebx
je 0x4067dd
push esi
push str._THRMGR:_group_finished:_freeing__p_n
call fcn.00409d30
push esi
call dword [sym.imp.libav.dll_Ordinal_44299]
add esp, 0xc
lea eax, [esi + 4]
push eax
call dword [sym.imp.libav.dll_Ordinal_44308]
add esp, 4
push esi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov eax, dword [ebp - 0x7c]
push 2
push dword [edi + eax + 0xc]
call dword [sym.imp.libav.dll_Ordinal_44328]
mov eax, dword [ebp - 0x7c]
push dword [edi + eax + 0xc]
call dword [sym.imp.libav.dll_Ordinal_44331]
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov dword [edi + eax + 0xc], 0xffffffff
mov eax, dword [ebp - 0x1c]
inc eax
add edi, 0x48
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x78]
jb 0x4066e0
mov esi, dword [sym.imp.libav.dll_Ordinal_44298]
push dword [ebp - 0x80]
call esi
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
add esp, 4
push 0x41102c
call dword [sym.imp.libav.dll_Ordinal_44297]
add esp, 4
mov dword [0x4116a0], 1
push 0x41102c
call esi
add esp, 4
push dword [0x411698]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x2c]
call fcn.00408c70
test edi, edi
je 0x406872
push 0x408130
push 0x4116ac
call dword [sym.imp.libav.dll_Ordinal_44300]
push dword [0x41170c]
call dword [sym.imp.libav.dll_Ordinal_44301]
add esp, 0xc
test eax, eax
je 0x406868
mov dword [eax + 0x18], 0
push edi
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.00402e20
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 [0x411698]
call esi
push dword [0x41169c]
call esi
cmp dword [0x411708], 0
je 0x4068d7
push 0x4116fc
call dword [sym.imp.libav.dll_Ordinal_25]
add esp, 4
mov edi, dword [ebp - 0x34]
xor esi, esi
test edi, edi
je 0x4068f9
mov ebx, dword [ebp - 0x44]
push 2
push dword [ebx + esi*4]
call dword [sym.imp.libav.dll_Ordinal_44328]
inc esi
add esp, 8
cmp esi, edi
jb 0x4068e3
mov ebx, dword [ebp - 0x14]
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]
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret