Function at 0x42a8f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket
Start tcp server

Disassembly:
mov eax, 0x13bc
call fcn.00458680
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x240b0]
test ecx, ecx
jle 0x42a935
mov esi, dword [sym.imp.WS2_32.dll_listen]
xor ebx, ebx
mov eax, dword [ebx + eax + 0x20a00]
push 0x40
push eax
call esi
mov eax, dword [ebp + 4]
inc edi
add ebx, 0x118
cmp edi, dword [eax + 0x240b0]
jl 0x42a917
mov eax, dword [ebp + 8]
test eax, eax
je 0x42ad4e
mov ebx, dword [ebp + 4]
xor ecx, ecx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], ecx
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x2c4], ecx
mov eax, dword [ebx + 0x240b0]
mov dword [esp + 0x10], ecx
cmp eax, ecx
jle 0x42a9c9
lea edi, [ebx + 0x20a00]
xor eax, eax
test ecx, ecx
jbe 0x42a98f
mov esi, dword [edi]
lea edx, [esp + 0x2c8]
cmp dword [edx], esi
je 0x42a98f
inc eax
add edx, 4
cmp eax, ecx
jb 0x42a983
cmp eax, ecx
jne 0x42a9b0
cmp ecx, 0x40
jae 0x42a9b0
mov ecx, dword [edi]
mov dword [esp + eax*4 + 0x2c8], ecx
mov ecx, dword [esp + 0x2c4]
inc ecx
mov dword [esp + 0x2c4], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x240b0]
inc eax
add edi, 0x118
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x42a974
lea edx, [esp + 0x4c]
lea eax, [esp + 0x2c4]
push edx
push 0
push 0
push eax
push 0x40
call dword [sym.imp.WS2_32.dll_select]
xor esi, esi
cmp eax, esi
je 0x42ad33
jl 0x42ad4e
mov eax, dword [ebp + 4]
xor edi, edi
mov dword [esp + 0x10], edi
cmp dword [eax + 0x240b0], esi
jle 0x42ad33
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov edx, dword [ebx + eax + 0x20a00]
lea ecx, [esp + 0x2c4]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42ad0b
mov eax, dword [ebp + 4]
lea edx, [ebx + eax]
mov eax, dword [ebx + eax + 0x20a04]
cmp eax, esi
jne 0x42aaff
push esi
lea ecx, [esp + 0x20]
push esi
push ecx
mov ecx, dword [edx + 0x20a00]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAccept]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov ebx, eax
or eax, 0xffffffff
mov dword [esp + 0x194], eax
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x18c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x198], edx
mov edx, dword [esp + 0x44]
sub esp, 0x138
mov dword [esp + 0x2e0], esi
mov dword [esp + 0x3f8], esi
mov dword [esp + 0x2d8], ecx
mov dword [esp + 0x3f4], edi
mov ecx, 0x4e
lea esi, [esp + 0x2c4]
mov edi, esp
mov byte [esp + 0x2ec], 0
mov dword [esp + 0x2e4], 8
mov dword [esp + 0x2d4], eax
mov dword [esp + 0x2dc], edx
mov dword [esp + 0x2c8], ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 4]
add ecx, 0x36510
call fcn.00441b10
cmp eax, 0xffffffff
je 0x42ad47
jmp 0x42ad09
mov al, byte [0x494b70]
mov ecx, 0x400
mov byte [esp + 0x3c8], al
xor eax, eax
lea edi, [esp + 0x3c9]
push esi
rep stosd dword es:[edi], eax
mov eax, 0x1000
lea ecx, [esp + 0x3cc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x20]
push esi
lea ecx, [esp + 0x40]
push eax
push ecx
lea eax, [esp + 0x58]
lea ecx, [esp + 0x24]
push eax
mov dword [esp + 0x5c], esi
push ecx
mov ecx, dword [edx + 0x20a00]
lea eax, [esp + 0x48]
push 1
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
je 0x42ab76
push 0xa
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42ad0b
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], edx
mov dword [esp + 0x70], esi
mov byte [esp + 0x7c], 0
mov dword [esp + 0x188], esi
mov dword [esp + 0x74], 8
mov dword [esp + 0x184], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x64], edx
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 4]
mov dword [esp + 0x188], eax
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x54]
push edx
add ecx, 0x36510
mov dword [esp + 0x6c], eax
call fcn.00442d80
test eax, eax
je 0x42ac16
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x5c]
push esi
lea ecx, [esp + 0x3cc]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x42ad0b
mov eax, dword [ebp + 4]
lea ecx, [ebx + eax + 0x20a08]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x42ad09
sub esp, 0x138
mov ecx, 0x4e
lea esi, [esp + 0x18c]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 4]
add ecx, 0x36510
call fcn.00441b10
mov edi, eax
cmp edi, 0xffffffff
je 0x42ad4e
push 1
push 0
push 0
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
xor edx, edx
mov esi, eax
mov dword [esp + 0x20], edx
mov word [esp + 0x20], 2
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
push edx
mov dword [esp + 0x30], edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
lea eax, [esp + 0x20]
push 0x10
push eax
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 4]
mov eax, dword [edx]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov ax, word [edx + ecx + 0x20b10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 0x20]
push 0x10
push ecx
push esi
mov word [esp + 0x2e], ax
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp + 4]
push esi
push edi
add ecx, 0x36510
call fcn.00442ef0
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x3cc]
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
xor esi, esi
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
inc edi
mov ecx, dword [eax + 0x240b0]
add ebx, 0x118
cmp edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebx
jl 0x42aa0d
cmp dword [ebp + 8], esi
jne 0x42a940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13bc
ret
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13bc
ret