Function at 0x40a303
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and dword [ebp - 0x68], 0
and dword [ebp - 0x38], 0
and dword [ebp - 4], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x60], 0
and dword [ebp - 0x6c], 0
and dword [ebp - 0x64], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [ebp - 0x11], al
inc dword [ebp - 0x24]
cmp byte [ebp - 0x11], 0
jne 0x40a338
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0xb8]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0xff
jbe 0x40a377
push 0x100
push str._DatabaseCustomURL:_URL_must_be_shorter_than__lu_n
call fcn.0040f051
pop ecx
pop ecx
push 0x46
pop eax
jmp 0x40ab5b
push 7
push str.http:__
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x40a6d1
push 0x100
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR110.dll_strncpy]
add esp, 0xc
xor eax, eax
inc eax
imul eax, eax, 0xff
mov byte [ebp + eax - 0x210], 0
xor eax, eax
inc eax
imul eax, eax, 7
lea eax, [ebp + eax - 0x210]
mov dword [ebp - 0x54], eax
push 0x2f
push dword [ebp - 0x54]
call dword [sym.imp.MSVCR110.dll_strchr]
pop ecx
pop ecx
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x40a3f4
push str._DatabaseCustomURL:_Incorrect_URL_n
call fcn.0040f051
pop ecx
push 0x46
pop eax
jmp 0x40ab5b
mov eax, dword [ebp - 0x4c]
mov byte [eax], 0
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x210]
sub eax, ecx
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x34], eax
push 0x2f
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll_strrchr]
pop ecx
pop ecx
inc eax
mov dword [ebp - 8], eax
je 0x40a45b
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x2c]
mov al, byte [eax]
mov byte [ebp - 0xe], al
inc dword [ebp - 0x2c]
cmp byte [ebp - 0xe], 0
jne 0x40a432
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0xa4]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 4
jae 0x40a46e
push str.DatabaseCustomURL:_Incorrect_URL_n
call fcn.0040f051
pop ecx
push 0x46
pop eax
jmp 0x40ab5b
push str.HTTPProxyServer
push dword [ebp + 0x10]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x40a546
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
push 7
push str.http:__
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR110.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x40a4b6
mov eax, dword [ebp - 0x20]
add eax, 7
mov dword [ebp - 0x20], eax
push str.HTTPProxyUsername
push dword [ebp + 0x10]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x40a513
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x60], eax
push str.HTTPProxyPassword
push dword [ebp + 0x10]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x40a500
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x6c], eax
jmp 0x40a513
push str.HTTPProxyUsername_requires_HTTPProxyPassword_n
call fcn.0040f051
pop ecx
push 0x38
pop eax
jmp 0x40ab5b
push str.HTTPProxyPort
push dword [ebp + 0x10]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x40a537
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x68], eax
push dword [ebp - 0x20]
push str.Connecting_via__s_n
call fcn.0040f051
pop ecx
pop ecx
push str.HTTPUserAgent
push dword [ebp + 0x10]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x40a56a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x64], eax
push str.ConnectTimeout
push dword [ebp + 0x10]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x8c], eax
push str.ReceiveTimeout
push dword [ebp + 0x10]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xbc], eax
xor eax, eax
inc eax
imul eax, eax, 0
mov byte [ebp + eax - 0xe0], 0
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 8]
call sub.libav.dll_Ordinal_44339
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x40a5d9
push dword [ebp - 0xec]
push dword [ebp - 0xf0]
lea eax, [ebp - 0xe0]
push eax
call fcn.00406f5d
add esp, 0xc
push 0x419b80
call sub.libav.dll_Ordinal_44203
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
inc eax
imul eax, eax, 0
movsx eax, byte [ebp + eax - 0xe0]
test eax, eax
je 0x40a604
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x5c], eax
jmp 0x40a608
and dword [ebp - 0x5c], 0
push 1
push dword [ebp + 0x10]
push dword [ebp - 0x5c]
push 0
push dword [ebp + 0x18]
push 0
push dword [ebp - 0xbc]
push dword [ebp - 0x8c]
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
push dword [ebp - 0x60]
push dword [ebp - 0x68]
push dword [ebp - 0x20]
push dword [ebp + 0x14]
push 0
push dword [ebp - 0x54]
push dword [ebp - 4]
push dword [ebp - 0x34]
call fcn.00407fd6
add esp, 0x48
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 1
jne 0x40a67e
push dword [ebp - 8]
push str._s_is_up_to_date__version:_custom_database__n
call fcn.0040f051
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
xor eax, eax
inc eax
jmp 0x40ab5b
cmp dword [ebp - 0x50], 1
jle 0x40a6cc
cmp dword [ebp + 0x18], 0
je 0x40a693
mov dword [ebp - 0x70], 0x21
jmp 0x40a69a
mov dword [ebp - 0x70], 0x5e
push dword [ebp - 0x54]
push dword [ebp - 8]
push dword [ebp - 0x70]
push str._cCant_download__s_from__s_n
call fcn.0040f051
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
mov eax, dword [ebp - 0x50]
jmp 0x40ab5b
jmp 0x40a7e9
push 7
push str.file:__
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x40a7d6
xor eax, eax
inc eax
imul eax, eax, 7
add eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
push 0x5c
push dword [ebp - 0x34]
call dword [sym.imp.MSVCR110.dll_strrchr]
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40a754
mov eax, dword [ebp - 8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x44]
mov al, byte [eax]
mov byte [ebp - 0x10], al
inc dword [ebp - 0x44]
cmp byte [ebp - 0x10], 0
jne 0x40a731
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x94]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 5
jae 0x40a767
push str.DatabaseCustomURL:_Incorrect_URL_n
call fcn.0040f051
pop ecx
push 0x46
pop eax
jmp 0x40ab5b
push 0x419b80
call sub.libav.dll_Ordinal_44203
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a783
push 0x46
pop eax
jmp 0x40ab5b
push dword [ebp - 8]
push str.Downloading__s____0____r
call fcn.0040f051
pop ecx
pop ecx
push dword [ebp - 4]
push dword [ebp - 0x34]
call sub.libav.dll_Ordinal_44268
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x40a7c5
push dword [ebp - 0x34]
push str.DatabaseCustomURL:_Cant_copy_file__s_into_database_directory_n
call fcn.0040f051
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push 0x46
pop eax
jmp 0x40ab5b
push dword [ebp - 8]
push str.Downloading__s__100____n
call fcn.0040f051
pop ecx
pop ecx
jmp 0x40a7e9
push str._DatabaseCustomURL:_Not_supported_protocol_n
call fcn.0040f051
pop ecx
push 0x46
pop eax
jmp 0x40ab5b
push str.TestDatabases
push dword [ebp + 0x10]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
cmp dword [eax + 0x18], 0
je 0x40aa21
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x40]
mov al, byte [eax]
mov byte [ebp - 0x12], al
inc dword [ebp - 0x40]
cmp byte [ebp - 0x12], 0
jne 0x40a812
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x9c]
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 4
jbe 0x40aa21
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x3c]
mov al, byte [eax]
mov byte [ebp - 0xf], al
inc dword [ebp - 0x3c]
cmp byte [ebp - 0xf], 0
jne 0x40a84c
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x78]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x48]
mov al, byte [eax]
mov byte [ebp - 0x13], al
inc dword [ebp - 0x48]
cmp byte [ebp - 0x13], 0
jne 0x40a876
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x80]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x90]
lea eax, [ecx + eax + 1]
push eax
call dword [sym.imp.MSVCR110.dll_malloc]
pop ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40a8d0
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push 0x37
pop eax
jmp 0x40ab5b
push dword [ebp - 8]
push dword [ebp - 4]
push str._s_s
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR110.dll_sprintf]
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x28]
mov al, byte [eax]
mov byte [ebp - 0xd], al
inc dword [ebp - 0x28]
cmp byte [ebp - 0xd], 0
jne 0x40a8f7
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x98]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x30]
mov al, byte [eax]
mov byte [ebp - 0x19], al
inc dword [ebp - 0x30]
cmp byte [ebp - 0x19], 0
jne 0x40a927
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0xa0]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xa8]
add eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], 0
push dword [ebp - 0x18]
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_rename]
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x40a9b5
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
call sub.libav.dll_Ordinal_44341
pop ecx
push eax
push dword [ebp - 0x18]
push dword [ebp - 4]
push str._Cant_rename__s_to__s:__s_n
call fcn.0040f051
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push 0x39
pop eax
jmp 0x40ab5b
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
and dword [0x419004], 0
push str.Bytecode
push dword [ebp + 0x10]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
push dword [eax + 0x18]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00409337
add esp, 0xc
test eax, eax
je 0x40aa17
push str._Failed_to_load_new_database_n
call fcn.0040f051
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push 0x37
pop eax
jmp 0x40ab5b
mov dword [0x419004], 1
push 4
push dword [ebp - 8]
call sub.libav.dll_Ordinal_44340
pop ecx
pop ecx
test eax, eax
jne 0x40aa6a
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
test eax, eax
je 0x40aa6a
push dword [ebp - 8]
push str._Cant_unlink__s._Please_fix_the_problem_manually_and_try_again._n
call fcn.0040f051
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push 0x35
pop eax
jmp 0x40ab5b
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_rename]
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x40aabb
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
call sub.libav.dll_Ordinal_44341
pop ecx
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push str._Cant_rename__s_to__s:__s_n
call fcn.0040f051
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push 0x39
pop eax
jmp 0x40ab5b
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push str..cld
push dword [ebp - 8]
call sub.libav.dll_Ordinal_44258
pop ecx
pop ecx
test eax, eax
jne 0x40aaeb
push str..cvd
push dword [ebp - 8]
call sub.libav.dll_Ordinal_44258
pop ecx
pop ecx
test eax, eax
je 0x40ab11
push dword [ebp - 8]
call sub.libav.dll_Ordinal_3
pop ecx
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x40ab0f
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x58]
call sub.libav.dll_Ordinal_2
pop ecx
jmp 0x40ab39
push str..cbc
push dword [ebp - 8]
call sub.libav.dll_Ordinal_44258
pop ecx
pop ecx
test eax, eax
je 0x40ab2d
mov dword [ebp - 0x38], 1
jmp 0x40ab39
push dword [ebp - 8]
call fcn.0040ec9f
pop ecx
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
push dword [ebp - 8]
push str._s_updated__version:_custom_database__sigs:__u__n
call fcn.0040f051
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
leave
ret