Function at 0x52e140
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52e39c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x52e372
mov eax, dword [ebp - 4]
mov byte [eax + 4], 1
push 0x11
push 2
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x52e1cb
mov eax, 0x52e3b4
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
lea eax, [ebp - 0x2c]
call fcn.005116f4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
mov word [ebp - 0x18], 0x2e
mov byte [ebp - 0x14], 9
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004de340
mov eax, dword [ebp - 4]
add eax, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, 8
call fcn.004082a0
mov eax, dword [ebp - 4]
mov word [eax + 0xc], 2
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov ax, word [eax + 6]
push eax
call sub.wsock32.dll_htons
mov edx, dword [ebp - 4]
mov word [edx + 0xe], ax
push 0x10
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_bind
inc eax
jne 0x52e2b4
mov eax, dword [ebp - 4]
cmp word [eax + 6], 0
jne 0x52e265
mov eax, 0x52e408
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
lea eax, [ebp - 0x30]
call fcn.005116f4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
mov word [ebp - 0x18], 0x2e
mov byte [ebp - 0x14], 9
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004de340
jmp 0x52e2b4
mov eax, 0x52e470
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0x11
mov eax, dword [ebp - 4]
movzx eax, word [eax + 6]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
mov eax, 0x52e4c8
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0x11
lea eax, [ebp - 0x5c]
call fcn.005116f4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov word [ebp - 0x38], 0x2e
mov byte [ebp - 0x34], 9
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.004de340
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_getsockname
inc eax
jne 0x52e30a
mov eax, 0x52e4dc
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
lea eax, [ebp - 0x60]
call fcn.005116f4
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
mov word [ebp - 0x18], 0x2e
mov byte [ebp - 0x14], 9
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004de340
mov eax, dword [ebp - 4]
mov ax, word [eax + 0xe]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 4]
mov word [edx + 6], ax
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_ioctlsocket
inc eax
jne 0x52e372
mov eax, 0x52e51c
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
lea eax, [ebp - 0x64]
call fcn.005116f4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
mov word [ebp - 0x18], 0x2e
mov byte [ebp - 0x14], 9
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004de340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e3a3
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.0040b8a8
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0040b8a8
pop eax
jmp eax