Function at 0x404510
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
sub esp, 0xf0
mov eax, dword [0x40f1f4]
xor eax, esp
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0xf4]
push ebx
mov ebx, dword [esp + 0x100]
push ebp
mov ebp, dword [esp + 0x10c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x108]
push esi
xor esi, esi
mov dword [esp + 0x40], eax
push edi
lea eax, [esp + 0x6c]
mov dword [esp + 0xb8], eax
lea eax, [esp + 0x68]
push str.MaxScanSize
push ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], esi
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe8], 0xffffffff
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], esi
mov dword [esp + 0xf4], 0xffffffff
mov dword [esp + 0xf8], 0xffffffff
mov dword [esp + 0xfc], 0xffffffff
mov dword [esp + 0x100], 0xffffffff
call fcn.00408060
add esp, 8
cmp dword [eax + 0x1c], esi
je 0x404649
push dword [eax + 0x14]
push dword [eax + 0x10]
push esi
push ebx
call sub.libav.dll_Ordinal_12
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
je 0x404649
push ebx
call sub.libav.dll_Ordinal_9
add esp, 4
mov eax, 1
jmp 0x405461
push 0
push 0
push ebx
call sub.libav.dll_Ordinal_10
add esp, 0xc
mov ecx, eax
or eax, edx
je 0x40466b
push edx
push ecx
push str.Limits:_Global_size_limit_set_to__llu_bytes._n
call fcn.00408660
add esp, 0xc
push str.MaxFileSize
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x1c], esi
je 0x404699
push dword [eax + 0x14]
push dword [eax + 0x10]
push 1
push ebx
call sub.libav.dll_Ordinal_12
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
jne 0x404636
push 0
push 1
push ebx
call sub.libav.dll_Ordinal_10
push str.MaxRecursion
push ebp
call fcn.00408060
add esp, 0x14
cmp dword [eax + 0x1c], esi
je 0x4046d5
push dword [eax + 0x14]
push dword [eax + 0x10]
push 2
push ebx
call sub.libav.dll_Ordinal_12
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
jne 0x404636
push 0
push 2
push ebx
call sub.libav.dll_Ordinal_10
push str.MaxFiles
push ebp
call fcn.00408060
add esp, 0x14
cmp dword [eax + 0x1c], esi
je 0x404711
push dword [eax + 0x14]
push dword [eax + 0x10]
push 3
push ebx
call sub.libav.dll_Ordinal_12
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
jne 0x404636
push 0
push 3
push ebx
call sub.libav.dll_Ordinal_10
push str.MaxEmbeddedPE
push ebp
call fcn.00408060
add esp, 0x14
cmp dword [eax + 0x1c], esi
je 0x40474d
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
push ebx
call sub.libav.dll_Ordinal_12
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
jne 0x404636
push 0
push 0x12
push ebx
call sub.libav.dll_Ordinal_10
push str.MaxHTMLNormalize
push ebp
call fcn.00408060
add esp, 0x14
cmp dword [eax + 0x1c], esi
je 0x404789
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x13
push ebx
call sub.libav.dll_Ordinal_12
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
jne 0x404636
push 0
push 0x13
push ebx
call sub.libav.dll_Ordinal_10
push str.MaxHTMLNoTags
push ebp
call fcn.00408060
add esp, 0x14
cmp dword [eax + 0x1c], esi
je 0x4047c5
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
push ebx
call sub.libav.dll_Ordinal_12
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
jne 0x404636
push 0
push 0x14
push ebx
call sub.libav.dll_Ordinal_10
push str.MaxScriptNormalize
push ebp
call fcn.00408060
add esp, 0x14
cmp dword [eax + 0x1c], esi
je 0x404801
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x15
push ebx
call sub.libav.dll_Ordinal_12
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
jne 0x404636
push 0
push 0x15
push ebx
call sub.libav.dll_Ordinal_10
push str.MaxZipTypeRcg
push ebp
call fcn.00408060
add esp, 0x14
cmp dword [eax + 0x1c], esi
je 0x40483d
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
push ebx
call sub.libav.dll_Ordinal_12
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
jne 0x404636
push 0
push 0x16
push ebx
call sub.libav.dll_Ordinal_10
push str.MaxPartitions
push ebp
call fcn.00408060
add esp, 0x14
cmp dword [eax + 0x1c], esi
je 0x404879
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1b
push ebx
call sub.libav.dll_Ordinal_12
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
jne 0x404636
push 0
push 0x1b
push ebx
call sub.libav.dll_Ordinal_10
push str.MaxIconsPE
push ebp
call fcn.00408060
add esp, 0x14
cmp dword [eax + 0x1c], esi
je 0x4048b5
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1c
push ebx
call sub.libav.dll_Ordinal_12
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
jne 0x404636
push 0
push 0x1c
push ebx
call sub.libav.dll_Ordinal_10
push str.ScanArchive
push ebp
call fcn.00408060
add esp, 0x14
cmp dword [eax + 0x18], esi
je 0x4048f5
push str.ArchiveBlockEncrypted
push ebp
mov esi, 1
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
mov ecx, 9
cmovne esi, ecx
mov dword [esp + 0x10], esi
push str.AlgorithmicDetection
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404913
or esi, 0x200
mov dword [esp + 0x10], esi
push str.ScanPE
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x40492e
or esi, 0x20
mov dword [esp + 0x10], esi
push str.ScanELF
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x40494c
or esi, 0x2000
mov dword [esp + 0x10], esi
push str.ScanPE
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
jne 0x404974
push str.ScanELF
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x40498f
push str.DetectBrokenExecutables
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x40498f
or esi, 0x40
mov dword [esp + 0x10], esi
push str.ScanMail
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4049c8
push str.ScanPartialMessages
or esi, 2
push ebp
mov dword [esp + 0x18], esi
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4049c8
or esi, 0x40000
mov dword [esp + 0x10], esi
push str.ScanOLE2
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404a01
push str.OLE2BlockMacros
or esi, 4
push ebp
mov dword [esp + 0x18], esi
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404a01
or esi, 0x100000
mov dword [esp + 0x10], esi
push str.ScanPDF
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404a1f
or esi, 0x4000
mov dword [esp + 0x10], esi
push str.ScanSWF
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404a3d
or esi, 0x400000
mov dword [esp + 0x10], esi
push str.ScanHTML
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404a58
or esi, 0x10
mov dword [esp + 0x10], esi
push str.PhishingScanURLs
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404aa8
push str.PhishingAlwaysBlockCloak
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404a8a
or esi, 0x1000
mov dword [esp + 0x10], esi
push str.PhishingAlwaysBlockSSLMismatch
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404aa8
or esi, 0x800
mov dword [esp + 0x10], esi
push str.PartitionIntersection
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404ac6
or esi, 0x800000
mov dword [esp + 0x10], esi
push str.HeuristicScanPrecedence
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404ae4
or esi, 0x80000
mov dword [esp + 0x10], esi
push str.StructuredDataDetection
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404bba
push str.StructuredMinCreditCardCount
or esi, 0x8000
push ebp
mov dword [esp + 0x18], esi
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404b39
push dword [eax + 0x14]
push dword [eax + 0x10]
push 4
push ebx
call sub.libav.dll_Ordinal_12
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
jne 0x404636
push 0
push 4
push ebx
call sub.libav.dll_Ordinal_10
push str.StructuredMinSSNCount
push ebp
call fcn.00408060
add esp, 0x14
cmp dword [eax + 0x18], 0
je 0x404b74
push dword [eax + 0x14]
push dword [eax + 0x10]
push 5
push ebx
call sub.libav.dll_Ordinal_12
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x404636
push 0
push 5
push ebx
call sub.libav.dll_Ordinal_10
push str.StructuredSSNFormatNormal
push ebp
call fcn.00408060
add esp, 0x14
cmp dword [eax + 0x18], 0
je 0x404b9c
or esi, 0x10000
mov dword [esp + 0x10], esi
push str.StructuredSSNFormatStripped
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x404bba
or esi, 0x20000
mov dword [esp + 0x10], esi
push str.SelfCheck
push ebp
call fcn.00408060
mov eax, dword [eax + 0x10]
push 0x10
push 0
push 0x40f35c
mov dword [esp + 0x40], eax
call sub.MSVCR110.dll_memset
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.PidFile
push ebp
mov ebx, eax
call fcn.00408060
mov esi, eax
add esp, 8
cmp dword [esi + 0x18], 0
je 0x404c48
mov edi, dword [sym.imp.MSVCR110.dll__umask]
push 2
call edi
push 0x40c64c
push dword [esi + 8]
movzx ebp, ax
call dword [sym.imp.MSVCR110.dll_fopen]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x404c3e
push ebx
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x34], 0xa7525
call dword [sym.imp.MSVCR110.dll_fprintf]
push esi
call dword [sym.imp.MSVCR110.dll_fclose]
add esp, 0x10
push ebp
call edi
mov ebp, dword [esp + 0x20]
add esp, 4
push str.MaxThreads
push ebp
call fcn.00408060
mov ebx, dword [eax + 0x10]
push str.MaxQueue
push ebp
call fcn.00408060
mov esi, dword [eax + 0x10]
push str.CommandReadTimeout
push ebp
mov dword [esp + 0x4c], esi
call fcn.00408060
mov eax, dword [eax + 0x10]
push str.ReadTimeout
push ebp
mov dword [esp + 0x108], eax
call fcn.00408060
mov eax, dword [eax + 0x10]
push str.ScanOnAccess
push ebp
mov dword [esp + 0x84], eax
mov dword [esp + 0x10c], esi
call fcn.00408060
add esp, 0x28
cmp dword [eax + 0x18], 0
je 0x404cc0
push str.IdleTimeout
push ebp
call fcn.00408060
mov edi, dword [eax + 0x10]
add esp, 8
jmp 0x404cc4
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x108]
xor esi, esi
mov dword [esp + 0x20], esi
test ebp, ebp
je 0x404cfe
mov eax, dword [esp + 0x3c]
push 0
push 1
push dword [eax + esi*4]
lea eax, [esp + 0xc4]
push eax
call fcn.004025a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x404d46
inc esi
mov dword [esp + 0x20], esi
cmp esi, ebp
jb 0x404cd5
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 [0x40f350], eax
call esi
mov esi, dword [esp + 0x34]
push 0x4056c0
push esi
push edi
push ebx
mov dword [0x40f34c], eax
call fcn.004070e0
add esp, 0x10
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x404d5c
push 0xffffffffffffffff
call dword [sym.imp.MSVCR110.dll_exit]
push dword [esp + 0x24]
call sub.libav.dll_Ordinal_9
add esp, 4
mov eax, 1
jmp 0x405461
lea eax, [esp + 0xb8]
push eax
push 0x403be0
lea eax, [esp + 0x78]
push 0
push eax
call sub.libav.dll_Ordinal_44303
add esp, 0x10
test eax, eax
je 0x404d84
push 0xffffffffffffffff
call dword [sym.imp.MSVCR110.dll_exit]
mov ebx, dword [sym.imp.MSVCR110.dll__time64]
lea eax, [esp + 0x54]
push eax
call ebx
mov edi, dword [esp + 0x30]
or ebp, 0xffffffff
add esp, 4
test edi, edi
cmovne ebp, edi
mov dword [esp + 0x38], ebp
push dword [esp + 0xcc]
call sub.libav.dll_Ordinal_44297
lea eax, [esp + 0xd0]
push eax
call fcn.00402700
add esp, 8
cmp dword [esp + 0xd4], esi
ja 0x404dd9
lea eax, [esp + 0xe0]
push eax
call sub.libav.dll_Ordinal_44307
add esp, 4
push dword [0x40f34c]
lea eax, [esp + 0xd0]
push 1
push ebp
push eax
call fcn.00402860
add esp, 0x10
mov esi, eax
push dword [0x40f34c]
mov dword [esp + 0x54], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp esi, 0xffffffff
jne 0x404e35
call dword [sym.imp.MSVCR110.dll__errno]
cmp dword [eax], 4
je 0x404e35
push 0x40f008
call sub.libav.dll_Ordinal_44297
push 0x40f008
mov dword [0x40f354], 1
call sub.libav.dll_Ordinal_44298
add esp, 8
mov ebp, dword [esp + 0xd4]
test ebp, ebp
je 0x404e51
mov eax, dword [esp + 0x40]
inc eax
xor edx, edx
div ebp
mov eax, edx
mov dword [esp + 0x20], eax
jmp 0x404e55
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
test ebp, ebp
je 0x405107
test esi, esi
js 0x4050fd
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xd0]
xor ebx, ebx
lea esi, [eax + ecx*8]
xor edi, edi
mov eax, dword [esi + 0x14]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], edi
test eax, eax
je 0x4050d9
cmp eax, 0xffffffff
jne 0x404ec2
cmp dword [esi + 0x1c], 2
jne 0x404eb9
push dword [esi + 0x40]
mov dword [esi + 0xc], eax
call fcn.00406fc0
push 1
push dword [esi + 0x40]
call fcn.00406e70
add esp, 0xc
jmp 0x4050d2
mov edi, 1
mov dword [esp + 0x18], edi
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
je 0x404ee6
cmp eax, 0xfffffffe
jne 0x404ee6
push str.COMMAND_READ_TIMED_OUT_n
push ecx
call fcn.00408810
mov edi, 1
add esp, 8
mov dword [esp + 0x18], edi
cmp dword [esi + 0x1c], 3
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], eax
jne 0x404ef7
mov dword [esi + 0x1c], ebx
test edi, edi
jne 0x405066
mov ebp, dword [esp + 0x5c]
cmp dword [esi + 0xc], 0xffffffff
je 0x405062
cmp dword [esi], 0
je 0x405062
cmp ebx, dword [esi + 8]
jae 0x405062
cmp dword [esi + 0x1c], 3
je 0x405062
push 0x40
lea eax, [esp + 0x7c]
push 0
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [esi + 0x18]
mov dword [esp + 0x8c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0xbc], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0xb4], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0xb8], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0xc0], eax
mov al, byte [esi + 0x10]
push ebp
mov byte [esp + 0xb0], al
push ebx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x94]
push esi
push eax
mov dword [esi + 0x18], 0xffffffff
mov dword [esp + 0xb0], ebx
call fcn.00404250
add esp, 0x24
cmp dword [esp + 0xb4], 0
jne 0x404fe5
test eax, eax
je 0x40505e
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x40503a
mov eax, dword [esi + 0x1c]
cmp eax, 2
jne 0x40500d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40500d
mov eax, dword [esi]
mov edi, 1
mov byte [ecx + eax], 0
mov dword [esp + 0x18], edi
jmp 0x40503f
cmp eax, 1
jne 0x405055
push ebp
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
lea eax, [esp + 0x88]
push esi
push eax
call fcn.00404040
add esp, 0x18
cmp eax, 0xffffffff
je 0x40505e
mov edi, dword [esp + 0x18]
jmp 0x405051
cmp edi, 0x15
je 0x405051
lea eax, [esp + 0x78]
push 0x40c308
push eax
call fcn.00405e20
add esp, 8
test edi, edi
jne 0x405066
mov ebx, dword [esp + 0x30]
jmp 0x404f03
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4050d2
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x405098
push eax
call dword [sym.imp.MSVCR110.dll__close]
mov eax, dword [esi + 0x30]
add esp, 4
test eax, eax
je 0x405091
push eax
call sub.libav.dll_Ordinal_44219
push dword [esi + 0x30]
call dword [sym.imp.MSVCR110.dll_free]
add esp, 8
mov dword [esi + 0x24], 0xffffffff
push dword [esi + 0x40]
call fcn.00406fc0
push 1
push dword [esi + 0x40]
call fcn.00406e70
add esp, 0xc
test eax, eax
je 0x4050cb
mov eax, dword [esi + 0xc]
test eax, eax
js 0x4050cb
push 2
push eax
call sub.libav.dll_Ordinal_44328
push dword [esi + 0xc]
call sub.libav.dll_Ordinal_44331
add esp, 0xc
mov dword [esi + 0xc], 0xffffffff
mov ebp, dword [esp + 0xd4]
mov eax, dword [esp + 0x20]
inc eax
xor edx, edx
div ebp
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x50]
inc ecx
mov dword [esp + 0x48], ecx
mov eax, edx
mov dword [esp + 0x20], eax
cmp ecx, ebp
jb 0x404e65
mov ebx, dword [sym.imp.MSVCR110.dll__time64]
mov edi, dword [esp + 0x2c]
push dword [esp + 0xcc]
call sub.libav.dll_Ordinal_44298
push 0x40f008
call sub.libav.dll_Ordinal_44297
add esp, 8
cmp dword [0x40f354], 0
push 0x40f008
jne 0x4052b8
call sub.libav.dll_Ordinal_44298
add esp, 4
cmp dword [0x40f348], 0
je 0x40517d
call fcn.004087d0
cmp dword [0x40f7b0], 0
mov ebp, dword [esp + 0x1c]
mov dword [0x40f348], 0
jne 0x405181
push str.LogFile
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405181
mov eax, dword [eax + 8]
mov dword [0x40f7b0], eax
jmp 0x405181
mov ebp, dword [esp + 0x1c]
test edi, edi
je 0x405208
lea eax, [esp + 0x60]
push eax
call ebx
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
add esp, 4
sub ecx, dword [esp + 0x54]
sbb eax, dword [esp + 0x58]
js 0x405208
jg 0x4051ab
cmp ecx, edi
jb 0x405208
cmp dword [0x40f368], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x14], 0
je 0x4051d6
push 0x40f35c
call sub.libav.dll_Ordinal_24
add esp, 4
cmp eax, 1
jne 0x4051fe
cmp dword [esp + 0x24], 0
je 0x4051fe
push 0x40f00c
call sub.libav.dll_Ordinal_44297
push 0x40f00c
mov dword [0x40f358], 1
call sub.libav.dll_Ordinal_44298
add esp, 8
lea eax, [esp + 0x54]
push eax
call ebx
add esp, 4
push 0x40f00c
call sub.libav.dll_Ordinal_44297
add esp, 4
cmp dword [0x40f358], 0
push 0x40f00c
je 0x405290
call sub.libav.dll_Ordinal_44298
lea eax, [esp + 0x18]
push eax
push 0
push ebp
push dword [esp + 0x54]
push dword [esp + 0x38]
call fcn.00405480
mov edi, dword [esp + 0x2c]
add esp, 0x18
mov ebx, eax
mov dword [esp + 0x24], ebx
test edi, edi
jne 0x4052a5
push 0x40f00c
call sub.libav.dll_Ordinal_44297
mov ebx, dword [sym.imp.MSVCR110.dll__time64]
push 0x40f340
mov dword [0x40f358], edi
call ebx
push 0x40f00c
call sub.libav.dll_Ordinal_44298
lea eax, [esp + 0x60]
push eax
call ebx
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
add esp, 0x10
jmp 0x404da4
call sub.libav.dll_Ordinal_44298
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
add esp, 4
jmp 0x404da4
test esi, esi
js 0x40536c
push esi
call sub.libav.dll_Ordinal_44331
jmp 0x405369
call sub.libav.dll_Ordinal_44298
push dword [esp + 0xd0]
call sub.libav.dll_Ordinal_44297
xor edi, edi
add esp, 8
cmp dword [esp + 0xd4], edi
jbe 0x405351
xor esi, esi
lea esp, [esp]
mov eax, dword [esp + 0xd0]
cmp dword [esi + eax + 0xc], 0xffffffff
je 0x405344
push dword [esi + eax + 0x40]
call fcn.00406fc0
mov eax, dword [esp + 0xd4]
push 1
push dword [esi + eax + 0x40]
call fcn.00406e70
add esp, 0xc
test eax, eax
je 0x405344
mov eax, dword [esp + 0xd0]
push 2
push dword [esi + eax + 0xc]
call sub.libav.dll_Ordinal_44328
mov eax, dword [esp + 0xd8]
push dword [esi + eax + 0xc]
call sub.libav.dll_Ordinal_44331
mov eax, dword [esp + 0xdc]
add esp, 0xc
mov dword [esi + eax + 0xc], 0xffffffff
inc edi
add esi, 0x48
cmp edi, dword [esp + 0xd4]
jb 0x4052e0
push dword [esp + 0xcc]
call sub.libav.dll_Ordinal_44298
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
add esp, 4
push 0x40f008
call sub.libav.dll_Ordinal_44297
push 0x40f008
mov dword [0x40f354], 1
call sub.libav.dll_Ordinal_44298
push dword [0x40f350]
call fcn.00407ce0
push dword [esp + 0x58]
call fcn.00406be0
add esp, 0x10
test ebx, ebx
je 0x4053b5
push 0
call fcn.004077a0
push ebx
call sub.libav.dll_Ordinal_9
add esp, 8
push 0
push dword [esp + 0x78]
push dword [esp + 0x78]
call sub.libav.dll_Ordinal_44309
lea eax, [esp + 0xd8]
push eax
call fcn.004027e0
push dword [esp + 0xdc]
call sub.libav.dll_Ordinal_44299
lea eax, [esp + 0xf4]
push eax
call sub.libav.dll_Ordinal_44308
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
push dword [0x40f350]
call esi
push dword [0x40f34c]
call esi
cmp dword [0x40f368], 0
je 0x405419
push 0x40f35c
call sub.libav.dll_Ordinal_25
add esp, 4
mov ebx, dword [esp + 0x108]
xor esi, esi
test ebx, ebx
je 0x405446
mov edi, dword [esp + 0x3c]
lea ebx, [ebx]
push 2
push dword [edi + esi*4]
call sub.libav.dll_Ordinal_44328
inc esi
add esp, 8
cmp esi, ebx
jb 0x405430
mov edi, dword [esp + 0x14]
push str.PidFile
push ebp
call fcn.00408060
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.MSVCR110.dll__time64]
add esp, 0xc
mov eax, edi
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408f44
add esp, 0xf0
ret