Function at 0x52c9f4
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1cc], ebx
mov dword [ebp - 0x1d0], ebx
mov dword [ebp - 0x1d4], ebx
mov dword [ebp - 0x1d8], ebx
mov dword [ebp - 0x1dc], ebx
mov dword [ebp - 0x1b8], ebx
mov dword [ebp - 0x1bc], ebx
mov dword [ebp - 0x1c0], ebx
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0x1c8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52d03f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x11
push 2
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x52ca6e
xor ebx, ebx
jmp 0x52d021
mov dword [ebp - 0x10], 0xffffffff
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
inc eax
jne 0x52ca92
xor ebx, ebx
jmp 0x52d021
lea eax, [ebp - 0x50]
mov edx, 0x10
call fcn.0040769c
mov word [ebp - 0x50], 2
xor eax, eax
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x4e], 0
push 0x10
lea eax, [ebp - 0x50]
push eax
push ebx
call sub.wsock32.dll_bind
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
call sub.wsock32.dll_getsockname
mov ax, word [ebp - 0x4e]
push eax
call sub.wsock32.dll_ntohs
mov word [ebp - 0x1e], ax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x90]
mov edx, 0x10
call fcn.0040769c
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x88]
mov ecx, 4
call fcn.00407694
lea edx, [ebp - 0x1e]
lea eax, [ebp - 0x8e]
mov ecx, 2
call fcn.00407694
lea edx, [ebp - 8]
lea eax, [ebp - 0x8c]
mov ecx, 4
call fcn.00407694
mov byte [ebp - 0x3d], 0
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], 2
lea eax, [ebp - 0x70]
mov edx, 0x10
call fcn.0040769c
mov word [ebp - 0x70], 2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x6c], eax
push 0x53d
call sub.wsock32.dll_htons
mov word [ebp - 0x6e], ax
mov byte [ebp - 0x1f], 0x21
lea edx, [ebp - 0x1f]
lea eax, [ebp - 0x90]
mov ecx, 1
call fcn.00407694
push 0x10
lea eax, [ebp - 0x70]
push eax
push 0
push 0x10
lea eax, [ebp - 0x90]
push eax
push ebx
call sub.wsock32.dll_sendto
push 0xa
call sub.kernel32.dll_Sleep_1
mov word [ebp - 0x70], 2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x6c], eax
push 0x2329
call sub.wsock32.dll_htons
mov word [ebp - 0x6e], ax
mov byte [ebp - 0x1f], 0x22
lea edx, [ebp - 0x1f]
lea eax, [ebp - 0x90]
mov ecx, 1
call fcn.00407694
push 0x10
lea eax, [ebp - 0x70]
push eax
push 0
push 0x10
lea eax, [ebp - 0x90]
push eax
push ebx
call sub.wsock32.dll_sendto
mov esi, 2
lea eax, [ebp - 0xa0]
mov edx, 0x10
call fcn.0040769c
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x61a80
lea eax, [ebp - 0x1a4]
call fcn.004736a8
lea edx, [ebp - 0x1a4]
mov eax, ebx
call fcn.00473698
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebx + 1]
push eax
call sub.wsock32.dll_select
mov edi, eax
test edi, edi
jle 0x52cd15
lea edx, [ebp - 0x1a4]
mov eax, ebx
call fcn.00473680
test al, al
je 0x52cd15
mov dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0x10
lea eax, [ebp - 0xa0]
push eax
push ebx
call sub.wsock32.dll_recvfrom
cmp eax, 0xffffffff
je 0x52cd15
test eax, eax
jle 0x52cd15
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x1b4]
mov ecx, 0x10
call fcn.00407694
mov al, byte [ebp - 0x1b4]
cmp al, 0x22
jne 0x52ccd4
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1ac]
jne 0x52cd06
mov al, byte [ebp - 0x1b3]
mov byte [ebp - 0x3d], al
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x3c], eax
mov ax, word [ebp - 0x1a8]
mov word [ebp - 0x22], ax
jmp 0x52cd06
cmp al, 0x25
jne 0x52ccee
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1ac]
jne 0x52cd06
mov al, byte [ebp - 0x1b3]
mov byte [ebp - 0x3d], al
jmp 0x52cd06
cmp al, 0x27
jne 0x52cd06
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1ac]
jne 0x52cd06
mov al, byte [ebp - 0x1b3]
mov byte [ebp - 0x3d], al
cmp byte [ebp - 0x3d], 0
je 0x52cd15
mov dword [ebp - 0x18], 1
jmp 0x52cd1c
dec esi
jne 0x52cbee
cmp dword [ebp - 0x18], 0
jg 0x52cd2b
dec dword [ebp - 0x1c]
jne 0x52cb45
cmp dword [ebp - 0x18], 0
je 0x52cea0
cmp byte [ebp - 0x3d], 0
je 0x52cea0
cmp byte [ebp - 0x3d], 1
je 0x52cea0
cmp byte [ebp - 0x3d], 4
ja 0x52cea0
xor eax, eax
mov dword [ebp - 0x34], eax
mov esi, 5
lea eax, [ebp - 0xa0]
mov edx, 0x10
call fcn.0040769c
cmp dword [ebp - 0x34], 0
jne 0x52cd81
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x7a120
jmp 0x52cd8d
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x30d40
lea eax, [ebp - 0x1a4]
call fcn.004736a8
lea edx, [ebp - 0x1a4]
mov eax, ebx
call fcn.00473698
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebx + 1]
push eax
call sub.wsock32.dll_select
mov edi, eax
test edi, edi
jle 0x52cdd4
lea edx, [ebp - 0x1a4]
mov eax, ebx
call fcn.00473680
test al, al
jne 0x52cddc
inc dword [ebp - 0x34]
jmp 0x52ce99
mov dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0x10
lea eax, [ebp - 0xa0]
push eax
push ebx
call sub.wsock32.dll_recvfrom
cmp eax, 0xffffffff
je 0x52ce99
test eax, eax
jle 0x52ce99
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x1b4]
mov ecx, 0x10
call fcn.00407694
mov al, byte [ebp - 0x1b4]
cmp al, 0x22
jne 0x52ce5b
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1ac]
jne 0x52ce99
cmp byte [ebp - 0x3d], 1
je 0x52ce4d
cmp byte [ebp - 0x3d], 2
je 0x52ce4d
mov al, byte [ebp - 0x1b3]
mov byte [ebp - 0x3d], al
cmp byte [ebp - 0x3d], 0
je 0x52cea0
cmp byte [ebp - 0x3d], 4
ja 0x52cea0
jmp 0x52ce99
cmp al, 0x25
jne 0x52ce7b
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1ac]
jne 0x52ce99
cmp byte [ebp - 0x3d], 1
je 0x52ce99
mov al, byte [ebp - 0x1b3]
mov byte [ebp - 0x3d], al
jmp 0x52ce99
cmp al, 0x27
jne 0x52ce99
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1ac]
jne 0x52ce99
mov al, byte [ebp - 0x1b3]
mov byte [ebp - 0x3d], al
cmp byte [ebp - 0x3d], 1
je 0x52cea0
dec esi
jne 0x52cd5d
cmp byte [ebp - 0x3d], 4
jne 0x52ceac
mov byte [ebp - 0x3d], 3
jmp 0x52ceb6
cmp byte [ebp - 0x3d], 0
jne 0x52ceb6
mov byte [ebp - 0x3d], 7
push 2
push ebx
call sub.wsock32.dll_shutdown
push ebx
call sub.wsock32.dll_closesocket
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x3c]
jne 0x52cf80
push 0x52d058
mov eax, ebx
sub eax, dword [ebp - 0x38]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1bc]
call fcn.00408f24
push dword [ebp - 0x1bc]
push 0x52d068
lea edx, [ebp - 0x1c0]
xor eax, eax
mov al, byte [ebp - 0x3d]
call fcn.00408e38
push dword [ebp - 0x1c0]
push 0x52d088
push dword [ebp - 0x7c]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1c4]
call fcn.00404808
push dword [ebp - 0x1c4]
push 0x52d098
lea edx, [ebp - 0x1c8]
movzx eax, word [ebp - 0x22]
call fcn.00408e38
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x1b8]
mov edx, 8
call fcn.00404990
mov edx, dword [ebp - 0x1b8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x52d01e
push 0x52d058
mov eax, ebx
sub eax, dword [ebp - 0x38]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1d0]
call fcn.00408f24
push dword [ebp - 0x1d0]
push 0x52d0a8
lea edx, [ebp - 0x1d4]
xor eax, eax
mov al, byte [ebp - 0x3d]
call fcn.00408e38
push dword [ebp - 0x1d4]
push 0x52d0cc
push dword [ebp - 0x7c]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1d8]
call fcn.00404808
push dword [ebp - 0x1d8]
push 0x52d0dc
lea edx, [ebp - 0x1dc]
movzx eax, word [ebp - 0x22]
call fcn.00408e38
push dword [ebp - 0x1dc]
lea eax, [ebp - 0x1cc]
mov edx, 8
call fcn.00404990
mov edx, dword [ebp - 0x1cc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov bl, byte [ebp - 0x3d]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52d046
lea eax, [ebp - 0x1dc]
mov edx, 0xa
call fcn.00404634
ret