Function at 0x416d50
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [ebp - 0x11], al
add dword [ebp - 0x24], 1
cmp byte [ebp - 0x11], 0
jne 0x416d9c
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x7c], ecx
cmp dword [ebp - 0x7c], 0xff
jbe 0x416ddf
push 0x100
push str._DatabaseCustomURL:_URL_must_be_shorter_than__lu_n
call fcn.00421c90
add esp, 8
mov eax, 0x46
jmp 0x4176af
push 7
push str.http:__
mov edx, dword [ebp + 8]
push edx
call fcn.004132b0
add esp, 0xc
test eax, eax
jne 0x417193
push 0x100
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00403e70
add esp, 0xc
mov edx, 1
imul edx, edx, 0xff
mov byte [ebp + edx - 0x210], 0
mov eax, 1
imul eax, eax, 7
lea ecx, [ebp + eax - 0x210]
mov dword [ebp - 0x54], ecx
push 0x2f
mov edx, dword [ebp - 0x54]
push edx
call fcn.00403b30
add esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x416e65
push str._DatabaseCustomURL:_Incorrect_URL_n
call fcn.00421c90
add esp, 4
mov eax, 0x46
jmp 0x4176af
mov eax, dword [ebp - 0x4c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x210]
sub ecx, edx
mov eax, dword [ebp + 8]
lea ecx, [eax + ecx + 1]
mov dword [ebp - 0x34], ecx
push 0x2f
mov edx, dword [ebp + 8]
push edx
call fcn.00402cb0
add esp, 8
add eax, 1
mov dword [ebp - 8], eax
je 0x416ed2
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0x2c]
mov al, byte [edx]
mov byte [ebp - 0xe], al
add dword [ebp - 0x2c], 1
cmp byte [ebp - 0xe], 0
jne 0x416ea8
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x84], ecx
cmp dword [ebp - 0x84], 4
jae 0x416ee9
push str.DatabaseCustomURL:_Incorrect_URL_n
call fcn.00421c90
add esp, 4
mov eax, 0x46
jmp 0x4176af
push str.HTTPProxyServer
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x416fd3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x20], edx
push 7
push str.http:__
mov eax, dword [ebp - 0x20]
push eax
call fcn.004132b0
add esp, 0xc
test eax, eax
jne 0x416f34
mov ecx, dword [ebp - 0x20]
add ecx, 7
mov dword [ebp - 0x20], ecx
push str.HTTPProxyUsername
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x416f9b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x60], edx
push str.HTTPProxyPassword
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x18], 0
je 0x416f84
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x6c], eax
jmp 0x416f9b
push str.HTTPProxyUsername_requires_HTTPProxyPassword_n
call fcn.00421c90
add esp, 4
mov eax, 0x38
jmp 0x4176af
push str.HTTPProxyPort
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x18], 0
je 0x416fc2
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x20]
push edx
push str.Connecting_via__s_n
call fcn.00421c90
add esp, 8
push str.HTTPUserAgent
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x18], 0
je 0x416ffa
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x64], eax
push str.ConnectTimeout
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x8c], edx
push str.ReceiveTimeout
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xbc], ecx
mov edx, 1
imul edx, edx, 0
mov byte [ebp + edx - 0xe0], 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.libav.dll_Ordinal_44339]
add esp, 8
cmp eax, 0xffffffff
je 0x417076
mov edx, dword [ebp - 0xec]
push edx
mov eax, dword [ebp - 0xf0]
push eax
lea ecx, [ebp - 0xe0]
push ecx
call fcn.0041aff0
add esp, 0xc
push 0x4354a0
call dword [sym.imp.libav.dll_Ordinal_44203]
add esp, 4
mov dword [ebp - 4], eax
mov edx, 1
imul edx, edx, 0
movsx eax, byte [ebp + edx - 0xe0]
test eax, eax
je 0x4170a6
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x5c], ecx
jmp 0x4170ad
mov dword [ebp - 0x5c], 0
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x5c]
push eax
push 0
mov ecx, dword [ebp + 0x18]
push ecx
push 0
mov edx, dword [ebp - 0xbc]
push edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00419cf0
add esp, 0x48
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 1
jne 0x417139
mov ecx, dword [ebp - 8]
push ecx
push str._s_is_up_to_date__version:_custom_database__n
call fcn.00421c90
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.0041396b
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.00402297
add esp, 4
mov eax, 1
jmp 0x4176af
cmp dword [ebp - 0x50], 1
jle 0x41718e
cmp dword [ebp + 0x18], 0
je 0x41714e
mov dword [ebp - 0x70], 0x21
jmp 0x417155
mov dword [ebp - 0x70], 0x5e
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x70]
push eax
push str._cCant_download__s_from__s_n
call fcn.00421c90
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.0041396b
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.00402297
add esp, 4
mov eax, dword [ebp - 0x50]
jmp 0x4176af
jmp 0x4172ce
push 7
push str.file:__
mov eax, dword [ebp + 8]
push eax
call fcn.004132b0
add esp, 0xc
test eax, eax
jne 0x4172b7
mov ecx, 1
imul ecx, ecx, 7
add ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
push 0x5c
mov edx, dword [ebp - 0x34]
push edx
call fcn.00402cb0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41721e
mov eax, dword [ebp - 8]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x44]
mov dl, byte [ecx]
mov byte [ebp - 0x10], dl
add dword [ebp - 0x44], 1
cmp byte [ebp - 0x10], 0
jne 0x4171fa
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x94]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 5
jae 0x417235
push str.DatabaseCustomURL:_Incorrect_URL_n
call fcn.00421c90
add esp, 4
mov eax, 0x46
jmp 0x4176af
push 0x4354a0
call dword [sym.imp.libav.dll_Ordinal_44203]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x417256
mov eax, 0x46
jmp 0x4176af
mov ecx, dword [ebp - 8]
push ecx
push str.Downloading__s____0____r
call fcn.00421c90
add esp, 8
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.libav.dll_Ordinal_44268]
add esp, 8
cmp eax, 0xffffffff
jne 0x4172a4
mov ecx, dword [ebp - 0x34]
push ecx
push str.DatabaseCustomURL:_Cant_copy_file__s_into_database_directory_n
call fcn.00421c90
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.00402297
add esp, 4
mov eax, 0x46
jmp 0x4176af
mov eax, dword [ebp - 8]
push eax
push str.Downloading__s__100____n
call fcn.00421c90
add esp, 8
jmp 0x4172ce
push str._DatabaseCustomURL:_Not_supported_protocol_n
call fcn.00421c90
add esp, 4
mov eax, 0x46
jmp 0x4176af
push str.TestDatabases
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
cmp dword [eax + 0x18], 0
je 0x417543
mov edx, dword [ebp - 4]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x40]
mov dl, byte [ecx]
mov byte [ebp - 0x12], dl
add dword [ebp - 0x40], 1
cmp byte [ebp - 0x12], 0
jne 0x4172fc
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x9c]
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 4
jbe 0x417543
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x3c]
mov cl, byte [eax]
mov byte [ebp - 0xf], cl
add dword [ebp - 0x3c], 1
cmp byte [ebp - 0xf], 0
jne 0x417339
mov edx, dword [ebp - 0x3c]
sub edx, dword [ebp - 0x78]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x48]
mov al, byte [edx]
mov byte [ebp - 0x13], al
add dword [ebp - 0x48], 1
cmp byte [ebp - 0x13], 0
jne 0x417366
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x80]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x90]
lea ecx, [eax + edx + 1]
push ecx
call fcn.0040382c
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4173c8
mov edx, dword [ebp - 4]
push edx
call fcn.0041396b
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.00402297
add esp, 4
mov eax, 0x37
jmp 0x4176af
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push str._s_s
mov eax, dword [ebp - 0x18]
push eax
call fcn.00402215
add esp, 0x10
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x28]
mov cl, byte [eax]
mov byte [ebp - 0xd], cl
add dword [ebp - 0x28], 1
cmp byte [ebp - 0xd], 0
jne 0x4173f3
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x98]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0x30]
mov al, byte [edx]
mov byte [ebp - 0x19], al
add dword [ebp - 0x30], 1
cmp byte [ebp - 0x19], 0
jne 0x417426
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xa8]
add edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x18]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004031ed
add esp, 8
cmp eax, 0xffffffff
jne 0x4174c4
call fcn.00401cb1
mov eax, dword [eax]
push eax
call dword [sym.imp.libav.dll_Ordinal_44341]
add esp, 4
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
push str._Cant_rename__s_to__s:__s_n
call fcn.00421c90
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.0041396b
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402297
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call fcn.00402297
add esp, 4
mov eax, 0x39
jmp 0x4176af
mov eax, dword [ebp - 4]
push eax
call fcn.00402297
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
mov dword [0x432ff0], 0
push str.Bytecode
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 8
mov eax, dword [eax + 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00418830
add esp, 0xc
test eax, eax
je 0x417539
push str._Failed_to_load_new_database_n
call fcn.00421c90
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.0041396b
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402297
add esp, 4
mov eax, 0x37
jmp 0x4176af
mov dword [0x432ff0], 1
push 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.libav.dll_Ordinal_44340]
add esp, 8
test eax, eax
jne 0x417599
mov eax, dword [ebp - 8]
push eax
call fcn.0041396b
add esp, 4
test eax, eax
je 0x417599
mov ecx, dword [ebp - 8]
push ecx
push str._Cant_unlink__s._Please_fix_the_problem_manually_and_try_again._n
call fcn.00421c90
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.0041396b
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.00402297
add esp, 4
mov eax, 0x35
jmp 0x4176af
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004031ed
add esp, 8
cmp eax, 0xffffffff
jne 0x4175f7
call fcn.00401cb1
mov eax, dword [eax]
push eax
call dword [sym.imp.libav.dll_Ordinal_44341]
add esp, 4
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push str._Cant_rename__s_to__s:__s_n
call fcn.00421c90
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.0041396b
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402297
add esp, 4
mov eax, 0x39
jmp 0x4176af
mov edx, dword [ebp - 4]
push edx
call fcn.00402297
add esp, 4
push str..cld
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.libav.dll_Ordinal_44258]
add esp, 8
test eax, eax
jne 0x41762f
push str..cvd
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.libav.dll_Ordinal_44258]
add esp, 8
test eax, eax
je 0x41765d
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.libav.dll_Ordinal_3]
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x41765b
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.libav.dll_Ordinal_2]
add esp, 4
jmp 0x41768b
push str..cbc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.libav.dll_Ordinal_44258]
add esp, 8
test eax, eax
je 0x41767c
mov dword [ebp - 0x38], 1
jmp 0x41768b
mov ecx, dword [ebp - 8]
push ecx
call fcn.004214b0
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 8]
push eax
push str._s_updated__version:_custom_database__sigs:__u__n
call fcn.00421c90
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, dword [ebp - 0x38]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
xor eax, eax
mov esp, ebp
pop ebp
ret