Function at 0x100c1f90
Capabilities:
Create raw socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x10143964]
xor eax, esp
mov dword [esp + 0x54], eax
cmp dword [0x1014baf8], 0xffffffff
mov eax, dword [sym.imp.WS2_32.dll_socket]
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0x64
jne 0x100c2151
push 0x84
push 3
push 2
call eax
mov dword [0x1014baf8], eax
cmp eax, 0xffffffff
jne 0x100c2024
test dword [0x1014bac8], 0x80000000
je 0x100c214c
cmp dword [0x1014bb1c], 0
je 0x100c214c
call esi
push eax
push str.Cant_create_raw_socket_for_IPv4__errno___d_._n
call dword [0x1014bb1c]
add esp, 8
jmp 0x100c214c
push 4
lea eax, [esp + 0x20]
push eax
push 2
push 0
push dword [0x1014baf8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100c207c
test dword [0x1014bac8], 0x80000000
je 0x100c2065
cmp dword [0x1014bb1c], 0
je 0x100c2065
call esi
push eax
push str.Cant_set_IP_HDRINCL__errno___d_._n
call dword [0x1014bb1c]
add esp, 8
push dword [0x1014baf8]
call edi
mov dword [0x1014baf8], 0xffffffff
jmp 0x100c214c
push 4
lea eax, [esp + 0x1c]
push eax
push 0x1006
push 0xffff
push dword [0x1014baf8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100c20bc
test dword [0x1014bac8], 0x80000000
je 0x100c2065
cmp dword [0x1014bb1c], 0
je 0x100c2065
call esi
push eax
push str.Cant_set_timeout_on_socket_for_SCTP_IPv4__errno___d_._n
jmp 0x100c205c
xorps xmm0, xmm0
mov eax, 2
push 0
movlpd qword [esp + 0x2c], xmm0
mov word [esp + 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push 0x10
push eax
push dword [0x1014baf8]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x100c2129
test dword [0x1014bac8], 0x80000000
je 0x100c2065
cmp dword [0x1014bb1c], 0
je 0x100c2065
call esi
push eax
push str.Cant_bind_socket_for_SCTP_IPv4__errno___d_._n
jmp 0x100c205c
push 0x20000
push dword [0x1014baf8]
call fcn.100c27e0
push 0x20000
push dword [0x1014baf8]
call fcn.100c2840
add esp, 0x10
mov eax, dword [sym.imp.WS2_32.dll_socket]
cmp dword [0x1014bafc], 0xffffffff
jne 0x100c22de
cmp dword [0x1014baac], 0
je 0x100c22de
push 0x11
push 2
push 2
call eax
mov dword [0x1014bafc], eax
cmp eax, 0xffffffff
jne 0x100c21b0
test dword [0x1014bac8], 0x80000000
je 0x100c22de
cmp dword [0x1014bb1c], 0
je 0x100c22de
call esi
push eax
push str.Cant_create_socket_for_SCTP_UDP_IPv4__errno___d_._n
call dword [0x1014bb1c]
add esp, 8
jmp 0x100c22de
push 4
lea eax, [esp + 0x18]
push eax
push 0x13
push 0
push dword [0x1014bafc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100c21f5
test dword [0x1014bac8], 0x80000000
je 0x100c22a7
cmp dword [0x1014bb1c], 0
je 0x100c22a7
call esi
push eax
push str.Cant_set_IP_PKTINFO_on_socket_for_SCTP_UDP_IPv4__errno___d_._n
jmp 0x100c229e
push 4
lea eax, [esp + 0x1c]
push eax
push 0x1006
push 0xffff
push dword [0x1014bafc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100c2239
test dword [0x1014bac8], 0x80000000
je 0x100c22a7
cmp dword [0x1014bb1c], 0
je 0x100c22a7
call esi
push eax
push str.Cant_set_timeout_on_socket_for_SCTP_UDP_IPv4__errno___d_._n
jmp 0x100c229e
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [esp + 0x20], xmm0
mov word [esp + 0x20], ax
movzx eax, word [0x1014baac]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push 0x10
push eax
push dword [0x1014bafc]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x100c22bb
test dword [0x1014bac8], 0x80000000
je 0x100c22a7
cmp dword [0x1014bb1c], 0
je 0x100c22a7
call esi
push eax
push str.Cant_bind_socket_for_SCTP_UDP_IPv4__errno___d_._n
call dword [0x1014bb1c]
add esp, 8
push dword [0x1014bafc]
call edi
mov dword [0x1014bafc], 0xffffffff
jmp 0x100c22de
push 0x20000
push dword [0x1014bafc]
call fcn.100c27e0
push 0x20000
push dword [0x1014bafc]
call fcn.100c2840
add esp, 0x10
cmp dword [0x1014bb08], 0xffffffff
jne 0x100c24a8
push 0x84
push 3
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1014bb08], eax
cmp eax, 0xffffffff
jne 0x100c2337
test dword [0x1014bac8], 0x80000000
je 0x100c24a8
cmp dword [0x1014bb1c], 0
je 0x100c24a8
call esi
push eax
push str.Cant_create_socket_for_SCTP_IPv6__errno___d_._n
call dword [0x1014bb1c]
add esp, 8
jmp 0x100c24a8
push 4
lea eax, [esp + 0x18]
push eax
push 0x13
push 0x29
push dword [0x1014bb08]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100c237c
test dword [0x1014bac8], 0x80000000
je 0x100c2471
cmp dword [0x1014bb1c], 0
je 0x100c2471
call esi
push eax
push str.Cant_set_IPV6_PKTINFO_on_socket_for_SCTP_IPv6__errno___d_._n
jmp 0x100c2468
push 4
lea eax, [esp + 0x18]
push eax
push 0x1b
push 0x29
push dword [0x1014bb08]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100c23bd
test dword [0x1014bac8], 0x80000000
je 0x100c23bd
cmp dword [0x1014bb1c], 0
je 0x100c23bd
call esi
push eax
push str.Cant_set_IPV6_V6ONLY_on_socket_for_SCTP_IPv6__errno___d_._n
call dword [0x1014bb1c]
add esp, 8
push 4
lea eax, [esp + 0x1c]
push eax
push 0x1006
push 0xffff
push dword [0x1014bb08]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100c2401
test dword [0x1014bac8], 0x80000000
je 0x100c2471
cmp dword [0x1014bb1c], 0
je 0x100c2471
call esi
push eax
push str.Cant_set_timeout_on_socket_for_SCTP_IPv6__errno___d_._n
jmp 0x100c2468
mov eax, 0x17
mov dword [esp + 0x34], 0
push 0
mov dword [esp + 0x4c], 0
mov word [esp + 0x34], ax
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x10111684]
mov word [esp + 0x32], ax
lea eax, [esp + 0x30]
push 0x1c
push eax
push dword [0x1014bb08]
movups xmmword [esp + 0x44], xmm0
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x100c2485
test dword [0x1014bac8], 0x80000000
je 0x100c2471
cmp dword [0x1014bb1c], 0
je 0x100c2471
call esi
push eax
push str.Cant_bind_socket_for_SCTP_IPv6__errno___d_._n
call dword [0x1014bb1c]
add esp, 8
push dword [0x1014bb08]
call edi
mov dword [0x1014bb08], 0xffffffff
jmp 0x100c24a8
push 0x20000
push dword [0x1014bb08]
call fcn.100c27e0
push 0x20000
push dword [0x1014bb08]
call fcn.100c2840
add esp, 0x10
cmp dword [0x1014bb0c], 0xffffffff
jne 0x100c267f
cmp dword [0x1014baac], 0
je 0x100c267f
push 0x11
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1014bb0c], eax
cmp eax, 0xffffffff
jne 0x100c2503
test dword [0x1014bac8], 0x80000000
je 0x100c2503
cmp dword [0x1014bb1c], 0
je 0x100c2503
call esi
push eax
push str.Cant_create_socket_for_SCTP_UDP_IPv6__errno___d_._n
call dword [0x1014bb1c]
mov eax, dword [0x1014bb0c]
add esp, 8
push 4
lea ecx, [esp + 0x18]
push ecx
push 0x13
push 0x29
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100c2543
test dword [0x1014bac8], 0x80000000
je 0x100c2648
cmp dword [0x1014bb1c], 0
je 0x100c2648
call esi
push eax
push str.Cant_set_IPV6_PKTINFO_on_socket_for_SCTP_UDP_IPv6__errno___d_._n
jmp 0x100c263f
push 4
lea eax, [esp + 0x18]
push eax
push 0x1b
push 0x29
push dword [0x1014bb0c]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100c2584
test dword [0x1014bac8], 0x80000000
je 0x100c2584
cmp dword [0x1014bb1c], 0
je 0x100c2584
call esi
push eax
push str.Cant_set_IPV6_V6ONLY_on_socket_for_SCTP_UDP_IPv6__errno___d_._n
call dword [0x1014bb1c]
add esp, 8
push 4
lea eax, [esp + 0x1c]
push eax
push 0x1006
push 0xffff
push dword [0x1014bb0c]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100c25cc
test dword [0x1014bac8], 0x80000000
je 0x100c2648
cmp dword [0x1014bb1c], 0
je 0x100c2648
call esi
push eax
push str.Cant_set_timeout_on_socket_for_SCTP_UDP_IPv6__errno___d_._n
jmp 0x100c263f
xorps xmm0, xmm0
mov dword [esp + 0x48], 0
mov eax, 0x17
movaps xmmword [esp + 0x30], xmm0
mov word [esp + 0x30], ax
movzx eax, word [0x1014baac]
push eax
movq qword [esp + 0x44], xmm0
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x10111684]
mov word [esp + 0x32], ax
lea eax, [esp + 0x30]
push 0x1c
push eax
push dword [0x1014bb0c]
movups xmmword [esp + 0x44], xmm0
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x100c265c
test dword [0x1014bac8], 0x80000000
je 0x100c2648
cmp dword [0x1014bb1c], 0
je 0x100c2648
call esi
push eax
push str.Cant_bind_socket_for_SCTP_UDP_IPv6__errno___d_._n
call dword [0x1014bb1c]
add esp, 8
push dword [0x1014bb0c]
call edi
mov dword [0x1014bb0c], 0xffffffff
jmp 0x100c267f
push 0x20000
push dword [0x1014bb0c]
call fcn.100c27e0
push 0x20000
push dword [0x1014bb0c]
call fcn.100c2840
add esp, 0x10
cmp dword [0x1014baf8], 0xffffffff
je 0x100c26d1
push 0x100c0fd0
push 0x1014bb00
call fcn.100c0f60
add esp, 8
test eax, eax
je 0x100c26d1
test dword [0x1014bac8], 0x80000000
je 0x100c26bf
mov ecx, dword [0x1014bb1c]
test ecx, ecx
je 0x100c26bf
push eax
push str.Cant_start_SCTP_IPv4_recv_thread___d_._n
call ecx
add esp, 8
push dword [0x1014baf8]
call edi
mov dword [0x1014baf8], 0xffffffff
cmp dword [0x1014bafc], 0xffffffff
je 0x100c2723
push 0x100c16f0
push 0x1014bb04
call fcn.100c0f60
add esp, 8
test eax, eax
je 0x100c2723
test dword [0x1014bac8], 0x80000000
je 0x100c2711
mov ecx, dword [0x1014bb1c]
test ecx, ecx
je 0x100c2711
push eax
push str.Cant_start_SCTP_UDP_IPv4_recv_thread___d_._n
call ecx
add esp, 8
push dword [0x1014bafc]
call edi
mov dword [0x1014bafc], 0xffffffff
cmp dword [0x1014bb08], 0xffffffff
je 0x100c2775
push 0x100c1310
push 0x1014bb10
call fcn.100c0f60
add esp, 8
test eax, eax
je 0x100c2775
test dword [0x1014bac8], 0x80000000
je 0x100c2763
mov ecx, dword [0x1014bb1c]
test ecx, ecx
je 0x100c2763
push eax
push str.Cant_start_SCTP_IPv6_recv_thread___d_._n
call ecx
add esp, 8
push dword [0x1014bb08]
call edi
mov dword [0x1014bb08], 0xffffffff
cmp dword [0x1014bb0c], 0xffffffff
je 0x100c27c7
push 0x100c1ac0
push 0x1014bb14
call fcn.100c0f60
add esp, 8
test eax, eax
je 0x100c27c7
test dword [0x1014bac8], 0x80000000
je 0x100c27b5
mov ecx, dword [0x1014bb1c]
test ecx, ecx
je 0x100c27b5
push eax
push str.Cant_start_SCTP_UDP_IPv6_recv_thread___d_._n
call ecx
add esp, 8
push dword [0x1014bb0c]
call edi
mov dword [0x1014bb0c], 0xffffffff
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.100f06e3
mov esp, ebp
pop ebp
ret