Function at 0x426a7c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404830
xor eax, eax
push ebp
push 0x426cb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x18], 3
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
push ebp
push 0x426c90
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0x2710
push 4
lea eax, [ebp - 0x14]
push eax
push 0x1006
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x426b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x426ca3
mov dword [ebp - 0x14], 0x2710
push 4
lea eax, [ebp - 0x14]
push eax
push 0x1005
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x426b40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x426ca3
xor eax, eax
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x1001
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x426b76
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x426ca3
mov dword [ebp - 0x14], 0x2000
push 4
lea eax, [ebp - 0x14]
push eax
push 0x1002
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x426bae
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x426ca3
lea eax, [ebp - 0x34]
xor ecx, ecx
mov edx, 0x10
call fcn.00402de4
mov word [ebp - 0x34], 2
mov ax, word [ebp - 0xc]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x32], ax
mov eax, dword [ebp - 8]
call fcn.00404840
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x24]
push eax
push 0x8004667e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_connect
lea eax, [ebp - 0x138]
call fcn.0040bdf8
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040bde8
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x1c], 0xf4240
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x138]
push eax
push 0
push 0
call sub.wsock32.dll_select
test eax, eax
setg byte [ebp - 0xd]
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 0x8004667e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_ioctlsocket
cmp byte [ebp - 0xd], 0
jne 0x426c7c
mov eax, dword [ebp - 4]
call fcn.00426964
jmp 0x426c86
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x426ca3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x426c9a
dec dword [ebp - 0x18]
jne 0x426ab2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426cc0
lea eax, [ebp - 8]
call fcn.00404394
ret