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 0x4139aa
call ebp
mov edi, eax
test edi, edi
jne 0x41399b
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
mov dword [eax + 0x60], 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 0x4139aa
call ebp
mov edi, eax
test edi, edi
jne 0x41399b
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 0x4139aa
call ebp
mov edi, eax
test edi, edi
jne 0x41399b
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]
mov ecx, dword [eax + 0x28]
test ecx, ecx
jne 0x4138af
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4139aa
call edi
mov edi, eax
test edi, edi
jne 0x41399b
mov eax, dword [esi]
mov ecx, dword [eax + 0x44]
test ecx, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
je 0x4138d5
mov edx, dword [eax + 0x28]
push 1
push edx
push 4
push 1
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x41399b
push 0
push 0
push 0
push 0
call ebp
mov ecx, dword [esi]
mov dword [ecx + 0x2c], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x413909
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4139aa
call edi
mov edi, eax
test edi, edi
jne 0x41399b
mov eax, dword [esi]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
add eax, 0x48
push eax
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call ebp
mov edi, eax
test edi, edi
jne 0x41399b
mov eax, dword [esi]
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x48]
push 1
push ecx
push 5
push 1
push edx
call ebx
mov edi, eax
test edi, edi
jne 0x41399b
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]
mov eax, dword [edx + 0x30]
test eax, eax
jne 0x41396b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4139aa
call edi
mov edi, eax
test edi, edi
jne 0x41399b
mov eax, dword [esi]
add eax, 0x4c
push eax
push str.SOFTWAREApple_Computer__Inc.BonjourDynDNSSetup
push reloc.WS2_32.dll_bind
call ebp
mov edi, eax
test edi, edi
jne 0x41399b
mov eax, dword [esi]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x4c]
push 1
push ecx
push 5
push 1
push edx
call ebx
mov edi, eax
test edi, edi
je 0x4139a0
call fcn.00411720
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, 0xffffe5d4
call fcn.00411720
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret