Function at 0x42d0b4
Capabilities:
Create tcp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x42d3bb
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [0x4fd2d0]
call fcn.00492408
mov ecx, dword [ebp - 8]
mov dl, 8
mov eax, ebx
call fcn.0042dbbc
test byte [ebx + 0x20], 0x10
jne 0x42d3a0
xor eax, eax
push ebp
push 0x42d375
push dword fs:[eax]
mov dword fs:[eax], esp
inc dword [0x57673c]
cmp dword [0x57673c], 1
jne 0x42d2b6
lea eax, [ebx + 0xd8]
push eax
push 0x101
call sub.WSOCK32.DLL_WSAStartup
lea edx, [ebp - 0xc]
mov eax, dword [0x4fd2ec]
call fcn.00492408
push dword [ebp - 0xc]
mov ax, word [ebx + 0xd8]
call fcn.00488b20
and eax, 0xff
lea edx, [ebp - 0x10]
call fcn.0048aae0
push dword [ebp - 0x10]
push 0x42d3d4
lea edx, [ebp - 0x14]
xor eax, eax
mov al, byte [ebx + 0xd8]
call fcn.0048aae0
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 4
call fcn.004910a4
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea edx, [ebp - 0xc]
mov eax, dword [0x4fd2f0]
call fcn.00492408
push dword [ebp - 0xc]
mov ax, word [ebx + 0xda]
call fcn.00488b20
and eax, 0xff
lea edx, [ebp - 0x10]
call fcn.0048aae0
push dword [ebp - 0x10]
push 0x42d3d4
lea edx, [ebp - 0x14]
xor eax, eax
mov al, byte [ebx + 0xda]
call fcn.0048aae0
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 4
call fcn.004910a4
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea edx, [ebp - 8]
mov eax, dword [0x4fd2f4]
call fcn.00492408
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
lea edx, [ebx + 0xdc]
mov ecx, 0x101
call fcn.00490f94
mov edx, dword [ebp - 0xc]
pop eax
call fcn.00490fec
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea edx, [ebp - 8]
mov eax, dword [0x4fd2f8]
call fcn.00492408
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
lea edx, [ebx + 0x1dd]
mov ecx, 0x81
call fcn.00490f94
mov edx, dword [ebp - 0xc]
pop eax
call fcn.00490fec
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea edx, [ebp - 8]
mov eax, dword [0x4fd2fc]
call fcn.00492408
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
movzx eax, word [ebx + 0x25e]
call fcn.0048aae0
mov edx, dword [ebp - 0xc]
pop eax
call fcn.00490fec
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea edx, [ebp - 8]
mov eax, dword [0x4fd300]
call fcn.00492408
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
movzx eax, word [ebx + 0x260]
call fcn.0048aae0
mov edx, dword [ebp - 0xc]
pop eax
call fcn.00490fec
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
xor eax, eax
push ebp
push 0x42d348
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
push 1
push 2
call sub.WSOCK32.DLL_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x42d2de
call fcn.004902ec
mov word [ebx + 0x294], si
mov word [ebp - 4], 1
mov word [ebp - 2], 0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
movzx eax, si
push eax
call sub.WSOCK32.DLL_setsockopt
cmp word [ebx + 0x294], 0xffff
jne 0x42d323
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.0042dae0
push 0x3f
push 0x465
mov eax, dword [ebx + 0x298]
push eax
movzx eax, word [ebx + 0x294]
push eax
call sub.WSOCK32.DLL_WSAAsyncSelect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42d36b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42d3a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d3c2
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00490d8c
ret