Function at 0x403d21
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 0x403e35
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 0x403e35
push ebp
call dword [sym.imp.libav.dll_Ordinal_9]
xor eax, eax
pop ecx
inc eax
jmp 0x404b85
push ebx
push ebx
push ebp
call dword [sym.imp.libav.dll_Ordinal_10]
mov ecx, eax
add esp, 0xc
or ecx, edx
je 0x403e56
push edx
push eax
push str.Limits:_Global_size_limit_set_to__llu_bytes._n
call fcn.00407178
add esp, 0xc
push str.MaxFileSize
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x1c], ebx
je 0x403e7f
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 0x403e25
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 0x403eb9
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 0x403e25
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 0x403ef3
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 0x403e25
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 0x403f2d
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 0x403e25
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 0x403f67
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 0x403e25
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 0x403fa1
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 0x403e25
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 0x403fdb
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 0x403e25
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 0x404015
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 0x403e25
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 0x40404f
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 0x403e25
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 0x404089
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 0x403e25
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 0x4040c8
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 0x4040df
or dword [esp + 0x14], 0x200
push str.ScanPE
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4040f3
or dword [esp + 0x14], 0x20
push str.ScanELF
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x40410a
or dword [esp + 0x14], 0x2000
push str.ScanPE
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
jne 0x404128
push str.ScanELF
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x40413c
push str.DetectBrokenExecutables
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x40413c
or dword [esp + 0x14], 0x40
push str.ScanMail
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404167
or dword [esp + 0x14], 2
push str.ScanPartialMessages
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404167
or dword [esp + 0x14], 0x40000
push str.ScanOLE2
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404192
or dword [esp + 0x14], 4
push str.OLE2BlockMacros
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404192
or dword [esp + 0x14], 0x100000
push str.ScanPDF
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4041a9
or dword [esp + 0x14], 0x4000
push str.ScanSWF
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4041c0
or dword [esp + 0x14], 0x400000
push str.ScanHTML
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4041d4
or dword [esp + 0x14], 0x10
push str.PhishingScanURLs
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404211
push str.PhishingAlwaysBlockCloak
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4041fa
or dword [esp + 0x14], 0x1000
push str.PhishingAlwaysBlockSSLMismatch
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404211
or dword [esp + 0x14], 0x800
push str.PartitionIntersection
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404228
or dword [esp + 0x14], 0x800000
push str.HeuristicScanPrecedence
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x40423f
or dword [esp + 0x14], 0x80000
push str.StructuredDataDetection
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4042fc
or dword [esp + 0x14], 0x8000
push str.StructuredMinCreditCardCount
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x404287
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 0x403e25
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 0x4042c1
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 0x403e25
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 0x4042e5
or dword [esp + 0x14], 0x10000
push str.StructuredSSNFormatStripped
push esi
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4042fc
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 0x4043c4
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], 0x40bdb4
push dword [eax + 8]
call dword [sym.imp.MSVCR110.dll_fopen]
pop ecx
pop ecx
mov dword [esp + 0x30], eax
test eax, eax
jne 0x404380
mov eax, dword [esp + 0x1c]
push dword [eax + 8]
push str._Cant_save_PID_in_file__s_n
call fcn.00407175
pop ecx
jmp 0x4043b4
push dword [esp + 0x28]
push 0x40bdd4
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 0xc
test eax, eax
jns 0x4043aa
mov eax, dword [esp + 0x1c]
push dword [eax + 8]
push str._Cant_save_PID_in_file__s_n
call fcn.00407175
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 0x40442d
push str.IdleTimeout
push esi
call edi
mov edi, dword [eax + 0x10]
pop ecx
pop ecx
jmp 0x404431
mov edi, dword [esp + 0x54]
mov esi, ebx
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x3c], ebx
jbe 0x404469
mov eax, dword [esp + 0x4c]
push ebx
mov edx, dword [eax + esi*4]
push 1
lea ecx, [esp + 0xc0]
call fcn.00401f78
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x403e25
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [esp + 0x3c]
jb 0x40443d
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.00406144
pop ecx
pop ecx
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4044a9
push 0xffffffffffffffff
call dword [sym.imp.MSVCR110.dll_exit]
lea eax, [esp + 0xb8]
push eax
push 0x40356c
lea eax, [esp + 0x78]
push ebx
push eax
call dword [sym.imp.libav.dll_Ordinal_44303]
add esp, 0x10
test eax, eax
jne 0x4044a1
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.00401df7
mov eax, dword [esp + 0x40]
cmp dword [esp + 0xd4], eax
ja 0x404523
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.00402013
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 0x404582
call dword [sym.imp.MSVCR110.dll__errno]
cmp dword [eax], 4
je 0x404582
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 0x40459c
mov eax, dword [esp + 0x2c]
inc eax
xor edx, edx
div ecx
mov dword [esp + 0x1c], edx
jmp 0x4045a0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], ebx
test ecx, ecx
je 0x404855
cmp dword [esp + 0x24], ebx
jl 0x404855
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 0x404833
cmp edx, 0xffffffff
jne 0x40460c
cmp dword [ecx + 0x1c], 2
jne 0x404605
or dword [ecx + 0xc], edx
mov ecx, dword [ecx + 0x40]
call fcn.00406a7e
mov eax, dword [esp + 0x14]
xor edx, edx
mov ecx, dword [eax + 0x40]
inc edx
call fcn.0040683a
jmp 0x404833
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 0x40463c
cmp edx, 0xfffffffe
jne 0x40463c
push str.COMMAND_READ_TIMED_OUT_n
push dword [esp + 0x30]
call fcn.00406f05
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 0x40464d
mov dword [ecx + 0x1c], ebx
test eax, eax
jne 0x4047b3
cmp dword [ecx + 0xc], 0xffffffff
je 0x4047ab
cmp dword [ecx], ebx
je 0x4047ab
mov edx, dword [esp + 0x38]
cmp edx, dword [ecx + 8]
jae 0x4047ab
cmp dword [ecx + 0x1c], 3
je 0x4047ab
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.004038b4
add esp, 0x10
cmp dword [esp + 0xb4], ebx
jne 0x404733
test eax, eax
je 0x4047a3
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4049ab
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x1c], 2
jne 0x404770
mov edx, dword [ecx + 8]
test edx, edx
je 0x404770
mov eax, dword [ecx]
mov byte [edx + eax], bl
push dword [ecx]
push str._Garbage:__s_n
call fcn.00407175
pop ecx
pop ecx
mov dword [esp + 0x20], 1
jmp 0x4049b0
cmp dword [ecx + 0x1c], 1
jne 0x404655
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.00403b4b
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4049be
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x404833
mov eax, dword [ecx + 0x24]
cmp eax, 0xffffffff
je 0x4047ec
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 0x4047e8
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.00406a7e
mov eax, dword [esp + 0x14]
xor edx, edx
mov ecx, dword [eax + 0x40]
inc edx
call fcn.0040683a
test eax, eax
mov eax, dword [esp + 0x14]
je 0x40482f
mov ecx, dword [eax + 0xc]
test ecx, ecx
js 0x40482f
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 0x4045ac
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 0x4049ef
call dword [sym.imp.libav.dll_Ordinal_44298]
pop ecx
cmp dword [0x40d6a4], ebx
je 0x4048be
call fcn.00407145
mov dword [0x40d6a4], ebx
cmp dword [0x40d6bc], ebx
jne 0x4048be
push str.LogFile
push edi
call dword [sym.imp.libav.dll_Ordinal_44283]
pop ecx
pop ecx
cmp dword [eax + 0x18], ebx
je 0x4048be
mov eax, dword [eax + 8]
mov dword [0x40d6bc], eax
cmp dword [esp + 0x44], ebx
je 0x404935
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 0x404935
jg 0x4048ec
cmp ecx, dword [esp + 0x44]
jb 0x404935
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push 1
push edi
mov ecx, ebp
call fcn.004032f1
add esp, 0xc
test eax, eax
je 0x404929
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 0x4049cb
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.004032f1
add esp, 0xc
mov ebp, eax
cmp dword [esp + 0x18], ebx
jne 0x4049d7
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 0x4049d1
cmp eax, 0x15
je 0x4049c2
mov edx, 0x40b335
lea ecx, [esp + 0x78]
call fcn.00404d3e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
jmp 0x40464d
call dword [sym.imp.libav.dll_Ordinal_44298]
pop ecx
jmp 0x4044ed
mov eax, dword [esp + 0x24]
test eax, eax
js 0x404a99
push eax
call dword [sym.imp.libav.dll_Ordinal_44331]
jmp 0x404a98
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 0x404a8b
mov esi, ebx
mov ecx, dword [esp + 0xd0]
cmp dword [esi + ecx + 0xc], 0xffffffff
je 0x404a7a
mov ecx, dword [esi + ecx + 0x40]
call fcn.00406a7e
mov ecx, dword [esp + 0xd0]
xor edx, edx
mov ecx, dword [esi + ecx + 0x40]
inc edx
call fcn.0040683a
test eax, eax
je 0x404a76
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 0x404a15
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.0040605d
test ebp, ebp
je 0x404ae0
xor ecx, ecx
call fcn.004063e0
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.0040227b
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 0x404b45
push 0x40d6e8
call dword [sym.imp.libav.dll_Ordinal_25]
pop ecx
mov ebp, dword [esp + 0x3c]
test ebp, ebp
je 0x404b67
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 0x404b51
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.00407528
add esp, 0xf8
ret