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

Disassembly:
sub esp, 0xac
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ebx, ecx
push ebp
call fcn.0048a6a7
lea ecx, [esp + 0x14]
call fcn.004df6ce
push dword [esp + 0xc0]
call fcn.004762ee
lea ecx, [esp + 0x28]
push ebp
test al, al
jne 0x48b02a
push 0x7ece04
call fcn.004df5f8
jmp 0x48b030
push ebp
call fcn.004df668
push 5
pop ecx
mov esi, eax
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
inc edi
push edi
push ebp
push edi
push dword [esp + 0xcc]
call fcn.004762ee
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.0048bdae
cmp dword [ebx + 4], 0xffffffff
jne 0x48b07f
mov eax, dword [ebx]
mov esi, dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
push edi
push eax
mov ecx, ebx
call esi
jmp 0x48b24d
cmp byte [0x7e6810], 0
jne 0x48b24d
mov bp, word [esp + 0xc4]
test bp, bp
je 0x48b09e
mov word [esp + 0x24], bp
mov ecx, 0x7e9880
call fcn.004788c6
mov edx, 0x7e9880
test al, al
jne 0x48b0bf
push 5
pop ecx
mov esi, edx
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
inc edi
mov ecx, edx
call fcn.004788c6
test al, al
je 0x48b0d3
test bp, bp
je 0x48b169
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
push eax
push 4
push 0xffff
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x48b12b
call fcn.0069b508
push dword [eax]
call fcn.006a2f44
mov esi, eax
call fcn.0069b508
push esi
push dword [eax]
push dword [ebx + 4]
push str.Cant_set_SO_REUSEADDR_option_on_socket__d____d__s
call fcn.0048e8e7
add esp, 0x14
mov eax, dword [ebx]
mov esi, dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
jmp 0x48b074
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.0048a250
cmp eax, 0xffffffff
jne 0x48b169
call fcn.0069b508
push dword [eax]
call fcn.006a2f44
mov esi, eax
call fcn.0069b508
push esi
push dword [eax]
lea eax, [esp + 0x20]
push eax
push dword [ebx + 4]
push str.Cant_bind_connecting_socket__d_to_IP__A____d__s
call fcn.0048e8e7
add esp, 0x18
jmp 0x48b119
mov esi, dword [esp + 0xc0]
mov word [ebx + 0x128], bp
lea ebp, [ebx + 0x114]
push 5
pop ecx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov ecx, dword [esp + 0xc0]
or byte [ebx + 0x14], 1
mov dword [ebx + 0x144], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0048ba49
push dword [esp + 0x10]
or byte [ebx + 0x14], 1
lea eax, [esp + 0x40]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x48b20c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x48b1f1
cmp eax, 0x2734
je 0x48b1f1
mov edx, dword [ebx]
xor esi, esi
push 0
inc esi
mov ecx, ebx
push esi
push eax
call dword [edx + 0x18]
mov dword [ebx + 0x144], esi
jmp 0x48b207
push ebp
mov word [ebx + 0x18], 0x603
call fcn.00487ff9
or byte [ebx + 0x140], 1
xor esi, esi
inc esi
add ebx, 0x50
jmp 0x48b241
mov byte [ebx + 0x18], 6
call esi
sub eax, dword [ebx + 0x144]
xor esi, esi
inc esi
cmp eax, esi
jae 0x48b221
mov eax, esi
push esi
mov dword [ebx + 0x144], eax
add ebx, 0x50
push esi
push 0x40
mov ecx, ebx
call fcn.004885b5
push 0
push esi
push 0x40
mov ecx, ebx
call fcn.004885b5
push 0
push esi
push 0x40
mov ecx, ebx
call fcn.004885b5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 8