Function at 0x4137b0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x11
push 2
push 2
mov esi, eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4137e8
call ebp
test eax, eax
je 0x4139a6
call ebp
mov edi, eax
test edi, edi
jne 0x413997
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
mov dword [eax + 0x50], ebx
push ebx
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x413820
call ebp
test eax, eax
je 0x4139a6
call ebp
mov edi, eax
test edi, edi
jne 0x413997
xor eax, eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
push 0x28000017
push ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, dword [esi]
mov ecx, dword [eax + 0x24]
push 0x200
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x413875
call ebp
test eax, eax
je 0x4139a6
call ebp
mov edi, eax
test edi, edi
jne 0x413997
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call ebp
mov edx, dword [esi]
mov dword [edx + 0x28], eax
mov eax, dword [esi]
cmp dword [eax + 0x28], 0
jne 0x4138ae
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4139a6
call edi
mov edi, eax
test edi, edi
jne 0x413997
mov eax, dword [esi]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
je 0x4138d4
mov edx, dword [eax + 0x28]
push 1
push edx
push 4
push 1
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x413997
push 0
push 0
push 0
push 0
call ebp
mov ecx, dword [esi]
mov dword [ecx + 0x2c], eax
mov edx, dword [esi]
cmp dword [edx + 0x2c], 0
jne 0x413907
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4139a6
call edi
mov edi, eax
test edi, edi
jne 0x413997
mov eax, dword [esi]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
add eax, 0x40
push eax
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call ebp
mov edi, eax
test edi, edi
jne 0x413997
mov eax, dword [esi]
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x40]
push 1
push ecx
push 5
push 1
push edx
call ebx
mov edi, eax
test edi, edi
jne 0x413997
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esi]
mov dword [ecx + 0x30], eax
mov edx, dword [esi]
cmp dword [edx + 0x30], edi
jne 0x413967
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4139a6
call edi
mov edi, eax
test edi, edi
jne 0x413997
mov eax, dword [esi]
add eax, 0x44
push eax
push str.SOFTWAREApple_Inc.BonjourDynDNSSetup
push reloc.WS2_32.dll_bind
call ebp
mov edi, eax
test edi, edi
jne 0x413997
mov eax, dword [esi]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x44]
push 1
push ecx
push 5
push 1
push edx
call ebx
mov edi, eax
test edi, edi
je 0x41399c
call fcn.00411550
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, 0xffffe5d4
call fcn.00411550
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret