Function at 0x4c8050
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x744df2
mov eax, dword fs:[0]
push eax
sub esp, 0x51c
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x24]
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4d4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x4e4], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x4d0], edx
mov dword [ebp - 0x4cc], eax
mov dword [ebp - 0x4e0], ebx
mov dword [ebp - 0x4d8], ecx
je 0x4c80cc
cmp byte [esi + 0xad], 0
jne 0x4c80cc
xor al, al
jmp 0x4c80d1
mov eax, 1
push eax
push str.downloadToFile
push esi
lea ecx, [ebp - 0x4f8]
call fcn.00474f30
xor eax, eax
lea ecx, [edi + 0x954]
mov dword [ebp - 4], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
call fcn.0040a400
mov ecx, dword [edi + 0x57c]
xor ebx, ebx
mov dword [edi + 0x950], ebx
cmp ecx, ebx
je 0x4c812a
push esi
push 1
call fcn.005446b0
test al, al
jne 0x4c8152
mov ecx, dword [edi + 0x57c]
add ecx, 0x7c
call fcn.00449240
mov dword [edi + 0x57c], ebx
mov edx, dword [esi]
mov eax, dword [str.Not_connected_to_an_FTP_server.__The_connection_was_previously_lost__or_it_was_never_established.]
mov edx, dword [edx + 0x14]
push eax
mov ecx, esi
call edx
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
xor al, al
jmp 0x4c8692
cmp byte [ebp + 0x10], bl
je 0x4c815f
cmp byte [esi + 0xad], bl
je 0x4c8176
mov ebx, dword [ebp - 0x4cc]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push ebx
push str.localFilePath
mov ecx, esi
call edx
jmp 0x4c817c
mov ebx, dword [ebp - 0x4cc]
push 0
push ebx
call fcn.00427ed0
add esp, 8
test al, al
je 0x4c823b
cmp byte [edi + 0x7b7], 0
je 0x4c821c
cmp byte [ebp + 0x10], 0
je 0x4c81ab
cmp byte [esi + 0xad], 0
je 0x4c81b9
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push str.Resuming_transfer_to_local_file
mov ecx, esi
call edx
lea eax, [ebp - 0x4c5]
push eax
push esi
push ebx
mov byte [ebp - 0x4c5], 0
call fcn.004296c0
add esp, 0xc
cmp byte [ebp - 0x4c5], 0
mov dword [edi + 0x168], eax
mov dword [edi + 0x16c], edx
jne 0x4c81fe
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_get_files_size_for_restart_position.
mov ecx, esi
call eax
xor eax, eax
mov byte [edi + 0x7b7], al
jmp 0x4c8244
cmp byte [ebp + 0x10], 0
je 0x4c820d
cmp byte [esi + 0xad], 0
je 0x4c8250
push eax
push str.RestartSize32
mov ecx, esi
call fcn.00474a80
jmp 0x4c8250
cmp byte [ebp + 0x10], 0
je 0x4c822b
cmp byte [esi + 0xad], 0
je 0x4c8250
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.Replacing_existing_local_file
mov ecx, esi
call eax
jmp 0x4c8250
mov byte [edi + 0x7b7], 0
xor eax, eax
mov dword [edi + 0x16c], eax
mov dword [edi + 0x168], eax
cmp byte [edi + 0x7b7], 0
mov byte [ebp - 0x4c7], 0
mov ebx, 1
je 0x4c8287
cmp byte [ebp + 0x10], 0
je 0x4c8274
cmp byte [esi + 0xad], 0
je 0x4c8282
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.Opening_local_file_for_append...
mov ecx, esi
call eax
mov ebx, 3
cmp byte [ebp + 0x14], 0
je 0x4c82d0
lea ecx, [ebp - 0x84]
call fcn.0040ac30
mov edx, dword [ebp - 0x4cc]
push esi
lea ecx, [ebp - 0x84]
push ecx
push edx
mov byte [ebp - 4], 1
call fcn.0048b970
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
test al, al
jne 0x4c82cb
call fcn.0040acf0
jmp 0x4c8139
call fcn.0040acf0
mov edx, dword [ebp - 0x4cc]
push esi
lea eax, [ebp - 0x4ec]
push eax
lea ecx, [ebp - 0x4c7]
push ecx
push ebx
push edx
lea ecx, [ebp - 0x224]
call fcn.004aacb0
cmp byte [ebp - 0x4c7], 0
mov byte [ebp - 4], 2
jne 0x4c832b
cmp dword [ebp - 0x4ec], 1
jne 0x4c8317
cmp byte [ebp + 0x10], 0
je 0x4c8317
mov eax, dword [ebp - 0x4d8]
mov byte [eax], 1
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0
call fcn.004ab360
jmp 0x4c8139
mov byte [ebp - 0x4c6], 0
mov dword [ebp - 0x4e8], 0
lea esp, [esp]
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [ebp - 0x4d8]
lea ecx, [ebp - 0x4c6]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp - 0x4d0]
push 0
push esi
mov ebx, eax
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x4e4]
push edx
mov edx, dword [ebp - 0x4d4]
push eax
push ecx
push edx
mov ecx, edi
call fcn.004c6d30
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0x4c5], al
je 0x4c8398
cmp byte [esi + 0xad], 0
je 0x4c83a5
push ebx
push str.downloadToOutput
mov ecx, esi
call fcn.00474590
cmp byte [ebp - 0x4c5], 0
mov eax, dword [ebp - 0x4d0]
mov ebx, dword [eax + 4]
jne 0x4c841e
cmp byte [ebp - 0x4c6], 0
je 0x4c841e
mov dword [ebp - 0x4dc], 0
lea ebx, [ebx]
push 0x32
call fcn.004213c0
add esp, 4
test ebx, ebx
je 0x4c83ea
push esi
mov ecx, ebx
call fcn.00487de0
test al, al
jne 0x4c841e
mov eax, dword [ebp - 0x4dc]
inc eax
mov dword [ebp - 0x4dc], eax
cmp eax, 0x64
jl 0x4c83d0
cmp dword [ebp - 0x4e8], 5
jge 0x4c841e
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
inc dword [ebp - 0x4e8]
push str.Retrying_because_problem_may_be_temporary.
mov ecx, esi
call eax
jmp 0x4c8340
mov eax, dword [ebp - 0x4e0]
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ebp - 0x208]
mov dword [eax], ecx
mov dword [eax + 4], edx
cmp byte [edi + 0x7a2], 0
jne 0x4c8469
cmp byte [ebp + 0x10], 0
je 0x4c844d
cmp byte [esi + 0xad], 0
je 0x4c8469
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push str.MDTM_is_not_supported_by_this_FTP_server.
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push str.Cannot_maintain_the_last_modified_date_time_automatically.
mov ecx, esi
call edx
cmp byte [ebp - 0x4c5], 0
je 0x4c85d9
cmp byte [edi + 0x7a2], 0
je 0x4c85d9
cmp byte [ebp + 0x10], 0
jne 0x4c85d9
lea ecx, [ebp - 0x84]
call fcn.0040ac30
mov eax, dword [ebp - 0x4d0]
mov edx, dword [ebp - 0x4d4]
push eax
push esi
lea ecx, [ebp - 0x84]
push ecx
push edx
push 0
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004c35f0
test al, al
je 0x4c85ca
lea ecx, [ebp - 0x518]
call fcn.00424860
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x4d8]
push ecx
lea edx, [ebp - 0x4dc]
push edx
lea eax, [ebp - 0x4d4]
push eax
lea ecx, [ebp - 0x4e4]
push ecx
lea edx, [ebp - 0x4e0]
push edx
push str._04d_02d_02d_02d_02d_02d
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 4
call fcn.00409d90
push eax
call fcn.00421b10
add esp, 0x20
cmp eax, 6
jne 0x4c85bb
movzx ecx, word [ebp - 0x4e4]
movzx eax, word [ebp - 0x4e0]
movzx edx, word [ebp - 0x4d4]
mov word [ebp - 0x50e], cx
movzx ecx, word [ebp - 0x4d8]
mov word [ebp - 0x510], ax
movzx eax, word [ebp - 0x4dc]
mov word [ebp - 0x50a], dx
movzx edx, word [ebp - 0x4d0]
mov word [ebp - 0x506], cx
lea ecx, [ebp - 0x528]
mov word [ebp - 0x508], ax
mov word [ebp - 0x504], dx
mov byte [ebp - 0x500], 0
call fcn.00424940
lea eax, [ebp - 0x528]
push eax
lea ecx, [ebp - 0x518]
call fcn.00424c80
push esi
lea ecx, [ebp - 0x528]
push ecx
lea ecx, [ebp - 0x224]
call fcn.004aaae0
test al, al
jne 0x4c85bb
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Unable_to_set_file_date_time
mov ecx, esi
call eax
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 3
call fcn.00424820
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.0040acf0
cmp byte [ebp + 0x30], 0
je 0x4c8609
cmp byte [ebp - 0x4c5], 0
jne 0x4c866b
lea ecx, [ebp - 0x224]
call fcn.004aaf20
mov ecx, dword [ebp - 0x4cc]
push esi
push ecx
call fcn.00429c60
add esp, 8
jmp 0x4c866b
cmp byte [ebp - 0x4c5], 0
jne 0x4c866b
lea ecx, [ebp - 0x224]
call fcn.004aaf20
lea ecx, [ebp - 0x4c4]
call fcn.004a3180
mov edi, dword [ebp - 0x4cc]
push 0
push edi
lea ecx, [ebp - 0x4c4]
mov byte [ebp - 4], 5
call fcn.004a36c0
test al, al
je 0x4c865c
mov edx, dword [ebp - 0x43c]
or edx, dword [ebp - 0x438]
jne 0x4c865c
push esi
push edi
call fcn.00429c60
add esp, 8
lea ecx, [ebp - 0x4c4]
mov byte [ebp - 4], 2
call fcn.004a3260
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0
call fcn.004ab360
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
mov al, byte [ebp - 0x4c5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret 0x2c