Function at 0x40422e
Capabilities:
Move file
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xe8]
or dword [esp], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x104]
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x110]
push ebp
push esi
mov esi, dword [esp + 0xfc]
mov dword [esp + 0x38], eax
xor eax, eax
mov ebx, edx
mov ebp, ecx
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.libav.dll_Ordinal_20]
push str..clamav.net
push ebx
call dword [sym.imp.libav.dll_Ordinal_44258]
mov ebx, dword [sym.imp.libav.dll_Ordinal_44276]
push ebp
push str._s.cvd
lea eax, [esp + 0xbc]
push 0x20
push eax
call ebx
push ebp
push str._s.cld
lea eax, [esp + 0xec]
push 0x20
push eax
call ebx
add esp, 0x28
lea edx, [esp + 0x8c]
mov ecx, ebp
call fcn.00403a64
xor ebx, ebx
mov edi, eax
inc ebx
test edi, edi
jne 0x40433f
push 6
push str.daily
push ebp
mov dword [esp + 0x68], ebx
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x404349
mov dword [0x4104fc], ebx
jmp 0x404349
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 0xc]
mov dword [ecx + 0x1c], eax
mov ebp, dword [sym.imp.libav.dll_Ordinal_44283]
push str.HTTPProxyServer
push esi
call ebp
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
je 0x4043c9
mov eax, dword [eax + 8]
push 7
push str.http:__
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCR110.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x404380
add dword [esp + 0x14], 7
push str.HTTPProxyUsername
push esi
call ebp
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
je 0x4043b2
mov eax, dword [eax + 8]
push str.HTTPProxyPassword
push esi
mov dword [esp + 0x2c], eax
call ebp
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
je 0x40447d
mov eax, dword [eax + 8]
mov dword [esp + 0x28], eax
push str.HTTPProxyPort
push esi
call ebp
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
je 0x4043c9
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], eax
push str.HTTPUserAgent
push esi
call ebp
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
je 0x4043e0
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], eax
push str.ConnectTimeout
push esi
call ebp
mov eax, dword [eax + 0x10]
push str.ReceiveTimeout
push esi
mov dword [esp + 0x5c], eax
call ebp
mov eax, dword [eax + 0x10]
add esp, 0x10
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x44], eax
jne 0x404529
push str.PrivateMirror
push esi
call ebp
pop ecx
pop ecx
push dword [esp + 0x3c]
xor ecx, ecx
cmp dword [eax + 0x18], ecx
push ecx
push dword [esp + 0x3c]
lea edx, [esp + 0x98]
push dword [esp + 0x3c]
lea eax, [esp + 0x20]
push dword [esp + 0x54]
je 0x4044c3
mov esi, dword [esp + 0x60]
mov ebp, dword [esp + 0x28]
push esi
push eax
push dword [esp + 0x48]
lea ecx, [esp + 0xec]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x44]
push ebp
push dword [esp + 0x70]
push dword [esp + 0x4c]
push dword [esp + 0x70]
call fcn.00402751
add esp, 0x3c
test eax, eax
je 0x404491
mov dword [esp + 0x20], ebx
jmp 0x4044f7
test edi, edi
je 0x404489
push edi
call dword [sym.imp.libav.dll_Ordinal_2]
pop ecx
push 0x38
pop eax
jmp 0x404a94
push dword [esp + 0x3c]
lea eax, [esp + 0x14]
push 0
push dword [esp + 0x3c]
lea edx, [esp + 0x98]
push dword [esp + 0x3c]
push dword [esp + 0x54]
push esi
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x44]
push ebp
jmp 0x4044dc
push dword [esp + 0x60]
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x70]
lea ecx, [esp + 0xe0]
push dword [esp + 0x4c]
push dword [esp + 0x70]
call fcn.00402751
add esp, 0x3c
cmp dword [esp + 0x10], 0
je 0x404a81
test eax, eax
jne 0x40450e
push 0x3a
pop ebx
jmp 0x404a8a
mov ebp, dword [eax + 4]
mov esi, dword [sym.imp.libav.dll_Ordinal_2]
push eax
mov dword [esp + 0x4c], ebp
call esi
pop ecx
cmp dword [edi + 4], ebp
jb 0x40452f
jmp 0x404a81
mov esi, dword [sym.imp.libav.dll_Ordinal_2]
test edi, edi
je 0x40453e
mov eax, dword [edi + 4]
push edi
mov dword [esp + 0x54], eax
call esi
pop ecx
mov edi, dword [sym.imp.libav.dll_Ordinal_44203]
push 0x410580
call edi
mov esi, eax
pop ecx
mov dword [esp + 0x60], esi
test esi, esi
jne 0x40455d
push 0x4b
jmp 0x40448b
cmp dword [esp + 0x5c], 0
mov ebp, dword [sym.imp.MSVCR110.dll_free]
je 0x404645
push str.PrivateMirror
push dword [esp + 0x5c]
call dword [sym.imp.libav.dll_Ordinal_44283]
cmp dword [eax + 0x18], 0
mov edi, dword [esp + 0x20]
pop ecx
pop ecx
je 0x4045e1
cmp dword [esp + 0x20], 0
je 0x4045e1
push dword [esp + 0x3c]
mov edx, esi
push ecx
push 0
push dword [esp + 0x40]
lea ecx, [esp + 0xdc]
push dword [esp + 0x40]
push dword [esp + 0x58]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x48]
push dword [esp + 0x44]
push dword [esp + 0x74]
push edi
push dword [esp + 0x74]
call fcn.0040362a
add esp, 0x40
test eax, eax
je 0x404827
push dword [esp + 0x3c]
mov edx, esi
push ecx
push 0
push dword [esp + 0x40]
lea ecx, [esp + 0xbc]
push dword [esp + 0x40]
push dword [esp + 0x58]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x48]
push dword [esp + 0x44]
push dword [esp + 0x74]
push edi
push dword [esp + 0x74]
call fcn.0040362a
add esp, 0x40
mov dword [esp + 0x20], eax
test eax, eax
je 0x404827
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
jmp 0x404883
push 0x410580
call edi
mov edi, eax
pop ecx
mov dword [esp + 0x20], edi
test edi, edi
jne 0x40465e
push 0x4b
jmp 0x404882
push str.MaxAttempts
push dword [esp + 0x5c]
call dword [sym.imp.libav.dll_Ordinal_44283]
pop ecx
pop ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x48]
ja 0x40475a
mov edx, ebx
mov dword [esp + 0x64], edx
cmp ecx, ebx
jb 0x404747
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
mov ecx, edi
test edi, edi
je 0x4046b4
xor ecx, ecx
cmp edx, eax
sete cl
mov eax, dword [esp + 0x3c]
cmp eax, ebx
cmove eax, edx
push eax
push ecx
push 0
push ecx
push dword [esp + 0x40]
mov edi, dword [esp + 0x68]
push dword [esp + 0x58]
mov edx, ebp
push dword [esp + 0x64]
mov ecx, edi
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x44]
push esi
push dword [esp + 0x70]
push dword [esp + 0x4c]
push dword [esp + 0x70]
push dword [esp + 0x8c]
call fcn.00403881
mov ecx, eax
add esp, 0x40
cmp ecx, 0x34
je 0x40470e
cmp ecx, 0x3a
jne 0x404731
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
inc edx
mov dword [esp + 0x64], edx
cmp edx, eax
jbe 0x4046a3
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x60]
mov ebp, dword [sym.imp.MSVCR110.dll_free]
test ecx, ecx
jne 0x404797
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x48]
jbe 0x404689
mov edi, dword [esp + 0x20]
push str.CompressLocalDatabase
push dword [esp + 0x5c]
call dword [sym.imp.libav.dll_Ordinal_44283]
push dword [eax + 0x18]
mov edx, dword [esp + 0x60]
push esi
mov ecx, edi
call fcn.00403b1e
add esp, 0x10
cmp eax, 0xffffffff
jne 0x404842
push edi
call dword [sym.imp.libav.dll_Ordinal_44210]
pop ecx
push edi
call ebp
pop ecx
push 0x46
jmp 0x404882
push 6
push str.daily
push edi
call sub.MSVCR110.dll_memcmp
mov ecx, dword [0x4104fc]
mov edi, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
cmove ecx, ebx
push edi
mov dword [0x4104fc], ecx
call dword [sym.imp.libav.dll_Ordinal_44210]
pop ecx
push edi
call ebp
mov edi, dword [esp + 0x34]
pop ecx
push 2
pop edx
mov ecx, edi
call fcn.00405a23
push dword [esp + 0x3c]
mov edx, esi
push ecx
push 0
push dword [esp + 0x40]
lea ecx, [esp + 0xbc]
push edi
push dword [esp + 0x58]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x48]
push dword [esp + 0x44]
push dword [esp + 0x74]
push dword [esp + 0x50]
push dword [esp + 0x74]
call fcn.0040362a
add esp, 0x40
test eax, eax
je 0x404827
mov edi, eax
jmp 0x404883
push dword [esp + 0x54]
lea eax, [esp + 0x70]
push str._s.cvd
push 0x20
push eax
call dword [sym.imp.libav.dll_Ordinal_44276]
add esp, 0x10
jmp 0x404866
push dword [esp + 0x54]
lea eax, [esp + 0x70]
push str._s.cld
push 0x20
push eax
call dword [sym.imp.libav.dll_Ordinal_44276]
push edi
call dword [sym.imp.libav.dll_Ordinal_44210]
add esp, 0x14
push edi
call ebp
pop ecx
push esi
call dword [sym.imp.libav.dll_Ordinal_3]
mov edi, eax
pop ecx
mov dword [esp + 0x10], edi
test edi, edi
jne 0x40488d
push esi
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push 0x37
pop edi
push esi
call ebp
mov eax, edi
jmp 0x404a93
push str.TestDatabases
push dword [esp + 0x5c]
call dword [sym.imp.libav.dll_Ordinal_44283]
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
je 0x4049c1
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4048ad
sub ecx, edx
cmp ecx, 4
jbe 0x4049c1
push esi
call dword [sym.imp.MSVCR110.dll__strdup]
mov edi, eax
pop ecx
test edi, edi
jne 0x4048e5
push esi
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push esi
call ebp
pop ecx
push 0x37
mov edi, dword [esp + 0x14]
pop ebx
jmp 0x404a8a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4048ea
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 0x4048fd
sub ecx, edx
mov byte [ecx + edi - 3], 0x63
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404910
lea eax, [esp + 0x6c]
sub ecx, edx
push str..cld
push eax
mov dword [esp + 0x68], ecx
call dword [sym.imp.MSVCR110.dll_strstr]
neg eax
sbb al, al
pop ecx
pop ecx
mov ecx, dword [esp + 0x60]
and al, 0xf6
add al, 0x76
mov byte [ecx + edi - 2], al
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404944
sub ecx, edx
push edi
push esi
mov byte [ecx + edi - 1], 0x64
call dword [sym.imp.MSVCR110.dll_rename]
pop ecx
pop ecx
push esi
cmp eax, 0xffffffff
jne 0x404978
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push esi
call ebp
pop ecx
push edi
call ebp
pop ecx
push 0x39
jmp 0x4048db
call ebp
and dword [0x410018], 0
mov dword [esp], str.Bytecode
push dword [esp + 0x5c]
mov esi, edi
call dword [sym.imp.libav.dll_Ordinal_44283]
push dword [eax + 0x18]
lea edx, [esp + 0x78]
mov ecx, edi
call fcn.0040405f
add esp, 0xc
test eax, eax
je 0x4049b7
push edi
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push edi
jmp 0x4048d6
mov edi, dword [esp + 0x10]
mov dword [0x410018], ebx
lea eax, [esp + 0x6c]
push 4
push eax
call dword [sym.imp.libav.dll_Ordinal_44340]
pop ecx
pop ecx
test eax, eax
jne 0x4049f7
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
test eax, eax
je 0x4049f7
push esi
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push esi
call ebp
pop ecx
push 0x35
jmp 0x404508
lea eax, [esp + 0x6c]
push eax
push esi
call dword [sym.imp.MSVCR110.dll_rename]
pop ecx
pop ecx
push esi
cmp eax, 0xffffffff
jne 0x404a1d
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push esi
call ebp
pop ecx
push 0x39
jmp 0x404508
call ebp
cmp dword [esp + 0x60], 0
pop ecx
jne 0x404a7f
lea eax, [esp + 0x8c]
push 4
push eax
call dword [sym.imp.libav.dll_Ordinal_44340]
pop ecx
pop ecx
test eax, eax
jne 0x404a7f
lea ecx, [esp + 0x8c]
lea eax, [esp + 0x6c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404a68
test dl, dl
je 0x404a64
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404a68
add eax, 2
add ecx, 2
test dl, dl
jne 0x404a48
xor eax, eax
jmp 0x404a6c
sbb eax, eax
or eax, ebx
test eax, eax
je 0x404a7f
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
xor ebx, ebx
mov eax, dword [esp + 0x68]
mov ecx, dword [edi + 8]
add dword [eax], ecx
push edi
call dword [sym.imp.libav.dll_Ordinal_2]
mov eax, ebx
pop ecx
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407bf7
add esp, 0xe4
ret