Function at 0x41c4b0
Capabilities:
Create thread
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4ff004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx], 0
mov dword [ebp - 0x24], ebx
je 0x41c4e3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
push 0x158
push 0
push ebx
call fcn.00443620
add esp, 8
mov dword [ebx + 4], 0x405940
mov edx, 0x541810
xor ecx, ecx
call fcn.0041b7e0
add esp, 4
mov dword [0x5015e8], eax
mov dword [ebp - 0x20], 0
test eax, eax
jle 0x41c671
mov esi, dword [ebp - 0x24]
mov ebx, 0x541814
add esi, 0x28
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi - 0x20], eax
cmp eax, 0xffffffff
je 0x41c784
push 4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 0x18], ax
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10
push eax
push dword [esi - 0x20]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x41c755
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41c726
push 4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x18], xmm0
push 0x76c
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push 0x10
push eax
push dword [esi]
mov dword [ebp - 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x41c6f7
push str.239.255.255.250
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx]
push 8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 0xc
push 0
push dword [esi]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x41c655
push str.Unable_to_add_multicast_membership_for_SSDP
push 0xf26
push str.ytcp
call fcn.00409950
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, 0xf27
call fcn.00415c60
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov eax, dword [ebp - 0x20]
add esi, 4
inc eax
add ebx, 0xc
mov dword [ebp - 0x20], eax
cmp eax, dword [0x5015e8]
jl 0x41c528
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x50]
lea esi, [ebx + 0x48]
cmp eax, 1
je 0x41c7cb
test eax, eax
jne 0x41c6bb
push eax
push eax
push eax
push eax
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push esi
push 0x41c010
push 0
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x41c7b7
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x41c6e1
push 0xf2e
push str.ytcp
push str.Unable_to_start_helper_thread
push str._s___s:_d_
push 0x100
push edi
call fcn.0041c830
add esp, 0x18
mov eax, 0xfffffff8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x41c6e1
push edi
push eax
mov edx, 0xf20
mov ecx, str.ytcp
call fcn.00415bd0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x41c6e1
push edi
push eax
mov edx, 0xf10
mov ecx, str.ytcp
call fcn.00415bd0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x41c6e1
push edi
push eax
mov edx, 0xf0b
mov ecx, str.ytcp
call fcn.00415bd0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x41c6e1
push edi
push eax
mov edx, 0xefc
mov ecx, str.ytcp
call fcn.00415bd0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
mov dword [ebx], 1
mov ecx, ebx
call fcn.0041c360
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004423fe
mov esp, ebp
pop ebp
ret