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

Disassembly:
sub esp, 0xf8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xf4], eax
mov eax, dword [0x40d570]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [0x40d574]
mov dword [esp + 0x48], eax
mov eax, dword [0x40d684]
push esi
mov esi, dword [0x40d948]
or ecx, 0xffffffff
mov dword [esp + 0x48], eax
push edi
mov edi, dword [sym.imp.libav.dll_Ordinal_44283]
lea eax, [esp + 0x6c]
mov dword [esp + 0xb8], eax
lea eax, [esp + 0x68]
push str.MaxScanSize
push esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], ecx
call edi
pop ecx
pop ecx
cmp dword [eax + 0x1c], ebx
je 0x403ec2
push dword [eax + 0x14]
push dword [eax + 0x10]
push ebx
push ebp
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
je 0x403ec2
push ebp
call dword [sym.imp.libav.dll_Ordinal_9]
xor eax, eax
pop ecx
inc eax
jmp 0x404c12
push ebx
push ebx
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
mov ecx, eax
add esp, 0xc
or ecx, edx
je 0x403ee3
push edx
push eax
push str.Limits:_Global_size_limit_set_to__llu_bytes._n
call fcn.00407205
add esp, 0xc
push str.MaxFileSize
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x1c], ebx
je 0x403f0c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 1
push ebp
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403eb2
push ebx
push 1
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
add esp, 0xc
push str.MaxRecursion
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x1c], ebx
je 0x403f46
push dword [eax + 0x14]
push dword [eax + 0x10]
push 2
push ebp
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403eb2
push ebx
push 2
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
add esp, 0xc
push str.MaxFiles
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x1c], ebx
je 0x403f80
push dword [eax + 0x14]
push dword [eax + 0x10]
push 3
push ebp
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403eb2
push ebx
push 3
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
add esp, 0xc
push str.MaxEmbeddedPE
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x1c], ebx
je 0x403fba
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
push ebp
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403eb2
push ebx
push 0x12
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
add esp, 0xc
push str.MaxHTMLNormalize
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x1c], ebx
je 0x403ff4
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x13
push ebp
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403eb2
push ebx
push 0x13
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
add esp, 0xc
push str.MaxHTMLNoTags
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x1c], ebx
je 0x40402e
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
push ebp
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403eb2
push ebx
push 0x14
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
add esp, 0xc
push str.MaxScriptNormalize
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x1c], ebx
je 0x404068
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x15
push ebp
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403eb2
push ebx
push 0x15
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
add esp, 0xc
push str.MaxZipTypeRcg
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x1c], ebx
je 0x4040a2
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
push ebp
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403eb2
push ebx
push 0x16
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
add esp, 0xc
push str.MaxPartitions
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x1c], ebx
je 0x4040dc
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1b
push ebp
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403eb2
push ebx
push 0x1b
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
add esp, 0xc
push str.MaxIconsPE
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x1c], ebx
je 0x404116
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1c
push ebp
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403eb2
push ebx
push 0x1c
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
add esp, 0xc
push str.ScanArchive
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404155
push str.ArchiveBlockEncrypted
push esi
mov dword [esp + 0x1c], 1
call edi
cmp dword [eax + 0x18], ebx
mov eax, dword [esp + 0x1c]
pop ecx
pop ecx
push 9
pop ecx
cmovne eax, ecx
mov dword [esp + 0x14], eax
push str.AlgorithmicDetection
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x40416c
or dword [esp + 0x14], 0x200
push str.ScanPE
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404180
or dword [esp + 0x14], 0x20
push str.ScanELF
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404197
or dword [esp + 0x14], 0x2000
push str.ScanPE
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
jne 0x4041b5
push str.ScanELF
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4041c9
push str.DetectBrokenExecutables
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4041c9
or dword [esp + 0x14], 0x40
push str.ScanMail
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4041f4
or dword [esp + 0x14], 2
push str.ScanPartialMessages
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4041f4
or dword [esp + 0x14], 0x40000
push str.ScanOLE2
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x40421f
or dword [esp + 0x14], 4
push str.OLE2BlockMacros
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x40421f
or dword [esp + 0x14], 0x100000
push str.ScanPDF
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404236
or dword [esp + 0x14], 0x4000
push str.ScanSWF
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x40424d
or dword [esp + 0x14], 0x400000
push str.ScanHTML
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404261
or dword [esp + 0x14], 0x10
push str.PhishingScanURLs
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x40429e
push str.PhishingAlwaysBlockCloak
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404287
or dword [esp + 0x14], 0x1000
push str.PhishingAlwaysBlockSSLMismatch
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x40429e
or dword [esp + 0x14], 0x800
push str.PartitionIntersection
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4042b5
or dword [esp + 0x14], 0x800000
push str.HeuristicScanPrecedence
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4042cc
or dword [esp + 0x14], 0x80000
push str.StructuredDataDetection
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404389
or dword [esp + 0x14], 0x8000
push str.StructuredMinCreditCardCount
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404314
push dword [eax + 0x14]
push dword [eax + 0x10]
push 4
push ebp
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403eb2
push ebx
push 4
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
add esp, 0xc
push str.StructuredMinSSNCount
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x40434e
push dword [eax + 0x14]
push dword [eax + 0x10]
push 5
push ebp
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403eb2
push ebx
push 5
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
add esp, 0xc
push str.StructuredSSNFormatNormal
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404372
or dword [esp + 0x14], 0x10000
push str.StructuredSSNFormatStripped
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404389
or dword [esp + 0x14], 0x20000
push str.SelfCheck
push esi
call edi
mov eax, dword [eax + 0x10]
mov dword [esp + 0x4c], eax
xor eax, eax
mov edi, 0x40d6e8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
pop ecx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.libav.dll_Ordinal_44283]
push str.PidFile
push esi
mov dword [esp + 0x30], eax
call edi
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
cmp dword [eax + 0x18], ebx
je 0x404451
push 2
call dword [sym.imp.MSVCR110.dll__umask]
movzx eax, ax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp], 0x40bde8
push dword [eax + 8]
call dword [sym.imp.MSVCR110.dll_fopen]
pop ecx
pop ecx
mov dword [esp + 0x30], eax
test eax, eax
jne 0x40440d
mov eax, dword [esp + 0x1c]
push dword [eax + 8]
push str._Cant_save_PID_in_file__s_n
call fcn.00407202
pop ecx
jmp 0x404441
push dword [esp + 0x28]
push 0x40be08
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 0xc
test eax, eax
jns 0x404437
mov eax, dword [esp + 0x1c]
push dword [eax + 8]
push str._Cant_save_PID_in_file__s_n
call fcn.00407202
pop ecx
pop ecx
push dword [esp + 0x30]
call dword [sym.imp.MSVCR110.dll_fclose]
mov eax, dword [esp + 0x28]
movzx eax, ax
pop ecx
push eax
call dword [sym.imp.MSVCR110.dll__umask]
pop ecx
push str.MaxThreads
push esi
call edi
mov eax, dword [eax + 0x10]
push str.MaxQueue
push esi
mov dword [esp + 0x38], eax
call edi
mov eax, dword [eax + 0x10]
push str.CommandReadTimeout
push esi
mov dword [esp + 0x58], eax
call edi
mov eax, dword [eax + 0x10]
push str.ReadTimeout
push esi
mov dword [esp + 0x108], eax
call edi
mov eax, dword [eax + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x60]
push str.ScanOnAccess
push esi
mov dword [esp + 0x10c], eax
call edi
add esp, 0x28
cmp dword [eax + 0x18], ebx
je 0x4044ba
push str.IdleTimeout
push esi
call edi
mov edi, dword [eax + 0x10]
pop ecx
pop ecx
jmp 0x4044be
mov edi, dword [esp + 0x54]
mov esi, ebx
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x3c], ebx
jbe 0x4044f6
mov eax, dword [esp + 0x4c]
push ebx
mov edx, dword [eax + esi*4]
push 1
lea ecx, [esp + 0xc0]
call fcn.00402005
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x403eb2
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [esp + 0x3c]
jb 0x4044ca
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push 1
push ebx
mov dword [0x40d68c], eax
call esi
push ecx
push dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov edx, edi
mov dword [0x40d698], eax
call fcn.004061d1
pop ecx
pop ecx
mov dword [esp + 0x28], eax
test eax, eax
jne 0x404536
push 0xffffffffffffffff
call dword [sym.imp.MSVCR110.dll_exit]
lea eax, [esp + 0xb8]
push eax
push 0x4035f9
lea eax, [esp + 0x78]
push ebx
push eax
call dword [sym.imp.libav.dll_Ordinal_44303]
add esp, 0x10
test eax, eax
jne 0x40452e
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.MSVCR110.dll__time64]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x44]
or eax, 0xffffffff
test ecx, ecx
cmovne eax, ecx
mov dword [esp + 0x54], eax
push dword [esp + 0xcc]
call dword [sym.imp.libav.dll_Ordinal_44297]
pop ecx
lea ecx, [esp + 0xcc]
call fcn.00401e84
mov eax, dword [esp + 0x40]
cmp dword [esp + 0xd4], eax
ja 0x4045b0
lea eax, [esp + 0xe0]
push eax
call dword [sym.imp.libav.dll_Ordinal_44307]
pop ecx
push dword [0x40d698]
mov edx, dword [esp + 0x58]
push 1
lea ecx, [esp + 0xd4]
call fcn.004020a0
pop ecx
pop ecx
push dword [0x40d698]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [esp + 0x24], 0xffffffff
jne 0x40460f
call dword [sym.imp.MSVCR110.dll__errno]
cmp dword [eax], 4
je 0x40460f
push 0x40d01c
call dword [sym.imp.libav.dll_Ordinal_44297]
mov dword [0x40d69c], 1
mov dword [esp], 0x40d01c
call dword [sym.imp.libav.dll_Ordinal_44298]
pop ecx
mov ecx, dword [esp + 0xd4]
test ecx, ecx
je 0x404629
mov eax, dword [esp + 0x2c]
inc eax
xor edx, edx
div ecx
mov dword [esp + 0x1c], edx
jmp 0x40462d
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], ebx
test ecx, ecx
je 0x4048e2
cmp dword [esp + 0x24], ebx
jl 0x4048e2
mov ecx, edx
imul ecx, ecx, 0x48
add ecx, dword [esp + 0xd0]
mov eax, ebx
mov dword [esp + 0x38], ebx
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
test edx, edx
je 0x4048c0
cmp edx, 0xffffffff
jne 0x404699
cmp dword [ecx + 0x1c], 2
jne 0x404692
or dword [ecx + 0xc], edx
mov ecx, dword [ecx + 0x40]
call fcn.00406b0b
mov eax, dword [esp + 0x14]
xor edx, edx
mov ecx, dword [eax + 0x40]
inc edx
call fcn.004068c7
jmp 0x4048c0
xor eax, eax
inc eax
mov dword [esp + 0x20], eax
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x2c], edi
cmp edi, 0xffffffff
mov edi, dword [esp + 0x34]
je 0x4046c9
cmp edx, 0xfffffffe
jne 0x4046c9
push str.COMMAND_READ_TIMED_OUT_n
push dword [esp + 0x30]
call fcn.00406f92
xor eax, eax
pop ecx
inc eax
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
cmp dword [ecx + 0x1c], 3
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
jne 0x4046da
mov dword [ecx + 0x1c], ebx
test eax, eax
jne 0x404840
cmp dword [ecx + 0xc], 0xffffffff
je 0x404838
cmp dword [ecx], ebx
je 0x404838
mov edx, dword [esp + 0x38]
cmp edx, dword [ecx + 8]
jae 0x404838
cmp dword [ecx + 0x1c], 3
je 0x404838
push 0x40
lea eax, [esp + 0x7c]
push ebx
push eax
call sub.MSVCR110.dll_memset
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [ecx + 0x18]
push dword [esp + 0x30]
mov dword [esp + 0x84], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x2c]
or dword [ecx + 0x18], 0xffffffff
mov dword [esp + 0xa8], eax
mov eax, dword [ecx + 0x40]
mov dword [esp + 0xb4], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0xac], eax
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0xb0], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0xb8], eax
mov al, byte [ecx + 0x10]
mov byte [esp + 0xa4], al
push edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x44]
mov edx, ecx
push eax
lea ecx, [esp + 0x88]
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], ebp
call fcn.00403941
add esp, 0x10
cmp dword [esp + 0xb4], ebx
jne 0x4047c0
test eax, eax
je 0x404830
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x404a38
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x1c], 2
jne 0x4047fd
mov edx, dword [ecx + 8]
test edx, edx
je 0x4047fd
mov eax, dword [ecx]
mov byte [edx + eax], bl
push dword [ecx]
push str._Garbage:__s_n
call fcn.00407202
pop ecx
pop ecx
mov dword [esp + 0x20], 1
jmp 0x404a3d
cmp dword [ecx + 0x1c], 1
jne 0x4046e2
push dword [esp + 0x30]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
mov edx, ecx
push edi
lea ecx, [esp + 0x88]
call fcn.00403bd8
add esp, 0x10
cmp eax, 0xffffffff
jne 0x404a4b
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4048c0
mov eax, dword [ecx + 0x24]
cmp eax, 0xffffffff
je 0x404879
push eax
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x404875
push eax
call dword [sym.imp.libav.dll_Ordinal_44219]
mov eax, dword [esp + 0x18]
pop ecx
push dword [eax + 0x30]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
mov ecx, dword [esp + 0x14]
or dword [ecx + 0x24], 0xffffffff
mov ecx, dword [ecx + 0x40]
call fcn.00406b0b
mov eax, dword [esp + 0x14]
xor edx, edx
mov ecx, dword [eax + 0x40]
inc edx
call fcn.004068c7
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4048bc
mov ecx, dword [eax + 0xc]
test ecx, ecx
js 0x4048bc
push 2
push ecx
call dword [sym.imp.libav.dll_Ordinal_44328]
mov eax, dword [esp + 0x1c]
push dword [eax + 0xc]
call dword [sym.imp.libav.dll_Ordinal_44331]
mov eax, dword [esp + 0x20]
add esp, 0xc
or dword [eax + 0xc], 0xffffffff
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x48]
mov ecx, dword [esp + 0xd4]
inc eax
xor edx, edx
div ecx
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x48], ecx
jb 0x404639
push dword [esp + 0xcc]
call dword [sym.imp.libav.dll_Ordinal_44298]
mov dword [esp], 0x40d01c
call dword [sym.imp.libav.dll_Ordinal_44297]
pop ecx
push 0x40d01c
cmp dword [0x40d69c], ebx
jne 0x404a7c
call dword [sym.imp.libav.dll_Ordinal_44298]
pop ecx
cmp dword [0x40d6a4], ebx
je 0x40494b
call fcn.004071d2
mov dword [0x40d6a4], ebx
cmp dword [0x40d6bc], ebx
jne 0x40494b
push str.LogFile
push edi
call dword [sym.imp.libav.dll_Ordinal_44283]
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x40494b
mov eax, dword [eax + 8]
mov dword [0x40d6bc], eax
cmp dword [esp + 0x44], ebx
je 0x4049c2
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.MSVCR110.dll__time64]
mov eax, dword [esp + 0x68]
pop ecx
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x58]
sbb eax, dword [esp + 0x5c]
cmp eax, ebx
jl 0x4049c2
jg 0x404979
cmp ecx, dword [esp + 0x44]
jb 0x4049c2
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push 1
push edi
mov ecx, ebp
call fcn.0040337e
add esp, 0xc
test eax, eax
je 0x4049b6
push 0x40d018
call dword [sym.imp.libav.dll_Ordinal_44297]
mov dword [0x40d6a0], 1
mov dword [esp], 0x40d018
call dword [sym.imp.libav.dll_Ordinal_44298]
pop ecx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.MSVCR110.dll__time64]
pop ecx
push 0x40d018
call dword [sym.imp.libav.dll_Ordinal_44297]
pop ecx
push 0x40d018
cmp dword [0x40d6a0], ebx
je 0x404a58
call dword [sym.imp.libav.dll_Ordinal_44298]
mov edx, dword [esp + 0x54]
pop ecx
lea eax, [esp + 0x18]
push eax
push ebx
push edi
mov ecx, ebp
call fcn.0040337e
add esp, 0xc
mov ebp, eax
cmp dword [esp + 0x18], ebx
jne 0x404a64
push 0x40d018
call dword [sym.imp.libav.dll_Ordinal_44297]
mov dword [0x40d6a0], ebx
mov dword [esp], 0x40d690
call dword [sym.imp.MSVCR110.dll__time64]
mov dword [esp], 0x40d018
call dword [sym.imp.libav.dll_Ordinal_44298]
pop ecx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.MSVCR110.dll__time64]
jmp 0x404a5e
cmp eax, 0x15
je 0x404a4f
mov edx, 0x40b369
lea ecx, [esp + 0x78]
call fcn.00404dcb
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
jmp 0x4046da
call dword [sym.imp.libav.dll_Ordinal_44298]
pop ecx
jmp 0x40457a
mov eax, dword [esp + 0x24]
test eax, eax
js 0x404b26
push eax
call dword [sym.imp.libav.dll_Ordinal_44331]
jmp 0x404b25
call dword [sym.imp.libav.dll_Ordinal_44298]
pop ecx
push dword [esp + 0xcc]
call dword [sym.imp.libav.dll_Ordinal_44297]
mov eax, ebx
pop ecx
mov dword [esp + 0x24], eax
cmp dword [esp + 0xd4], eax
jbe 0x404b18
mov esi, ebx
mov ecx, dword [esp + 0xd0]
cmp dword [esi + ecx + 0xc], 0xffffffff
je 0x404b07
mov ecx, dword [esi + ecx + 0x40]
call fcn.00406b0b
mov ecx, dword [esp + 0xd0]
xor edx, edx
mov ecx, dword [esi + ecx + 0x40]
inc edx
call fcn.004068c7
test eax, eax
je 0x404b03
mov eax, dword [esp + 0xd0]
push 2
push dword [esi + eax + 0xc]
call dword [sym.imp.libav.dll_Ordinal_44328]
mov eax, dword [esp + 0xd8]
push dword [esi + eax + 0xc]
call dword [sym.imp.libav.dll_Ordinal_44331]
mov eax, dword [esp + 0xdc]
add esp, 0xc
or dword [esi + eax + 0xc], 0xffffffff
mov eax, dword [esp + 0x24]
inc eax
add esi, 0x48
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0xd4]
jb 0x404aa2
push dword [esp + 0xcc]
call dword [sym.imp.libav.dll_Ordinal_44298]
pop ecx
mov esi, 0x40d01c
push esi
call dword [sym.imp.libav.dll_Ordinal_44297]
pop ecx
push esi
mov dword [0x40d69c], 1
call dword [sym.imp.libav.dll_Ordinal_44298]
pop ecx
push dword [0x40d68c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x28]
call fcn.004060ea
test ebp, ebp
je 0x404b6d
xor ecx, ecx
call fcn.0040646d
push ebp
call dword [sym.imp.libav.dll_Ordinal_9]
pop ecx
push ebx
push dword [esp + 0x78]
push dword [esp + 0x78]
call dword [sym.imp.libav.dll_Ordinal_44309]
add esp, 0xc
lea ecx, [esp + 0xcc]
call fcn.00402308
push dword [esp + 0xcc]
call dword [sym.imp.libav.dll_Ordinal_44299]
pop ecx
lea eax, [esp + 0xe0]
push eax
call dword [sym.imp.libav.dll_Ordinal_44308]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [0x40d68c]
call esi
push dword [0x40d698]
call esi
cmp dword [0x40d6f4], ebx
je 0x404bd2
push 0x40d6e8
call dword [sym.imp.libav.dll_Ordinal_25]
pop ecx
mov ebp, dword [esp + 0x3c]
test ebp, ebp
je 0x404bf4
mov edi, dword [esp + 0x4c]
push 2
push dword [edi + ebx*4]
call dword [sym.imp.libav.dll_Ordinal_44328]
inc ebx
pop ecx
pop ecx
cmp ebx, ebp
jb 0x404bde
mov edi, dword [esp + 0x34]
push str.PidFile
push edi
call dword [sym.imp.libav.dll_Ordinal_44283]
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.MSVCR110.dll__time64]
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004075b5
add esp, 0xf8
ret