Function at 0x46a2b0
Capabilities:
Convert ip address from string
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0
push 2
push 2
mov byte [ebp - 0x185], 4
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x46a312
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror_s]
add esp, 0xc
mov eax, 0xffffff33
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x18c]
push 4
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 0x18c], 1
call esi
cmp eax, 0xffffffff
jne 0x46a398
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror_s]
lea eax, [ebp - 0x104]
push eax
push str.Error_in_setsockopt___SO_REUSEADDR:__s_n
push 0x3ae
push str.D:UsersphiliDropboxDevelopmentlibpupnppupnpupnp_src_ssdp_ssdp_server.c
push 0
push 0
call fcn.00417540
add esp, 0x24
mov esi, 0xffffff30
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
push 0x78
lea eax, [ebp - 0x17c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 2
mov word [ebp - 0x184], ax
push 0
call dword [sym.imp.WS2_32.dll_htonl]
push 0x76c
mov dword [ebp - 0x180], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x182], ax
lea eax, [ebp - 0x184]
push 0x10
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x46a450
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror_s]
lea eax, [ebp - 0x104]
push eax
push 0x76c
push 0
push str.Error_in_bind____addr0x_08X__port_d:__s_n
push 0x3d1
push str.D:UsersphiliDropboxDevelopmentlibpupnppupnpupnp_src_ssdp_ssdp_server.c
push 0
push 0
call fcn.00417540
add esp, 0x2c
mov esi, 0xffffff35
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x194]
push eax
push 0x62d164
xorps xmm0, xmm0
push 2
movlpd qword [ebp - 0x198], xmm0
call ebx
lea eax, [ebp - 0x198]
push eax
push str.239.255.255.250
push 2
call ebx
push 8
lea eax, [ebp - 0x198]
push eax
push 0xc
push 0
push dword [edi]
call esi
cmp eax, 0xffffffff
jne 0x46a4c7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror_s]
lea eax, [ebp - 0x104]
push eax
push str.Error_in_setsockopt___IP_ADD_MEMBERSHIP__join_multicast_group_:__s_n
push 0x3f7
jmp 0x46a367
lea eax, [ebp - 0x190]
mov dword [ebp - 0x190], 0
push eax
push 0x62d164
push 2
call ebx
push 4
lea eax, [ebp - 0x190]
push eax
push 9
push 0
push dword [edi]
call esi
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror_s]
cmp eax, 0xffffffff
jne 0x46a535
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
lea eax, [ebp - 0x104]
push 0x100
push eax
call ebx
lea eax, [ebp - 0x104]
push eax
push str.Error_in_setsockopt___IP_MULTICAST_IF__set_multicast_interface_:__s_n
push 0x40f
push str.D:UsersphiliDropboxDevelopmentlibpupnppupnpupnp_src_ssdp_ssdp_server.c
push 0
push 2
call fcn.00417540
add esp, 0x24
push 1
lea eax, [ebp - 0x185]
push eax
push 0xa
push 0
push dword [edi]
call esi
push 4
lea eax, [ebp - 0x18c]
mov dword [ebp - 0x18c], 1
push eax
push 0x20
push 0xffff
push dword [edi]
call esi
cmp eax, 0xffffffff
jne 0x46a5c1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
lea eax, [ebp - 0x104]
push 0x100
push eax
call ebx
lea eax, [ebp - 0x104]
push eax
push str.Error_in_setsockopt___SO_BROADCAST__set_broadcast_:__s_n
push 0x422
push str.D:UsersphiliDropboxDevelopmentlibpupnppupnpupnp_src_ssdp_ssdp_server.c
push 0
push 0
call fcn.00417540
add esp, 0x24
mov esi, 0xffffff38
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor esi, esi
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.0054f742
mov esp, ebp
pop ebp
ret