Function at 0x4d6b3c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1ac], 0
je 0x4d6b75
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1a8]
mov ecx, dword [ebp - 4]
add edx, dword [ecx + 0xc]
cmp eax, edx
jae 0x4d6b75
mov byte [ebp - 5], 0
jmp 0x4d6d90
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4d6b8e
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x4d6da4
call fcn.00404414
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x4d6ba1
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x3e8
xor eax, eax
push ebp
push 0x4d6d56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0x14], 0
jne 0x4d6bf9
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4d6bf9
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
push eax
push 0
mov ecx, 0x4d6db8
mov dl, 1
mov eax, dword [0x4d61d8]
call fcn.0040d144
call fcn.00403d5c
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1a4], 0xffffffff
jne 0x4d6c41
call fcn.004d70d0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
push eax
push 0
mov ecx, 0x4d6de4
mov dl, 1
mov eax, dword [0x4d61d8]
call fcn.0040d144
call fcn.00403d5c
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00402f00
mov word [ebp - 0x24], 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00404880
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4d6c78
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
jmp 0x4d6cc7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00404880
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4d6cba
call fcn.004d70d0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
push eax
push 0
mov ecx, 0x4d6de4
mov dl, 1
mov eax, dword [0x4d61d8]
call fcn.0040d144
call fcn.00403d5c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 8]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a4]
push eax
call sub.wsock32.dll_connect
inc eax
jne 0x4d6d18
call fcn.004d70d0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
push eax
push 0
mov ecx, 0x4d6de4
mov dl, 1
mov eax, dword [0x4d61d8]
call fcn.0040d144
call fcn.00403d5c
mov dword [ebp - 0xc], 0x3e8
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1005
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a4]
push eax
call sub.wsock32.dll_setsockopt
mov eax, dword [ebp - 4]
mov byte [eax + 0x1ac], 0
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d6d90
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret