Function at 0x52d538
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 0x52db83
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 0x52d5b2
xor ebx, ebx
jmp 0x52db65
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 0x52d5d6
xor ebx, ebx
jmp 0x52db65
lea eax, [ebp - 0x50]
mov edx, 0x10
call fcn.00407bcc
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.00407bcc
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x88]
mov ecx, 4
call fcn.00407bc4
lea edx, [ebp - 0x1e]
lea eax, [ebp - 0x8e]
mov ecx, 2
call fcn.00407bc4
lea edx, [ebp - 8]
lea eax, [ebp - 0x8c]
mov ecx, 4
call fcn.00407bc4
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.00407bcc
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.00407bc4
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.00407bc4
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.00407bcc
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x61a80
lea eax, [ebp - 0x1a4]
call fcn.00474074
lea edx, [ebp - 0x1a4]
mov eax, ebx
call fcn.00474064
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 0x52d859
lea edx, [ebp - 0x1a4]
mov eax, ebx
call fcn.0047404c
test al, al
je 0x52d859
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 0x52d859
test eax, eax
jle 0x52d859
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x1b4]
mov ecx, 0x10
call fcn.00407bc4
mov al, byte [ebp - 0x1b4]
cmp al, 0x22
jne 0x52d818
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1ac]
jne 0x52d84a
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 0x52d84a
cmp al, 0x25
jne 0x52d832
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1ac]
jne 0x52d84a
mov al, byte [ebp - 0x1b3]
mov byte [ebp - 0x3d], al
jmp 0x52d84a
cmp al, 0x27
jne 0x52d84a
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1ac]
jne 0x52d84a
mov al, byte [ebp - 0x1b3]
mov byte [ebp - 0x3d], al
cmp byte [ebp - 0x3d], 0
je 0x52d859
mov dword [ebp - 0x18], 1
jmp 0x52d860
dec esi
jne 0x52d732
cmp dword [ebp - 0x18], 0
jg 0x52d86f
dec dword [ebp - 0x1c]
jne 0x52d689
cmp dword [ebp - 0x18], 0
je 0x52d9e4
cmp byte [ebp - 0x3d], 0
je 0x52d9e4
cmp byte [ebp - 0x3d], 1
je 0x52d9e4
cmp byte [ebp - 0x3d], 4
ja 0x52d9e4
xor eax, eax
mov dword [ebp - 0x34], eax
mov esi, 5
lea eax, [ebp - 0xa0]
mov edx, 0x10
call fcn.00407bcc
cmp dword [ebp - 0x34], 0
jne 0x52d8c5
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x7a120
jmp 0x52d8d1
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x30d40
lea eax, [ebp - 0x1a4]
call fcn.00474074
lea edx, [ebp - 0x1a4]
mov eax, ebx
call fcn.00474064
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 0x52d918
lea edx, [ebp - 0x1a4]
mov eax, ebx
call fcn.0047404c
test al, al
jne 0x52d920
inc dword [ebp - 0x34]
jmp 0x52d9dd
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 0x52d9dd
test eax, eax
jle 0x52d9dd
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x1b4]
mov ecx, 0x10
call fcn.00407bc4
mov al, byte [ebp - 0x1b4]
cmp al, 0x22
jne 0x52d99f
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1ac]
jne 0x52d9dd
cmp byte [ebp - 0x3d], 1
je 0x52d991
cmp byte [ebp - 0x3d], 2
je 0x52d991
mov al, byte [ebp - 0x1b3]
mov byte [ebp - 0x3d], al
cmp byte [ebp - 0x3d], 0
je 0x52d9e4
cmp byte [ebp - 0x3d], 4
ja 0x52d9e4
jmp 0x52d9dd
cmp al, 0x25
jne 0x52d9bf
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1ac]
jne 0x52d9dd
cmp byte [ebp - 0x3d], 1
je 0x52d9dd
mov al, byte [ebp - 0x1b3]
mov byte [ebp - 0x3d], al
jmp 0x52d9dd
cmp al, 0x27
jne 0x52d9dd
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1ac]
jne 0x52d9dd
mov al, byte [ebp - 0x1b3]
mov byte [ebp - 0x3d], al
cmp byte [ebp - 0x3d], 1
je 0x52d9e4
dec esi
jne 0x52d8a1
cmp byte [ebp - 0x3d], 4
jne 0x52d9f0
mov byte [ebp - 0x3d], 3
jmp 0x52d9fa
cmp byte [ebp - 0x3d], 0
jne 0x52d9fa
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 0x52dac4
push 0x52db9c
mov eax, ebx
sub eax, dword [ebp - 0x38]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1bc]
call fcn.004094cc
push dword [ebp - 0x1bc]
push 0x52dbac
lea edx, [ebp - 0x1c0]
xor eax, eax
mov al, byte [ebp - 0x3d]
call fcn.004093e0
push dword [ebp - 0x1c0]
push 0x52dbcc
push dword [ebp - 0x7c]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1c4]
call fcn.00404c60
push dword [ebp - 0x1c4]
push 0x52dbdc
lea edx, [ebp - 0x1c8]
movzx eax, word [ebp - 0x22]
call fcn.004093e0
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x1b8]
mov edx, 8
call fcn.00404de8
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 0x52db62
push 0x52db9c
mov eax, ebx
sub eax, dword [ebp - 0x38]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1d0]
call fcn.004094cc
push dword [ebp - 0x1d0]
push 0x52dbec
lea edx, [ebp - 0x1d4]
xor eax, eax
mov al, byte [ebp - 0x3d]
call fcn.004093e0
push dword [ebp - 0x1d4]
push 0x52dc10
push dword [ebp - 0x7c]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1d8]
call fcn.00404c60
push dword [ebp - 0x1d8]
push 0x52dc20
lea edx, [ebp - 0x1dc]
movzx eax, word [ebp - 0x22]
call fcn.004093e0
push dword [ebp - 0x1dc]
lea eax, [ebp - 0x1cc]
mov edx, 8
call fcn.00404de8
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 0x52db8a
lea eax, [ebp - 0x1dc]
mov edx, 0xa
call fcn.00404a8c
ret