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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push dword [ebp + 0x1c]
mov esi, ecx
push dword [ebp + 0x18]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Download___channel:__d__file_id:__s__path:__s__timeout:__d__url:__s_n
call fcn.10001e74
xor ebx, ebx
add esp, 0x18
cmp dword [ebp + 8], ebx
jle 0x1000f20f
mov eax, dword [ebp + 0xc]
cmp byte [eax], bl
je 0x1000f20f
cmp edi, ebx
je 0x1000f20f
cmp byte [edi], bl
je 0x1000f20f
cmp dword [ebp + 0x14], ebx
jle 0x1000f20f
cmp dword [ebp + 0x18], ebx
jbe 0x1000f20f
push str.Loading_p2p_stack_dll_n
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
call fcn.10001e74
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
pop ecx
lea eax, [ebp - 8]
push eax
push 0x10010480
push 4
push ebx
push 0x10010490
call edi
test eax, eax
jge 0x1000eccd
push str.Exiting__error_loading_p2p_stack_n
jmp 0x1000f209
mov eax, dword [ebp - 8]
push str.Download_Manager
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jge 0x1000ecf8
push str.RegisterClient_failed_n
call fcn.10001e74
mov eax, dword [ebp - 8]
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1000f20f
lea eax, [ebp - 0x14]
push eax
push 0x100104a0
push 4
push ebx
push 0x100104b0
call edi
test eax, eax
jl 0x1000f204
cmp dword [ebp - 0x14], ebx
je 0x1000f204
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push ebx
push dword [ebp + 0xc]
mov ecx, dword [eax]
push dword [ebp + 8]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x1000f1fd
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x1000f1fd
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 0xc], 4
jne 0x1000eda7
mov eax, dword [ebp - 4]
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
jge 0x1000ed71
push str.GetLocalFileName_failed_n
jmp 0x1000f209
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
lea eax, [esi - 1]
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [edi + esi - 1], bl
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Exiting__file_was_cached_n
call fcn.10001e74
pop ecx
push 1
jmp 0x1000f211
mov eax, dword [ebp - 4]
push ebx
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x28]
test eax, eax
jge 0x1000edc5
push str.InitDownload_failed_n
jmp 0x1000f209
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push str.Starting_p2p_download_n
call fcn.10001e74
mov eax, dword [ebp - 4]
pop ecx
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov byte [esi + 8], bl
mov byte [esi + 9], bl
mov byte [esi + 0xa], bl
mov byte [esi + 0xb], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
mov dword [ebp + 0x1c], eax
mov dword [ebp - 0x18], ebx
fstp dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp + 8], ebx
cmp byte [esi + 8], 1
je 0x1000f0fb
cmp byte [esi + 9], 1
jne 0x1000ee45
cmp byte [esi + 0xb], bl
jne 0x1000ee45
mov eax, dword [ebp - 4]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push eax
push str.Paused__ret_d_n
call fcn.10001e74
pop ecx
mov byte [esi + 9], bl
pop ecx
mov byte [esi + 0xb], 1
jmp 0x1000ee6e
cmp byte [esi + 0xa], 1
jne 0x1000ee6e
cmp byte [esi + 0xb], 1
jne 0x1000ee6e
mov eax, dword [ebp - 4]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push eax
push str.Resumed__ret_d_n
call fcn.10001e74
pop ecx
mov byte [esi + 0xa], bl
pop ecx
mov byte [esi + 0xb], bl
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
jne 0x1000f11b
mov eax, dword [ebp - 0x1c]
sub eax, ebx
je 0x1000eecc
dec eax
je 0x1000eec5
dec eax
je 0x1000eebe
dec eax
je 0x1000eeb7
dec eax
je 0x1000eeb0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x100]
push str.system__d______n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x1000eedf
push str.system_transferring
jmp 0x1000eed1
push str.system_idle
jmp 0x1000eed1
push str.system_upgrading
jmp 0x1000eed1
push str.system_offline
jmp 0x1000eed1
push str.system_down
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x1000f128
mov eax, dword [ebp - 0xc]
cmp eax, 7
ja case.default.0x1000eefc
jmp dword [eax*4 + 0x1000f219]
xor edi, edi
push str.file_unknown
jmp 0x1000ef50
push 3
pop edi
push str.file_querying
jmp 0x1000ef50
push 4
pop edi
push str.file_downloading
jmp 0x1000ef50
push 5
pop edi
push str.file_paused
jmp 0x1000ef50
push 6
pop edi
push str.file_completed
jmp 0x1000ef50
push 7
pop edi
push str.file_blocked
jmp 0x1000ef50
push 7
pop edi
push str.file_failed
jmp 0x1000ef50
push 8
pop edi
push str.file_cancelled
lea eax, [ebp - 0x9c]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x1000ef78
push eax
lea eax, [ebp - 0x9c]
push str.file__d_____
push eax
xor edi, edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x100]
push eax
push str.Loop_Status:__s____s_n
call fcn.10001e74
add esp, 0xc
cmp dword [ebp + 0x1c], 0xffffffff
je 0x1000efc3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x18]
sub eax, dword [ebp + 0x1c]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jbe 0x1000efc3
cmp dword [ebp - 0xc], 2
je 0x1000efbf
cmp dword [ebp - 0xc], 3
jne 0x1000f135
or dword [ebp + 0x1c], 0xffffffff
mov eax, dword [ebp - 0xc]
cmp eax, 4
je 0x1000f14a
cmp eax, 6
je 0x1000f1bf
cmp eax, 5
je 0x1000f1bf
cmp edi, dword [esi + 0x10]
jne 0x1000effa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
jb 0x1000f0eb
cmp dword [esi], ebx
je 0x1000f0eb
mov dword [esi + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp edi, 4
mov dword [esi + 0xc], eax
je 0x1000f026
cmp edi, 5
je 0x1000f026
cmp edi, 6
je 0x1000f026
cmp edi, 7
jne 0x1000f0ba
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jne 0x1000f19c
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
jne 0x1000f1a6
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x1000f05c
mov dword [ebp + 8], ebx
jmp 0x1000f07f
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x38]
mov dword [ebp - 0x24], ebx
fidiv dword [ebp - 0x28]
fmul dword [0x100102f4]
call sub.MSVCRT.dll__ftol
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
jne 0x1000f1b0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
fild qword [ebp - 0x30]
fst dword [ebp + 0xc]
fcomp dword [0x100104c4]
fnstsw ax
sahf
jbe 0x1000f0ba
fld dword [ebp + 0xc]
fmul dword [0x100104c0]
fstp dword [ebp + 0xc]
push dword [esi + 4]
fld dword [ebp + 0xc]
push edi
push dword [ebp + 8]
push dword [ebp - 0x10]
push ecx
fstp dword [esp]
call dword [esi]
push ebx
push ebx
push dword [ebp + 8]
fld dword [ebp + 0xc]
push dword [ebp - 0x10]
push ecx
push ecx
fstp qword [esp]
push edi
push str.Sending_to_progress:_status:__d__rate:__.1f_KBps__bytes_done:__u___d___ETA:__02d:_02d_n
call fcn.10001e74
add esp, 0x20
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000ee0f
mov eax, dword [ebp - 4]
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push eax
push str.Canceled__ret_d_n
call fcn.10001e74
mov ebx, dword [ebp + 0xc]
pop ecx
pop ecx
jmp 0x1000f1de
push 3
pop ebx
push str.Exiting__error_calling_System::GetStatus_n
jmp 0x1000f1b8
push 3
pop ebx
push str.Exiting__error_calling_File::GetStatus_n
jmp 0x1000f1b8
mov eax, dword [ebp - 4]
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 5
pop ebx
push str.Exiting__error_calling_cancel_n
jmp 0x1000f1b8
mov eax, dword [ebp - 4]
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
jge 0x1000f170
push str.Exiting__error_from_GetLocalFileName_n
call fcn.10001e74
pop ecx
push 3
jmp 0x1000f211
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
lea eax, [esi - 1]
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [edi + esi - 1], bl
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
push str.Exiting_ok__file:__s_n
jmp 0x1000f1d7
push 3
pop ebx
push str.Exiting__error_calling_GetTotalSize_n
jmp 0x1000f1b8
push 3
pop ebx
push str.Exiting__error_calling_GetDownloadedSize_n
jmp 0x1000f1b8
push 3
pop ebx
push str.Exiting__error_calling_GetRate_n
call fcn.10001e74
jmp 0x1000f1dd
push 3
cmp eax, 6
pop ebx
mov eax, str.Failed
je 0x1000f1d1
mov eax, str.Blocked
push eax
push str.Exiting___s_n
call fcn.10001e74
pop ecx
pop ecx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
jmp 0x1000f212
push str.GetFileInterface_failed_n
jmp 0x1000f209
push str.Exiting__error_loading_ASM_n
call fcn.10001e74
pop ecx
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x18