Function at 0x4dec04
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff4fc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xb04], ecx
mov dword [ebp - 0x1c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4def4c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x1b0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4def2b
xor ecx, ecx
push ebp
push 0x4def24
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 8], eax
xor ecx, ecx
push ebp
push 0x4def0a
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp dword [ebp - 8], 0xffffffff
jne 0x4dec89
call fcn.00404388
call fcn.00404388
jmp 0x4def2b
mov word [ebp - 0x1c0], 2
push 0x89
call sub.wsock32.dll_htons
mov word [ebp - 0x1be], ax
mov eax, dword [esi + 0x60]
call fcn.00404e20
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x1c0]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_connect
lea eax, [ebp - 0x2c4]
call fcn.004a319c
lea edx, [ebp - 0x2c4]
mov eax, dword [ebp - 8]
call fcn.004a318c
mov eax, ebx
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x2c4]
push eax
push 0
push 0
call sub.wsock32.dll_select
test eax, eax
jl 0x4deef3
lea eax, [ebp - 0x6fd]
xor ecx, ecx
mov edx, 0x401
call fcn.004030bc
lea eax, [ebp - 0xafe]
xor ecx, ecx
mov edx, 0x401
call fcn.004030bc
lea edx, [ebp - 0x6fd]
mov eax, dword [0x4ea1b0]
mov ecx, 0x32
call fcn.00402970
push 0x10
lea eax, [ebp - 0x1c0]
push eax
push 0
push 0x32
lea eax, [ebp - 0x6fd]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_sendto
push 0
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0x2c4]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jl 0x4deef3
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c0]
push eax
push 0
push 0x401
lea eax, [ebp - 0xafe]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_recvfrom
cmp eax, 0x38
jle 0x4deeef
lea eax, [esi + 0x4c]
call fcn.00404960
mov al, byte [ebp - 0xac6]
dec eax
test al, al
jb 0x4deef3
inc eax
mov byte [ebp - 0x1d], al
mov bl, 0
push esi
mov esi, 0x4def60
lea edi, [ebp - 0x2ec]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x2fc]
xor ecx, ecx
mov edx, 0x10
call fcn.004030bc
lea edx, [ebp - 0x2fc]
xor eax, eax
mov al, bl
mov edi, eax
add edi, edi
lea edi, [edi + edi*8]
add edi, 0x39
lea eax, [ebp + edi - 0xafe]
mov ecx, 0xf
call fcn.00402970
lea eax, [ebp - 0xb04]
lea edx, [ebp - 0x2fc]
mov ecx, 0x10
call fcn.00404bd0
mov eax, dword [ebp - 0xb04]
lea edx, [ebp - 0x1c]
call fcn.00408e44
mov eax, dword [ebp - 0x1c]
call fcn.00404e20
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404e20
push eax
call sub.user32.dll_OemToCharA
mov eax, edi
add eax, 0x10
mov dl, byte [ebp + eax - 0xaff]
mov al, byte [ebp + edi - 0xaee]
cmp al, 4
je 0x4deeb0
cmp al, 3
je 0x4deeb0
cmp al, 0x24
je 0x4deeb0
cmp al, 0x44
je 0x4deeb0
cmp al, 0x64
jne 0x4deee3
test dl, dl
jne 0x4deee3
mov edx, 0x4def90
mov eax, dword [ebp - 0x1c]
call fcn.0043ad78
test al, al
jne 0x4deee3
mov edx, 0x4def9c
mov eax, dword [ebp - 0x1c]
call fcn.0043ad78
test al, al
jne 0x4deee3
lea eax, [esi + 0x4c]
mov edx, dword [ebp - 0x1c]
call fcn.004049b4
jmp 0x4deef3
inc ebx
dec byte [ebp - 0x1d]
jne 0x4dee03
jmp 0x4deef3
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4def11
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4def53
lea eax, [ebp - 0xb04]
call fcn.00404960
lea eax, [ebp - 0x1c]
call fcn.00404960
ret