Function at 0x406f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
mov esi, ecx
mov ecx, dword [sym.imp.libav.dll_Ordinal_44297]
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [esi + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x406fb4
push ebx
call ecx
mov ebx, dword [ebx + 0x18]
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.libav.dll_Ordinal_44298]
mov ecx, dword [sym.imp.libav.dll_Ordinal_44297]
add esp, 4
jmp 0x406fb6
xor ebx, ebx
push 0x41102c
call ecx
or ebx, dword [0x4116a0]
add esp, 4
push 0x41102c
call dword [sym.imp.libav.dll_Ordinal_44298]
add esp, 4
test ebx, ebx
je 0x406ffa
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je case.0x407085.6
push eax
call dword [sym.imp.MSVCR110.dll__close]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x408130
push 0x4116ac
call dword [sym.imp.libav.dll_Ordinal_44300]
push dword [0x41170c]
call dword [sym.imp.libav.dll_Ordinal_44301]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x407026
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x18], eax
push 0x40
lea eax, [esp + 0x34]
push 0
push eax
mov dword [esp + 0x34], eax
call sub.MSVCR110.dll_memset
mov eax, dword [esi + 0x30]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esi + 4]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x70], eax
mov eax, dword [esi]
add eax, 0xfffffffb
add esp, 0xc
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x50], ecx
cmp eax, 0x10
ja case.0x407085.6
jmp dword [eax*4 + 0x407508]
mov edx, str.SCAN
xor ecx, ecx
call fcn.00408dd0
jmp 0x40738b
mov edx, str.SCANH
xor ecx, ecx
call fcn.00408dd0
jmp 0x40738b
lea eax, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.libav.dll_Ordinal_44339]
add esp, 8
test eax, eax
jne 0x4070e1
test dword [esp + 0x76], 0x4000
jne 0x4070e1
mov edx, str.CONTSCAN
xor ecx, ecx
call fcn.00408dd0
mov ebx, 1
jmp 0x40738d
push dword [esi + 0x2c]
call dword [sym.imp.libav.dll_Ordinal_44297]
mov ecx, dword [esi + 0x2c]
add esp, 4
mov eax, dword [ecx + 0x2c]
inc eax
cmp eax, dword [ecx + 0x1c]
jge 0x4070fe
mov dword [ecx + 0x2c], eax
jmp 0x407106
mov dword [esp + 0x1c], 0xffffffff
push dword [esi + 0x2c]
call dword [sym.imp.libav.dll_Ordinal_44298]
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x40713c
push str.ERROR
push str.Not_enough_threads_for_multiscan._Increase_MaxThreads.
mov edx, dword [esi + 4]
mov ecx, esi
call fcn.004077a0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.MULTISCAN
xor ecx, ecx
mov dword [esp + 0x10], 8
call fcn.00408dd0
mov ebx, 2
call fcn.00408430
mov dword [esp + 0x2c], eax
mov dword [esp + 0x68], eax
test eax, eax
jne 0x40738d
push str.ExitOnOOM
push edi
call dword [sym.imp.libav.dll_Ordinal_44283]
xor ecx, ecx
add esp, 8
cmp dword [eax + 0x18], ecx
sete cl
lea eax, [ecx*2 - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.MULTISCANFILE
xor ecx, ecx
call fcn.00408dd0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x28]
push ecx
push 0
push eax
push eax
push 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x78], 0
call fcn.00404140
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
add esp, 0x14
mov dword [esi + 4], 0
mov dword [ebx], ecx
cmp eax, 0x16
jne 0x4071f3
mov ecx, dword [esi + 0x38]
call fcn.00408e30
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x40]
xor eax, eax
test ecx, ecx
cmovg eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.FILDES
xor ecx, ecx
call fcn.00408dd0
mov edx, str.FILDES_support_not_compiled_in.
mov ecx, esi
call fcn.00407650
push dword [esi + 8]
call dword [sym.imp.MSVCR110.dll__close]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.STATS
xor ecx, ecx
call fcn.00408dd0
cmp dword [esi + 0x38], 0
je 0x407255
push dword [esi + 0x30]
push str._u:
push ebx
call fcn.00409ac0
add esp, 0xc
mov dl, byte [esi + 0x28]
mov ecx, ebx
call fcn.004085a0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.STREAM
xor ecx, ecx
call fcn.00408dd0
movzx eax, byte [esi + 0x28]
push eax
push edi
push dword [esp + 0x14]
mov ecx, ebx
push dword [esp + 0x20]
call fcn.004036c0
add esp, 0x10
cmp eax, 1
jne 0x4072a0
mov ebx, dword [esp + 0x20]
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x14
jne 0x407229
jmp 0x40716a
mov edx, str.INSTREAM
xor ecx, ecx
call fcn.00408dd0
sub esp, 8
mov ecx, esi
push edi
push dword [esp + 0x18]
push dword [esp + 0x24]
call fcn.00403d80
add esp, 0x14
cmp eax, 1
jne 0x40731a
mov ebx, dword [esp + 0x20]
mov dword [ebx], eax
xor ebx, ebx
push 0
push dword [esi + 8]
call dword [sym.imp.MSVCR110.dll__chsize]
add esp, 8
cmp eax, 0xffffffff
jne 0x4072f2
call dword [sym.imp.MSVCR110.dll__errno]
push dword [esi + 8]
call dword [sym.imp.MSVCR110.dll__close]
add esp, 4
push dword [esi + 4]
mov dword [esi + 8], 0xffffffff
call dword [sym.imp.libav.dll_Ordinal_44219]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x14
jne 0x40733f
push str.ExitOnOOM
push edi
call dword [sym.imp.libav.dll_Ordinal_44283]
xor ebx, ebx
add esp, 8
cmp dword [eax + 0x18], ebx
sete bl
lea ebx, [ebx*2 - 1]
jmp 0x4072d9
cmp eax, 0x15
jne 0x4072d7
mov ecx, dword [esi + 0x38]
call fcn.00408e30
mov ebx, 1
jmp 0x4072d9
push str.AllowAllMatchScan
push edi
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
jne 0x407377
push str.ERROR
push str.ALLMATCHSCAN_command_disabled_by_clamd_configuration.
jmp 0x407123
mov edx, str.ALLMATCHSCAN
xor ecx, ecx
call fcn.00408dd0
or dword [esp + 0x58], 0x200000
xor ebx, ebx
push str.MaxDirectoryRecursion
push edi
mov dword [esp + 0x40], ebx
call dword [sym.imp.libav.dll_Ordinal_44283]
mov eax, dword [eax + 0x10]
push str.FollowDirectorySymlinks
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 0x10
cmp dword [eax + 0x18], 0
je 0x4073be
or dword [esp + 0x10], 2
push str.FollowFileSymlinks
push edi
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4073d8
or dword [esp + 0x10], 1
push str.CrossFilesystems
push edi
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
jne 0x40740d
lea eax, [esp + 0x70]
push eax
push dword [esi + 4]
call dword [sym.imp.libav.dll_Ordinal_44339]
mov ecx, dword [esp + 0x74]
add esp, 8
test eax, eax
cmove ecx, dword [esp + 0x70]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x18]
push 0x404080
lea eax, [esp + 0x2c]
push eax
test ecx, ecx
push fcn.00404140
mov eax, Ordinal_3
cmovne eax, ecx
push eax
push dword [esp + 0x20]
push dword [esi + 4]
call dword [sym.imp.libav.dll_Ordinal_44221]
mov edx, eax
add esp, 0x18
mov dword [esp + 0x1c], edx
cmp edx, 0x14
je 0x40716a
cmp dword [esp + 0x68], 0
je 0x40749d
cmp ebx, 2
jne 0x40749d
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x1c]
call fcn.004084c0
push dword [esi + 0x2c]
call dword [sym.imp.libav.dll_Ordinal_44297]
mov eax, dword [esi + 0x2c]
add esp, 0xc
dec dword [eax + 0x2c]
push dword [esi + 0x2c]
call dword [sym.imp.libav.dll_Ordinal_44298]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add esp, 4
jmp 0x4074ad
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov ebx, edi
sub ebx, ecx
sub ebx, dword [esp + 0x3c]
lea eax, [ebx + ecx]
mov dword [esp + 0xc], ecx
cmp eax, edi
jne 0x4074e1
cmp ecx, edi
je 0x4074e1
mov edx, dword [esi + 4]
push 0x40e9a8
mov ecx, esi
call fcn.00407810
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, 0x15
cmp eax, 0xffffffff
cmove edx, ecx
mov ecx, dword [esp + 0xc]
sub edi, ebx
mov ebx, dword [esp + 0x20]
sub edi, ecx
mov dword [ebx], edi
cmp edx, 0x15
jne 0x4074fc
mov ecx, dword [esi + 0x38]
call fcn.00408e30
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret