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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
mov eax, dword [esi]
push 1
call dword [eax + 4]
test eax, eax
je 0x10003e44
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x2468]
lea ecx, [esi + 0x2468]
cmp edx, 0xa
mov dword [esi + 0x26ac], eax
jb 0x10003a9d
push 0xa
pop edx
mov dword [esi + 0x26d0], eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x62ab8]
mov dword [ecx], edx
push eax
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
push ebx
mov ecx, esi
call fcn.10003982
test eax, eax
je 0x10003e44
cmp dword [esi + 0x5d100], 7
je 0x10003af1
cmp dword [esi + 0x26a8], ebx
lea edi, [esi + 0x26a8]
je 0x10003af1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x26ac]
cmp eax, dword [edi]
ja 0x10003d77
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
push 0xb
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call fcn.100038fb
cmp eax, 1
jbe 0x10003d8b
mov edi, 0x1f4
lea ecx, [ebp - 0x54]
push edi
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [ebp - 8], ecx
sub ecx, dword [ebp - 4]
cmp ecx, edi
jb 0x10003bff
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov eax, dword [esi + 0x26c4]
lea edi, [esi + 0x26b4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], ecx
push eax
mov ecx, edi
call fcn.10006cd9
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x10003b83
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
cmp ecx, 6
jbe 0x10003b83
push dword [esi + 0x26b8]
mov ecx, edi
call fcn.10006cea
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x10003bf3
mov ecx, dword [edi + 8]
sub ecx, eax
and ecx, 0xfffffff8
cmp ecx, 0x30
jne 0x10003bf3
xor ecx, ecx
xor edx, edx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x10003bce
mov ebx, dword [edi + 8]
sub ebx, eax
sar ebx, 3
cmp dword [ebp - 4], ebx
jae 0x10003bcc
mov eax, dword [esi + 0x26b8]
mov ebx, dword [ebp - 4]
add ecx, dword [eax + ebx*8 + 4]
add edx, dword [eax + ebx*8]
inc dword [ebp - 4]
lea eax, [eax + ebx*8]
xor ebx, ebx
jmp 0x10003b9e
xor ebx, ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ebx
fild qword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ebx
fild qword [ebp - 0x28]
fdivp st(1)
fmul qword [0x1000c640]
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x26b0], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x26c4], ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_time]
mov eax, dword [ebp - 0xc]
mov edx, dword [esi + 0x26b0]
sub eax, dword [esi + 0x62ab8]
cmp edx, ebx
pop ecx
mov dword [esi + 0x62abc], eax
je 0x10003c55
mov eax, dword [esi + 0x5d108]
mov ecx, dword [esi + 0x5d10c]
mov edi, eax
and edi, ecx
cmp edi, 0xffffffff
je 0x10003c55
sub eax, dword [esi + 0x5d118]
push ebx
push edx
sbb ecx, dword [esi + 0x5d11c]
push ecx
push eax
call fcn.1000b640
mov dword [esi + 0x62ac0], eax
jmp 0x10003c5b
mov dword [esi + 0x62ac0], ebx
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x10003de6
cmp eax, 0x102
jne 0x10003ca8
cmp dword [esi + 0x246c], 6
jne 0x10003ac6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esi + 0x26a4]
mov edx, eax
sub edx, dword [ecx]
cmp edx, 0x3e8
jbe 0x10003ac6
mov dword [ecx], eax
mov eax, dword [esi]
push ebx
push 6
mov ecx, esi
call dword [eax + 4]
jmp 0x10003abe
cmp eax, ebx
je 0x10003e0b
lea ebx, [eax - 1]
mov eax, dword [esi + 0x26e0]
mov edi, dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x26c8], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10003ce9
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x10], 0
mov edi, dword [edi + 0x28]
cmp edi, 0xa
ja case.default.0x10003cf1
jmp dword [edi*4 + 0x10003e49]
push ebx
mov ecx, esi
call fcn.10003e75
jmp 0x10003d68
push ebx
mov ecx, esi
call fcn.10003ef2
jmp 0x10003d68
push ebx
mov ecx, esi
call fcn.10003f94
jmp 0x10003d68
push ebx
mov ecx, esi
call fcn.1000407c
jmp 0x10003d68
push ebx
mov ecx, esi
call fcn.10004565
jmp 0x10003d68
push ebx
mov ecx, esi
call fcn.100045e3
jmp 0x10003d68
push ebx
mov ecx, esi
call fcn.1000468f
jmp 0x10003d68
push ebx
mov ecx, esi
call fcn.10004777
jmp 0x10003d68
push ebx
mov ecx, esi
call fcn.10004965
jmp 0x10003d68
push ebx
mov ecx, esi
call fcn.10004a96
jmp 0x10003d68
push ebx
mov ecx, esi
call fcn.10004c00
jmp 0x10003d68
xor eax, eax
test eax, eax
je 0x10003e2b
xor ebx, ebx
jmp 0x10003ac6
mov dword [esi + 0x5d100], 9
push str.Return_by_wait_timeout.
jmp 0x10003e23
cmp dword [esi + 0x26fc], ebx
je 0x10003dbf
mov edx, dword [esi + 0x5d11c]
lea eax, [esi + 0x5d118]
cmp edx, dword [esi + 0x5d10c]
lea ecx, [esi + 0x5d108]
ja 0x10003dbf
jb 0x10003db5
mov eax, dword [eax]
cmp eax, dword [ecx]
jae 0x10003dbf
mov dword [esi + 0x5d100], 8
push dword [esi + 0x5d10c]
push dword [esi + 0x5d108]
push dword [esi + 0x5d11c]
push dword [esi + 0x5d118]
push str.Return_by_all_thread_exit._ReceivedSize:_d__ContentLength:_d._n
call fcn.10002d4e
add esp, 0x14
jmp 0x10003e44
push dword [esi + 0x5d11c]
mov dword [esi + 0x5d100], 8
push dword [esi + 0x5d118]
push str.Return_by_wait_failed.ReceivedSize:_d_n
call fcn.10002d4e
add esp, 0xc
jmp 0x10003e44
cmp dword [esi + 0x5d100], 7
je 0x10003e1e
mov dword [esi + 0x5d100], 9
push str.Return_by_user_cancel.
call fcn.10002d4e
pop ecx
jmp 0x10003e44
push dword [ebp - 0x10]
push str.Return_by_function_failed.Error_eState:_d_n
call fcn.10002d4e
pop ecx
mov dword [esi + 0x5d100], 8
pop ecx
pop edi
pop esi
pop ebx
leave
ret