Function at 0x46cc64
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.0046c365
lea ecx, [esp + 0x14]
call fcn.004bff34
push dword [esp + 0xc0]
call fcn.004583c1
lea ecx, [esp + 0x28]
push ebp
test al, al
jne 0x46cca2
push 0x7bd38c
call fcn.004bfe5e
jmp 0x46cca8
push ebp
call fcn.004bfece
push 5
pop ecx
push 1
push ebp
push 1
push dword [esp + 0xcc]
mov esi, eax
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
call fcn.004583c1
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.0046d9de
cmp dword [ebx + 4], 0xffffffff
jne 0x46ccf5
push ebp
mov esi, dword [ebx]
push 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, ebx
call dword [esi + 0x14]
jmp 0x46cebb
cmp byte [0x7b6df0], 0
jne 0x46cebb
mov bp, word [esp + 0xc4]
test bp, bp
je 0x46cd14
mov word [esp + 0x24], bp
mov ecx, 0x7b9e60
call fcn.0045a954
mov edx, 0x7b9e60
test al, al
jne 0x46cd32
push 5
pop ecx
mov esi, edx
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call fcn.0045a954
test al, al
je 0x46cd46
test bp, bp
je 0x46cdd7
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 4
push 0xffff
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x46cd98
call fcn.0067610d
mov esi, dword [eax]
call fcn.0067610d
push esi
mov edi, eax
call fcn.0067db8c
push eax
push dword [edi]
push dword [ebx + 4]
push str.Cant_set_SO_REUSEADDR_option_on_socket__d____d__s
call fcn.00470476
add esp, 0x14
push 0
jmp 0x46cce0
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.0046bf1b
cmp eax, 0xffffffff
jne 0x46cdd7
call fcn.0067610d
mov esi, dword [eax]
call fcn.0067610d
push esi
mov edi, eax
call fcn.0067db8c
push eax
push dword [edi]
lea eax, [esp + 0x20]
push eax
push dword [ebx + 4]
push str.Cant_bind_connecting_socket__d_to_IP__A____d__s
call fcn.00470476
add esp, 0x18
jmp 0x46cd91
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.0046d685
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 0x46ce7a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x46ce5f
cmp eax, 0x2734
je 0x46ce5f
mov edx, dword [ebx]
xor ebp, ebp
push 0
inc ebp
mov ecx, ebx
push ebp
push eax
call dword [edx + 0x14]
mov dword [ebx + 0x144], ebp
jmp 0x46ce75
push ebp
mov word [ebx + 0x18], 0x603
call fcn.00469d6b
or byte [ebx + 0x140], 1
xor ebp, ebp
inc ebp
add ebx, 0x50
jmp 0x46ceaf
mov byte [ebx + 0x18], 6
call esi
sub eax, dword [ebx + 0x144]
xor ebp, ebp
inc ebp
cmp eax, ebp
jae 0x46ce8f
mov eax, ebp
push ebp
mov dword [ebx + 0x144], eax
add ebx, 0x50
push ebp
push 0x40
mov ecx, ebx
call fcn.0046a2f2
push 0
push ebp
push 0x40
mov ecx, ebx
call fcn.0046a2f2
push 0
push ebp
push 0x40
mov ecx, ebx
call fcn.0046a2f2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 8