Function at 0x405a30
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x413080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x2c]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xb8], 0xffffffff
mov dword [ebp - 0x88], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xa8], edi
call sub.libav.dll_Ordinal_20
push str..clamav.net
push dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x98], edi
call sub.libav.dll_Ordinal_44258
push esi
push str._s.cvd
lea eax, [ebp - 0x64]
push 0x20
push eax
call sub.libav.dll_Ordinal_44276
push esi
push str._s.cld
lea eax, [ebp - 0x84]
push 0x20
push eax
call sub.libav.dll_Ordinal_44276
add esp, 0x28
cmp dword [ebp + 0x30], edi
jne 0x405b3f
push esi
call fcn.00405210
add esp, 4
mov edi, eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.004031a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x405ba3
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], 1
mov ecx, str.daily
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405b87
test dl, dl
je 0x405b83
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405b87
add eax, 2
add ecx, 2
test dl, dl
jne 0x405b67
xor eax, eax
jmp 0x405b8c
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp + 0x30]
jne 0x405c1e
mov dword [0x4131cc], 1
jmp 0x405c1e
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0xac]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x405c1e
test ebx, ebx
je 0x405c6c
test edi, edi
jne 0x405bdf
push esi
call sub.libav.dll_Ordinal_2
add esp, 4
lea eax, [edi + 0x46]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
push 0x40e750
push edi
push ebx
call sub.libav.dll_Ordinal_44212
mov edi, eax
add esp, 0xc
test edi, edi
je 0x405c1b
push edi
call sub.libav.dll_Ordinal_44211
add esp, 4
test eax, eax
je 0x405c11
push edi
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
mov dword [ebp - 0x8c], eax
push edi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov eax, dword [ebp + 0x30]
test ebx, ebx
je 0x405c6c
test eax, eax
jne 0x405c6c
push 0x40e750
push 5
push ebx
call sub.libav.dll_Ordinal_44212
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x405c6c
push ebx
call dword [sym.imp.MSVCR110.dll_atoi]
push ebx
mov edi, eax
call dword [sym.imp.MSVCR110.dll_free]
add esp, 8
test edi, edi
je 0x405c6c
sub edi, dword [ebp - 0xa0]
xor eax, eax
cmp edi, 4
mov ecx, 1
cmovb eax, ecx
mov dword [ebp - 0x98], eax
mov edi, dword [ebp - 0x90]
push str.HTTPProxyServer
push edi
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405d0c
mov ebx, dword [eax + 8]
push 7
push str.http:__
push ebx
mov dword [ebp - 0x88], ebx
call dword [sym.imp.MSVCR110.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x405cb1
add ebx, 7
mov dword [ebp - 0x88], ebx
push str.HTTPProxyUsername
push edi
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405cef
mov eax, dword [eax + 8]
push str.HTTPProxyPassword
push edi
mov dword [ebp - 0xa4], eax
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405e05
mov eax, dword [eax + 8]
mov dword [ebp - 0xb0], eax
push str.HTTPProxyPort
push edi
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405d0c
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x94], eax
push str.HTTPUserAgent
push edi
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], 0
je 0x405d29
mov eax, dword [eax + 8]
mov dword [ebp - 0xa8], eax
push str.ConnectTimeout
push edi
call sub.libav.dll_Ordinal_44283
mov ebx, dword [eax + 0x10]
push str.ReceiveTimeout
push edi
mov dword [ebp - 0xd0], ebx
call sub.libav.dll_Ordinal_44283
mov edi, dword [eax + 0x10]
add esp, 0x10
cmp dword [ebp - 0xd4], 0
mov dword [ebp - 0xc8], edi
jne 0x405f67
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x405f36
push str.PrivateMirror
push dword [ebp - 0x90]
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], 0
push dword [ebp - 0xc0]
lea eax, [ebp - 0xb8]
push dword [ebp - 0x98]
je 0x405e75
mov edi, dword [ebp - 0xc4]
push edi
push dword [ebp - 0xac]
push dword [ebp - 0xc8]
push ebx
mov ebx, dword [ebp - 0xb4]
push eax
push dword [ebp - 0xa8]
lea eax, [ebp - 0x44]
push dword [ebp - 0xb0]
push dword [ebp - 0xa4]
push dword [ebp - 0x94]
push dword [ebp - 0x88]
push dword [ebp - 0xbc]
push ebx
push dword [ebp - 0x9c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00404910
add esp, 0x44
test eax, eax
je 0x405e28
mov edi, 1
jmp 0x405ec6
test esi, esi
je 0x405e12
push esi
call sub.libav.dll_Ordinal_2
add esp, 4
pop edi
pop esi
mov eax, 0x38
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc0]
lea eax, [ebp - 0xb8]
push dword [ebp - 0x98]
push edi
push dword [ebp - 0xac]
push dword [ebp - 0xc8]
push dword [ebp - 0xd0]
push eax
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push dword [ebp - 0xa4]
push dword [ebp - 0x94]
push dword [ebp - 0x88]
push dword [ebp - 0xbc]
push ebx
jmp 0x405eae
push dword [ebp - 0xc4]
push dword [ebp - 0xac]
push edi
push ebx
push eax
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push dword [ebp - 0xa4]
push dword [ebp - 0x94]
push dword [ebp - 0x88]
push dword [ebp - 0xbc]
push dword [ebp - 0xb4]
push dword [ebp - 0x9c]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00404910
add esp, 0x44
xor edi, edi
cmp dword [ebp - 0xb8], 0
jne 0x405ef9
mov eax, dword [ebp - 0xd8]
mov ecx, dword [esi + 8]
add dword [eax], ecx
push esi
call sub.libav.dll_Ordinal_2
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x405f1c
push esi
call sub.libav.dll_Ordinal_2
add esp, 4
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 4]
push eax
mov dword [ebp - 0x8c], ecx
call sub.libav.dll_Ordinal_2
mov eax, dword [ebp - 0x8c]
add esp, 4
jmp 0x405f38
xor edi, edi
cmp dword [esi + 4], eax
jb 0x405f69
mov ecx, dword [ebp - 0xd8]
mov eax, dword [esi + 8]
add dword [ecx], eax
push esi
call sub.libav.dll_Ordinal_2
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
je 0x405f7f
mov eax, dword [esi + 4]
push esi
mov dword [ebp - 0xdc], eax
call sub.libav.dll_Ordinal_2
add esp, 4
push 0x413ba0
call sub.libav.dll_Ordinal_44203
mov ebx, eax
add esp, 4
mov dword [ebp - 0xe0], ebx
test ebx, ebx
je 0x406122
cmp dword [ebp - 0xd4], 0
je 0x4060ff
mov esi, dword [ebp - 0x90]
push str.PrivateMirror
push esi
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], 0
je 0x406063
test edi, edi
mov edi, dword [ebp - 0xb4]
je 0x406069
push dword [ebp - 0xc0]
lea eax, [ebp - 0x84]
push esi
push dword [ebp - 0x98]
push dword [ebp - 0xc4]
push dword [ebp - 0xac]
push dword [ebp - 0xc8]
push dword [ebp - 0xd0]
push dword [ebp - 0x8c]
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push dword [ebp - 0xa4]
push dword [ebp - 0x94]
push dword [ebp - 0x88]
push dword [ebp - 0xbc]
push edi
push dword [ebp - 0x9c]
push ebx
push eax
call fcn.00403a90
add esp, 0x48
test eax, eax
jne 0x406069
push dword [ebp - 0xcc]
lea eax, [ebp - 0x24]
push str._s.cvd
push 0x20
push eax
call sub.libav.dll_Ordinal_44276
mov edi, dword [sym.imp.MSVCR110.dll_free]
add esp, 0x10
jmp 0x4063e1
mov edi, dword [ebp - 0xb4]
push dword [ebp - 0xc0]
lea eax, [ebp - 0x64]
push esi
push dword [ebp - 0x98]
push dword [ebp - 0xc4]
push dword [ebp - 0xac]
push dword [ebp - 0xc8]
push dword [ebp - 0xd0]
push dword [ebp - 0x8c]
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push dword [ebp - 0xa4]
push dword [ebp - 0x94]
push dword [ebp - 0x88]
push dword [ebp - 0xbc]
push edi
push dword [ebp - 0x9c]
push ebx
push eax
call fcn.00403a90
mov esi, eax
add esp, 0x48
test esi, esi
je 0x40603f
xorps xmm0, xmm0
movq qword [edi], xmm0
push ebx
movq qword [edi + 8], xmm0
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
push 0x413ba0
call sub.libav.dll_Ordinal_44203
mov esi, eax
add esp, 4
mov dword [ebp - 0xa0], esi
test esi, esi
jne 0x406138
push ebx
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
pop edi
pop esi
mov eax, 0x4b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
push str.MaxAttempts
push dword [ebp - 0x90]
call sub.libav.dll_Ordinal_44283
mov edi, dword [eax + 0x10]
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0x8c]
inc eax
add esp, 8
mov dword [ebp - 0xb8], eax
cmp eax, ecx
ja 0x406259
lea esp, [esp]
mov esi, 1
cmp edi, esi
jb 0x406244
mov ebx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xc4]
mov ecx, eax
test eax, eax
je 0x406196
xor ecx, ecx
cmp esi, edi
sete cl
mov edx, dword [ebp - 0xc0]
mov eax, edx
cmp edx, 1
cmove eax, esi
push eax
push dword [ebp - 0x90]
push dword [ebp - 0x98]
push ecx
push dword [ebp - 0xac]
push dword [ebp - 0xc8]
push dword [ebp - 0xd0]
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push dword [ebp - 0xa4]
push dword [ebp - 0x94]
push dword [ebp - 0x88]
push dword [ebp - 0xbc]
push dword [ebp - 0xb4]
push dword [ebp - 0x9c]
push ebx
push dword [ebp - 0xa0]
push dword [ebp - 0xcc]
call fcn.00404590
add esp, 0x48
cmp eax, 0x34
je 0x406213
cmp eax, 0x3a
jne 0x40622e
mov ecx, dword [ebp - 0xb4]
xorps xmm0, xmm0
inc esi
movq qword [ecx], xmm0
movq qword [ecx + 8], xmm0
cmp esi, edi
jbe 0x406183
mov ebx, dword [ebp - 0xe0]
test eax, eax
jne 0x4062b2
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0xb8], eax
cmp eax, ecx
jbe 0x406170
mov esi, dword [ebp - 0xa0]
push str.CompressLocalDatabase
push dword [ebp - 0x90]
call sub.libav.dll_Ordinal_44283
mov eax, dword [eax + 0x18]
mov edi, dword [ebp - 0xcc]
push eax
push ebx
push edi
push esi
call fcn.004024d0
add esp, 0x18
cmp eax, 0xffffffff
jne 0x4063be
push esi
call sub.libav.dll_Ordinal_44210
push esi
mov esi, dword [sym.imp.MSVCR110.dll_free]
call esi
push ebx
call esi
add esp, 0xc
mov eax, 0x46
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xcc]
mov ecx, str.daily
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4062e0
test dl, dl
je 0x4062dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4062e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4062c0
xor ecx, ecx
jmp 0x4062e5
sbb ecx, ecx
or ecx, 1
mov eax, dword [0x4131cc]
mov esi, dword [ebp - 0xa0]
test ecx, ecx
mov ecx, 1
cmove eax, ecx
push esi
mov dword [0x4131cc], eax
call sub.libav.dll_Ordinal_44210
mov edi, dword [sym.imp.MSVCR110.dll_free]
push esi
call edi
mov esi, dword [ebp - 0xac]
push 2
push esi
call fcn.00407240
push dword [ebp - 0xc0]
lea eax, [ebp - 0x64]
push dword [ebp - 0x90]
push dword [ebp - 0x98]
push dword [ebp - 0xc4]
push esi
push dword [ebp - 0xc8]
push dword [ebp - 0xd0]
push dword [ebp - 0x8c]
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push dword [ebp - 0xa4]
push dword [ebp - 0x94]
push dword [ebp - 0x88]
push dword [ebp - 0xbc]
push dword [ebp - 0xb4]
push dword [ebp - 0x9c]
push ebx
push eax
call fcn.00403a90
mov esi, eax
add esp, 0x58
test esi, esi
je 0x4063a3
push ebx
call edi
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xcc]
lea eax, [ebp - 0x24]
push str._s.cvd
push 0x20
push eax
call sub.libav.dll_Ordinal_44276
add esp, 0x10
jmp 0x4063e1
push edi
push str._s.cld
lea eax, [ebp - 0x24]
push 0x20
push eax
call sub.libav.dll_Ordinal_44276
push esi
call sub.libav.dll_Ordinal_44210
mov edi, dword [sym.imp.MSVCR110.dll_free]
push esi
call edi
add esp, 0x18
push ebx
call sub.libav.dll_Ordinal_3
mov esi, eax
add esp, 4
mov dword [ebp - 0xa0], esi
test esi, esi
jne 0x406417
push ebx
call dword [sym.imp.MSVCR110.dll__unlink]
push ebx
call edi
add esp, 8
lea eax, [esi + 0x37]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
push str.TestDatabases
push dword [ebp - 0x90]
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4065b0
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406440
sub ecx, edx
cmp ecx, 4
jbe 0x4065b0
push ebx
call dword [sym.imp.MSVCR110.dll__strdup]
mov edi, eax
add esp, 4
test edi, edi
jne 0x40648d
push ebx
call dword [sym.imp.MSVCR110.dll__unlink]
push ebx
call dword [sym.imp.MSVCR110.dll_free]
push esi
call sub.libav.dll_Ordinal_2
add esp, 0xc
lea eax, [edi + 0x37]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406492
sub ecx, edx
mov byte [ecx + edi - 4], 0x2e
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4064a5
sub ecx, edx
mov esi, edi
mov byte [ecx + edi - 3], 0x63
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4064b8
lea eax, [ebp - 0x24]
push str..cld
push eax
sub esi, ecx
call dword [sym.imp.MSVCR110.dll_strstr]
add esp, 8
neg eax
sbb al, al
and al, 0xf6
mov ecx, edi
add al, 0x76
mov byte [esi + edi - 2], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4064e4
sub ecx, edx
push edi
push ebx
mov byte [ecx + edi - 1], 0x64
call dword [sym.imp.MSVCR110.dll_rename]
add esp, 8
push ebx
cmp eax, 0xffffffff
jne 0x406539
call dword [sym.imp.MSVCR110.dll__unlink]
push ebx
mov ebx, dword [sym.imp.MSVCR110.dll_free]
call ebx
push edi
call ebx
push dword [ebp - 0xa0]
call sub.libav.dll_Ordinal_2
add esp, 0x10
mov eax, 0x39
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.MSVCR110.dll_free]
call esi
push str.Bytecode
push dword [ebp - 0x90]
mov ebx, edi
mov dword [0x413004], 0
call sub.libav.dll_Ordinal_44283
mov eax, dword [eax + 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.00405160
add esp, 0x18
test eax, eax
je 0x4065a0
push edi
call dword [sym.imp.MSVCR110.dll__unlink]
push edi
call esi
push dword [ebp - 0xa0]
call sub.libav.dll_Ordinal_2
add esp, 0xc
mov eax, 0x37
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xa0]
mov dword [0x413004], 1
lea eax, [ebp - 0x24]
push 4
push eax
call sub.libav.dll_Ordinal_44340
mov edi, dword [sym.imp.MSVCR110.dll__unlink]
add esp, 8
test eax, eax
jne 0x4065fe
lea eax, [ebp - 0x24]
push eax
call edi
add esp, 4
test eax, eax
je 0x4065fe
push ebx
call edi
push ebx
call dword [sym.imp.MSVCR110.dll_free]
push esi
call sub.libav.dll_Ordinal_2
add esp, 0xc
mov eax, 0x35
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.MSVCR110.dll_rename]
add esp, 8
push ebx
cmp eax, 0xffffffff
jne 0x40663a
call edi
push ebx
call dword [sym.imp.MSVCR110.dll_free]
push esi
call sub.libav.dll_Ordinal_2
add esp, 0xc
mov eax, 0x39
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
cmp dword [ebp - 0xd4], 0
jne 0x406696
lea eax, [ebp - 0x44]
push 4
push eax
call sub.libav.dll_Ordinal_44340
add esp, 8
test eax, eax
jne 0x406696
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406684
test dl, dl
je 0x406680
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406684
add eax, 2
add ecx, 2
test dl, dl
jne 0x406664
xor eax, eax
jmp 0x406689
sbb eax, eax
or eax, 1
test eax, eax
je 0x406696
lea eax, [ebp - 0x44]
push eax
call edi
add esp, 4
mov ecx, dword [ebp - 0xd8]
mov eax, dword [esi + 8]
add dword [ecx], eax
push esi
call sub.libav.dll_Ordinal_2
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret