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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453d49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov esi, edx
push 0
push 0x45ea2e
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], 0
mov byte [edi], 0
call fcn.00402150
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
call fcn.0040d610
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4089ea
push 0x80004005
call fcn.0040d6c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
jb 0x408a06
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x10]
push str.http:___s
push eax
call fcn.0040cba0
mov esi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x408a43
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040c1d0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 4], 1
jle 0x408a43
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040c1d0
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [esi], 0
jne 0x408a5e
xor ecx, ecx
jmp 0x408a6c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408a63
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x50]
call fcn.00402150
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00408680
add esp, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3c], 0x10
mov ebx, eax
jb 0x408aa4
push dword [ebp - 0x50]
call fcn.00417686
add esp, 4
test ebx, ebx
jne 0x408ab3
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x408b05
push ebx
lea eax, [ebp - 0x50]
push str.err:_d
push eax
call fcn.004146e0
mov ebx, eax
add esp, 0xc
cmp edi, ebx
je 0x408af4
cmp dword [edi + 0x14], 0x10
jb 0x408adb
push dword [edi]
call fcn.00417686
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push ebx
mov byte [edi], 0
call fcn.00401d50
cmp dword [ebp - 0x3c], 0x10
jb 0x408b05
push dword [ebp - 0x50]
call fcn.00417686
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
sub ecx, dword [ebp - 0x1c]
mul ecx
lea eax, [ebp - 0x38]
shr edx, 6
push edx
push str._04d_s___d_sz
push eax
call fcn.004146e0
add esp, 0x10
mov byte [ebp - 4], 3
cmp dword [edi + 0x10], 0
je 0x408bc7
push 0x45edd4
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x68]
call fcn.0040cbc0
add esp, 4
push edi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.0040cb20
mov ebx, eax
add esp, 4
cmp edi, ebx
je 0x408b91
cmp dword [edi + 0x14], 0x10
jb 0x408b78
push dword [edi]
call fcn.00417686
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push ebx
mov byte [edi], 0
call fcn.00401d50
cmp dword [ebp - 0x3c], 0x10
jb 0x408ba2
push dword [ebp - 0x50]
call fcn.00417686
add esp, 4
cmp dword [ebp - 0x54], 0x10
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
jb 0x408bda
push dword [ebp - 0x68]
call fcn.00417686
add esp, 4
jmp 0x408bda
lea eax, [ebp - 0x38]
cmp edi, eax
je 0x408bda
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00401e60
cmp dword [ebp - 0x24], 0x10
jb 0x408beb
push dword [ebp - 0x38]
call fcn.00417686
add esp, 4
add esi, 0xfffffff0
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
or ecx, 0xffffffff
mov byte [ebp - 0x38], 0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408c1b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret