Function at 0x405990
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 0x405a9f
push esi
call fcn.00405170
add esp, 4
mov edi, eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00403100
mov esi, eax
add esp, 8
test esi, esi
jne 0x405b03
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], 1
mov ecx, str.daily
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405ae7
test dl, dl
je 0x405ae3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405ae7
add eax, 2
add ecx, 2
test dl, dl
jne 0x405ac7
xor eax, eax
jmp 0x405aec
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp + 0x30]
jne 0x405b7e
mov dword [0x4131cc], 1
jmp 0x405b7e
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0xac]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x405b7e
test ebx, ebx
je 0x405bcc
test edi, edi
jne 0x405b3f
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.0040a436
mov esp, ebp
pop ebp
ret
push 0x40e738
push edi
push ebx
call sub.libav.dll_Ordinal_44212
mov edi, eax
add esp, 0xc
test edi, edi
je 0x405b7b
push edi
call sub.libav.dll_Ordinal_44211
add esp, 4
test eax, eax
je 0x405b71
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 0x405bcc
test eax, eax
jne 0x405bcc
push 0x40e738
push 5
push ebx
call sub.libav.dll_Ordinal_44212
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x405bcc
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 0x405bcc
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 0x405c6c
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 0x405c11
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 0x405c4f
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 0x405d65
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 0x405c6c
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 0x405c89
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 0x405ec7
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x405e96
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 0x405dd5
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.00404870
add esp, 0x44
test eax, eax
je 0x405d88
mov edi, 1
jmp 0x405e26
test esi, esi
je 0x405d72
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.0040a436
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 0x405e0e
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.00404870
add esp, 0x44
xor edi, edi
cmp dword [ebp - 0xb8], 0
jne 0x405e59
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.0040a436
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x405e7c
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.0040a436
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 0x405e98
xor edi, edi
cmp dword [esi + 4], eax
jb 0x405ec9
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.0040a436
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
je 0x405edf
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 0x406082
cmp dword [ebp - 0xd4], 0
je 0x40605f
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 0x405fc3
test edi, edi
mov edi, dword [ebp - 0xb4]
je 0x405fc9
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.004039f0
add esp, 0x48
test eax, eax
jne 0x405fc9
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 0x406341
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.004039f0
mov esi, eax
add esp, 0x48
test esi, esi
je 0x405f9f
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.0040a436
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 0x406098
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.0040a436
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 0x4061b9
lea esp, [esp]
mov esi, 1
cmp edi, esi
jb 0x4061a4
mov ebx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xc4]
mov ecx, eax
test eax, eax
je 0x4060f6
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.004044f0
add esp, 0x48
cmp eax, 0x34
je 0x406173
cmp eax, 0x3a
jne 0x40618e
mov ecx, dword [ebp - 0xb4]
xorps xmm0, xmm0
inc esi
movq qword [ecx], xmm0
movq qword [ecx + 8], xmm0
cmp esi, edi
jbe 0x4060e3
mov ebx, dword [ebp - 0xe0]
test eax, eax
jne 0x406212
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0xb8], eax
cmp eax, ecx
jbe 0x4060d0
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.00402430
add esp, 0x18
cmp eax, 0xffffffff
jne 0x40631e
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.0040a436
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 0x406240
test dl, dl
je 0x40623c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406240
add eax, 2
add ecx, 2
test dl, dl
jne 0x406220
xor ecx, ecx
jmp 0x406245
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.004071a0
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.004039f0
mov esi, eax
add esp, 0x58
test esi, esi
je 0x406303
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.0040a436
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 0x406341
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 0x406377
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.0040a436
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 0x406510
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4063a0
sub ecx, edx
cmp ecx, 4
jbe 0x406510
push ebx
call dword [sym.imp.MSVCR110.dll__strdup]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4063ed
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.0040a436
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4063f2
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 0x406405
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 0x406418
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 0x406444
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 0x406499
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.0040a436
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.004050c0
add esp, 0x18
test eax, eax
je 0x406500
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.0040a436
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 0x40655e
lea eax, [ebp - 0x24]
push eax
call edi
add esp, 4
test eax, eax
je 0x40655e
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.0040a436
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 0x40659a
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.0040a436
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
cmp dword [ebp - 0xd4], 0
jne 0x4065f6
lea eax, [ebp - 0x44]
push 4
push eax
call sub.libav.dll_Ordinal_44340
add esp, 8
test eax, eax
jne 0x4065f6
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4065e4
test dl, dl
je 0x4065e0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4065e4
add eax, 2
add ecx, 2
test dl, dl
jne 0x4065c4
xor eax, eax
jmp 0x4065e9
sbb eax, eax
or eax, 1
test eax, eax
je 0x4065f6
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.0040a436
mov esp, ebp
pop ebp
ret