Function at 0x475e85
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.004755e9
lea ecx, [esp + 0x14]
call fcn.004c61dc
push dword [esp + 0xc0]
call fcn.004662da
lea ecx, [esp + 0x28]
push ebp
test al, al
jne 0x475ec3
push 0x766020
call fcn.004c6106
jmp 0x475ec9
push ebp
call fcn.004c6176
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.004662da
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.00476c1d
cmp dword [ebx + 4], 0xffffffff
jne 0x475f16
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 0x4760e5
cmp byte [0x75feea], 0
jne 0x4760e5
mov bp, word [esp + 0xc4]
test bp, bp
je 0x475f35
mov word [esp + 0x24], bp
mov ecx, 0x762f88
call fcn.004640b5
mov edx, 0x762f88
test al, al
jne 0x475f53
push 5
pop ecx
mov esi, edx
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call fcn.004640b5
test al, al
je 0x475f67
test bp, bp
je 0x475ffa
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 0x475fba
call fcn.00635bba
mov esi, eax
call fcn.00635bba
push dword [esi]
mov edi, eax
call fcn.00639401
push eax
push dword [edi]
push dword [ebx + 4]
push str.Cant_set_SO_REUSEADDR_option_on_socket__d____d__s
call fcn.00479036
add esp, 0x14
push 0
jmp 0x475f01
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.004751a3
cmp eax, 0xffffffff
jne 0x475ffa
call fcn.00635bba
mov esi, eax
call fcn.00635bba
push dword [esi]
mov edi, eax
call fcn.00639401
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.00479036
add esp, 0x18
jmp 0x475fb3
mov esi, dword [esp + 0xc0]
mov word [ebx + 0x114], bp
lea ebp, [ebx + 0x100]
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 + 0x130], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004768a7
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 0x476099
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x476084
cmp eax, 0x2734
je 0x476084
mov edx, dword [ebx]
mov ecx, ebx
push 0
push 1
push eax
call dword [edx + 0x14]
mov dword [ebx + 0x130], 1
jmp 0x4760d7
push ebp
mov word [ebx + 0x18], 0x603
call fcn.00473143
or byte [ebx + 0x12c], 1
jmp 0x4760d7
mov byte [ebx + 0x18], 6
call esi
sub eax, dword [ebx + 0x130]
cmp eax, 0xffffffff
jbe 0x4760ad
or eax, 0xffffffff
cmp eax, 1
jae 0x4760b5
xor eax, eax
inc eax
push 1
push 1
push 0x40
lea ecx, [ebx + 0x4c]
mov dword [ebx + 0x130], eax
call fcn.004736a6
push 0
push 1
push 0x40
lea ecx, [ebx + 0x4c]
call fcn.004736a6
push 0
push 1
push 0x40
lea ecx, [ebx + 0x4c]
call fcn.004736a6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 8