Function at 0x42a4e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58c2da
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [esp + 0x10], edx
mov esi, ecx
mov dword [esp + 0x20], eax
cmp ebx, edi
je 0x42a6e1
mov ecx, dword [ebp + 8]
cmp cx, di
je 0x42a6e1
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push ecx
mov dword [eax], edi
mov eax, esp
mov dword [esp + 0x34], esp
push eax
mov ecx, ebx
mov dword [esp + 0x2c], edi
call fcn.00402fe0
mov dword [esp + 0x68], edi
mov dword [esp + 0x68], 0xffffffff
call fcn.0042c6b0
mov edi, eax
mov dword [esi], edi
test edi, edi
je 0x42a6cb
cmp edi, 0xffffffff
je 0x42a6cb
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42a5b6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [edx], 4
jmp 0x42a6e7
call fcn.0042c5c0
test al, al
jne 0x42a5e1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [ecx], eax
push esi
mov dword [edx], 5
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x42a6e7
push 4
lea eax, [esp + 0x20]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 2
push 0
mov word [esp + 0x2c], cx
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x2c]
push edx
push esi
mov word [esp + 0x36], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x42a656
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [ecx], eax
push esi
mov dword [edx], 6
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x42a6e7
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov word [esp + 0x3c], ax
mov dword [esp + 0x40], edi
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x3c]
push edx
push esi
mov word [esp + 0x46], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x42a6c7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
mov dword [eax], 7
cmp dword [edx], 0
je 0x42a6be
mov dword [eax], 8
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.00425f50
mov ecx, ebx
mov edx, eax
call fcn.00426080
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x42a6e7
mov eax, esi
jmp 0x42a6ea
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
mov dword [eax], 0xa
jmp 0x42a6e7
mov dword [edx], 3
or eax, 0xffffffff
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004a314d
mov esp, ebp
pop ebp
ret 0xc