Function at 0x408d80
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70d291
mov eax, dword fs:[0]
push eax
sub esp, 0xc94
mov eax, dword [0x804580]
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
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc80], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc94], eax
mov eax, dword [esi + 0xa0]
test eax, eax
jne 0x408e8b
mov ecx, dword [esi + 0x78]
call ecx
mov dword [esi + 0xa0], eax
test eax, eax
je 0x408e84
push str.vmsBt_UserAgent
push eax
mov eax, dword [esi + 4]
call eax
push dword [esi + 0xa0]
mov eax, dword [esi + 8]
call eax
mov eax, dword [esi + 0xa0]
add esp, 0xc
test eax, eax
je 0x408e33
push eax
mov eax, dword [esi + 0x54]
call eax
add esp, 4
test eax, eax
jne 0x408e33
push dword [esi + 0xac]
mov eax, dword [esi + 0x5c]
push dword [esi + 0xa8]
push dword [esi + 0xa0]
call eax
add esp, 0xc
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x408e62
push eax
mov eax, dword [esi + 0x60]
call eax
push dword [esi + 0xa0]
mov eax, dword [esi + 0x64]
call eax
push dword [esi + 0xa0]
mov eax, dword [esi + 0x6c]
call eax
mov eax, dword [esi + 0xa0]
add esp, 0xc
push 0xffffffffffffffff
push eax
mov eax, dword [esi + 0xc]
call eax
mov eax, dword [esi + 0x10]
push 0xffffffffffffffff
push dword [esi + 0xa0]
call eax
mov eax, dword [esi + 0xa0]
add esp, 0x10
test eax, eax
jne 0x408e8b
xor al, al
jmp 0x409257
mov eax, dword [esi + 0x74]
call eax
mov dword [esi + 0xa4], eax
test eax, eax
je 0x408e84
mov ecx, edi
mov dword [ebp - 0xc18], 0
xor eax, eax
mov dword [ebp - 0xc14], 7
mov word [ebp - 0xc28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408ec0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0xc28]
call fcn.004050a0
lea eax, [ebp - 0xc28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc58]
push eax
call fcn.004417f1
add esp, 8
lea ecx, [ebp - 0xc28]
mov byte [ebp - 4], 2
call fcn.00402710
cmp dword [ebp - 0xc44], 0x10
lea eax, [ebp - 0xc58]
cmovae eax, dword [ebp - 0xc58]
push eax
push dword [esi + 0xa4]
mov eax, dword [esi]
call eax
add esp, 8
test eax, eax
jne 0x408f35
xor bl, bl
jmp 0x40924a
lea eax, [esi + 0xb0]
push eax
lea eax, [ebp - 0xc40]
push eax
call fcn.004417f1
cmp dword [ebp - 0xc2c], 0x10
lea eax, [ebp - 0xc40]
push 0
cmovae eax, dword [ebp - 0xc40]
push 2
push 0
push 0
push eax
push dword [esi + 0xa4]
mov eax, dword [esi + 0x18]
push dword [esi + 0xa0]
mov byte [ebp - 4], 3
call eax
mov ebx, eax
add esp, 0x24
mov dword [ebp - 0xca0], ebx
test ebx, ebx
jne 0x408f90
xor bl, bl
jmp 0x40923f
mov eax, dword [esi + 0x1c]
push ebx
call eax
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
imul eax, dword [ebp + 0xc], 0x3e8
mov dword [ebp - 0xc98], eax
nop dword [eax]
mov eax, dword [esi + 0x20]
push ebx
call eax
mov ecx, dword [esi + 0x24]
push ebx
mov dword [ebp - 0xc9c], eax
call ecx
mov eax, dword [esi + 0x28]
push ebx
fstp dword [ebp - 0xc74]
call eax
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0xc84], ebx
test ebx, ebx
je 0x40911e
mov ecx, dword [esi + 0x38]
push ebx
call ecx
mov ecx, dword [esi + 0x34]
push ebx
call ecx
mov ebx, eax
lea eax, [ebp - 0x410]
push 0x400
push 0
push eax
mov dword [ebp - 0xc90], ebx
call fcn.004c3e70
push 0x400
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004c3e70
add esp, 0x20
xor edi, edi
test ebx, ebx
jle 0x409116
nop dword [eax + eax]
mov eax, dword [esi + 0x98]
push edi
push dword [ebp - 0xc84]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x409105
mov ecx, dword [esi + 0x8c]
push ebx
call ecx
mov ecx, dword [esi + 0x90]
push ebx
mov dword [ebp - 0xc7c], eax
mov dword [ebp - 0xc78], edx
call ecx
mov ecx, dword [ebp - 0xc7c]
add esp, 8
or ecx, dword [ebp - 0xc78]
mov dword [ebp - 0xc8c], eax
mov dword [ebp - 0xc88], edx
jne 0x40908d
mov ecx, eax
or ecx, edx
je 0x409105
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004c3e70
push 0x400
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004c3e70
lea eax, [ebp - 0x410]
push eax
mov eax, dword [esi + 0x7c]
push ebx
call eax
push dword [ebp - 0xc88]
lea eax, [ebp - 0x410]
push dword [ebp - 0xc8c]
push dword [ebp - 0xc78]
push dword [ebp - 0xc7c]
push eax
push str.ip___s_download_bytes___llu_upload_bytes___llu_n
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.0040aab0
add esp, 0x40
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [ebp - 0xc90]
inc edi
cmp edi, ebx
jl 0x409030
test ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x409125
push 0x7d0
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc94]
cmp eax, dword [ebp - 0xc98]
jge 0x40920e
push 0x400
lea eax, [ebp - 0xc10]
push 0
push eax
call fcn.004c3e70
add esp, 0xc
lea eax, [ebp - 0xc70]
mov ecx, esi
push dword [ebp - 0xc9c]
push eax
call fcn.00409280
cmp dword [eax + 0x14], 0x10
jb 0x40916f
mov eax, dword [eax]
movss xmm0, dword [ebp - 0xc74]
sub esp, 8
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push eax
push str.state___s_download_percent___02f___n
lea eax, [ebp - 0xc10]
push 0x400
push eax
call fcn.0040aab0
mov edx, dword [ebp - 0xc5c]
add esp, 0x18
cmp edx, 0x10
jb 0x4091d6
mov ecx, dword [ebp - 0xc70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4091cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409275
push edx
push ecx
call fcn.004382df
add esp, 8
lea eax, [ebp - 0xc10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x3e8
call edi
movss xmm0, dword [ebp - 0xc74]
movsd xmm1, qword [0x721b68]
cvtps2pd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x409216
mov ebx, dword [ebp - 0xca0]
jmp 0x408fb0
movsd xmm1, qword [0x721b68]
movss xmm0, dword [ebp - 0xc74]
comiss xmm0, dword [0x721b64]
mov ecx, dword [ebp - 0xc80]
jbe 0x409231
mov eax, dword [ecx]
jmp 0x409233
xor eax, eax
cvtps2pd xmm0, xmm0
mov dword [ecx], eax
comisd xmm0, xmm1
setae bl
lea ecx, [ebp - 0xc40]
call fcn.004026c0
lea ecx, [ebp - 0xc58]
call fcn.004026c0
mov al, bl
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.00438587
mov esp, ebp
pop ebp
ret 0xc
call fcn.004c75d7
int3