Function at 0x471494
Capabilities:
Check for time delay via gettickcount
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, ecx
call fcn.0046f258
lea ecx, [ebp - 0x14]
call fcn.0048adc4
mov ecx, dword [ebp + 8]
call fcn.004078ca
push esi
lea ecx, [ebp - 0x28]
test al, al
jne 0x4714ce
push 0x5499cc
call fcn.0048ae34
jmp 0x4714d4
push esi
call fcn.0048adff
push 5
pop ecx
mov esi, eax
lea edi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
xor edi, edi
inc edi
push edi
push 0
push edi
call fcn.004078ca
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
mov ecx, ebx
call fcn.004707ce
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jne 0x471520
mov esi, dword [ebx]
push 0
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, ebx
call dword [esi + 0xc]
jmp 0x4716c9
mov si, word [ebp + 0xc]
test si, si
jbe 0x47152d
mov word [ebp - 4], si
mov ecx, 0x548ff0
call fcn.00408e34
mov edx, 0x548ff0
test al, al
jne 0x471551
push 5
pop ecx
mov esi, edx
lea edi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov si, word [ebp + 0xc]
xor edi, edi
inc edi
mov ecx, edx
call fcn.00408e34
test al, al
je 0x471565
test si, si
jbe 0x4715ef
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0xffff
push dword [ebx + 4]
mov dword [ebp + 0xc], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4715af
call sub.MSVCRT.dll__errno
mov esi, eax
call sub.MSVCRT.dll__errno
push dword [esi]
mov dword [ebp + 8], eax
call sub.MSVCRT.dll_strerror
push eax
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebx + 4]
call fcn.004448e5
add esp, 0x10
jmp 0x47150a
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.0046eb5e
cmp eax, 0xffffffff
jne 0x4715ef
call sub.MSVCRT.dll__errno
mov esi, eax
call sub.MSVCRT.dll__errno
push dword [esi]
mov dword [ebp + 8], eax
call sub.MSVCRT.dll_strerror
push eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
call fcn.004448e5
add esp, 0x14
jmp 0x47150a
mov word [ebx + 0xe0], si
mov esi, dword [ebp + 8]
push 5
pop ecx
lea edi, [ebx + 0xcc]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov ecx, dword [ebp + 8]
mov dword [ebx + 0xfc], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00466321
push dword [ebp + 0xc]
or byte [ebx + 0x14], 1
lea eax, [ebp - 0xa8]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x471687
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x47166b
cmp eax, 0x2734
je 0x47166b
mov edx, dword [ebx]
xor esi, esi
push 0
inc esi
push esi
push eax
mov ecx, ebx
call dword [edx + 0xc]
mov dword [ebx + 0xfc], esi
jmp 0x4716be
lea ecx, [ebx + 0xcc]
mov byte [ebx + 0x18], 3
mov byte [ebx + 0x19], 6
call fcn.0046f4ee
or byte [ebx + 0xf8], 2
jmp 0x4716be
mov byte [ebx + 0x18], 6
call esi
sub eax, dword [ebx + 0xfc]
cmp eax, 0xffffffff
jbe 0x47169b
or eax, 0xffffffff
xor esi, esi
inc esi
cmp eax, esi
jae 0x4716a4
mov eax, esi
push esi
push 0x40
mov ecx, ebx
mov dword [ebx + 0xfc], eax
call fcn.0046e04b
push esi
push 0x40
mov ecx, ebx
call fcn.0046e02c
push 1
push 0x40
mov ecx, ebx
call fcn.0046e02c
pop edi
pop esi
pop ebx
leave
ret 8