Function at 0x5b56ac
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x40b
push 0
push 0
dec ecx
jne 0x5b56b4
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x5b5a7a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [0x6b8c84], 0
jne 0x5b5729
push 0x6b8c84
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x5b5729
mov dword [ebp - 0x2040], ebx
mov byte [ebp - 0x203c], 0
lea eax, [ebp - 0x2040]
push eax
push 0
lea edx, [ebp - 0x2044]
mov eax, dword [0x6b4f04]
call fcn.00406d3c
mov ecx, dword [ebp - 0x2044]
mov dl, 1
mov eax, dword [0x408840]
call fcn.0040f098
call fcn.00404008
push 0x11
push 2
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x5b577d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2040], eax
mov byte [ebp - 0x203c], 0
lea eax, [ebp - 0x2040]
push eax
push 0
lea edx, [ebp - 0x2048]
mov eax, dword [0x6b4f04]
call fcn.00406d3c
mov ecx, dword [ebp - 0x2048]
mov dl, 1
mov eax, dword [0x408840]
call fcn.0040f098
call fcn.00404008
xor edx, edx
push ebp
push 0x5b5a48
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 8], eax
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 0xc], 1
push 4
lea eax, [ebp - 0xc]
push eax
push 1
push 0xffff
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 0x10], 1
push 4
lea eax, [ebp - 0x10]
push eax
push 0x20
push 0xffff
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 0x14], 0x1f4
push 4
lea eax, [ebp - 0x14]
push eax
push 0x1006
push 0xffff
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_setsockopt
mov word [ebp - 0x38], 2
mov dword [ebp - 0x34], 0xffffffff
push 0x59a
call sub.wsock32.dll_htons
mov word [ebp - 0x36], ax
mov byte [ebp - 0x15], 3
push 0x10
lea eax, [ebp - 0x38]
push eax
push 0
push 1
lea eax, [ebp - 0x15]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_sendto
push 0
push 0x2000
lea eax, [ebp - 0x2038]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x5b5a31
mov edx, eax
sub edx, 3
lea eax, [ebp - 0x1c]
call fcn.00404d04
mov eax, dword [ebp - 0x1c]
call fcn.00404978
push eax
lea eax, [ebp - 0x1c]
call fcn.00404bd0
mov edx, eax
lea eax, [ebp - 0x2035]
pop ecx
call fcn.00402c48
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.00404724
mov edx, dword [ebp - 0x20]
mov eax, 0x5b5a90
call fcn.00404cbc
test eax, eax
jle 0x5b5839
lea ecx, [eax + 0xa]
mov edx, dword [ebp - 0x20]
mov eax, 0x5b5aa4
call fcn.0043d194
mov ebx, eax
test ebx, ebx
jne 0x5b58dd
lea edx, [ebp - 0x204c]
mov eax, dword [0x6b521c]
call fcn.00406d3c
mov ecx, dword [ebp - 0x204c]
mov dl, 1
mov eax, dword [0x408840]
call fcn.0040f05c
call fcn.00404008
lea edi, [ebx + 1]
mov ecx, edi
mov edx, dword [ebp - 0x20]
mov eax, 0x5b5aa4
call fcn.0043d194
mov esi, eax
test esi, esi
jne 0x5b591c
lea edx, [ebp - 0x2050]
mov eax, dword [0x6b521c]
call fcn.00406d3c
mov ecx, dword [ebp - 0x2050]
mov dl, 1
mov eax, dword [0x408840]
call fcn.0040f05c
call fcn.00404008
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
sub ecx, ebx
dec ecx
mov edx, edi
mov eax, dword [ebp - 0x20]
call fcn.00404bd8
lea ecx, [esi + 1]
mov edx, dword [ebp - 0x20]
mov eax, 0x5b5ab0
call fcn.0043d194
lea ecx, [eax + 0xc]
mov edx, dword [ebp - 0x20]
mov eax, 0x5b5aa4
call fcn.0043d194
mov ebx, eax
test ebx, ebx
jne 0x5b597c
lea edx, [ebp - 0x2054]
mov eax, dword [0x6b521c]
call fcn.00406d3c
mov ecx, dword [ebp - 0x2054]
mov dl, 1
mov eax, dword [0x408840]
call fcn.0040f05c
call fcn.00404008
lea edi, [ebx + 1]
mov ecx, edi
mov edx, dword [ebp - 0x20]
mov eax, 0x5b5aa4
call fcn.0043d194
mov esi, eax
test esi, esi
jne 0x5b59bb
lea edx, [ebp - 0x2058]
mov eax, dword [0x6b521c]
call fcn.00406d3c
mov ecx, dword [ebp - 0x2058]
mov dl, 1
mov eax, dword [0x408840]
call fcn.0040f05c
call fcn.00404008
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
sub ecx, ebx
dec ecx
mov edx, edi
mov eax, dword [ebp - 0x20]
call fcn.00404bd8
lea edx, [ebp - 0x205c]
mov eax, dword [ebp - 0x28]
call fcn.004097b0
mov eax, dword [ebp - 0x205c]
mov edx, 0x5b5ac8
call fcn.00404ac4
je 0x5b5a06
push dword [ebp - 0x24]
push 0x5b5adc
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404a38
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [esi + 1]
mov edx, dword [ebp - 0x20]
mov eax, 0x5b5a90
call fcn.0043d194
test eax, eax
jg 0x5b58a0
jmp 0x5b5839
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b5a4f
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_closesocket
ret