Function at 0x100757a0
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x1b4
push 0xffffffffffffffff
push 0x100fd45d
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x10143964]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x20], edi
movzx ebx, word [ebp + 0x1bc]
mov eax, dword [0x1014a500]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
test eax, eax
je 0x10075875
cmp dword [eax + 4], 5
jl 0x10075875
push 0
push 0
push 0x101008a0
push 0x64
push str.rtc::impl::TcpServer::listen
push 5
lea ecx, [ebp]
call fcn.10005670
mov dword [ebp - 0x1c], eax
lea esi, [eax + 0x28]
mov dword [ebp - 4], 0
push str.Listening_on_port
push esi
call fcn.10006870
add esp, 8
mov ecx, esi
push ebx
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_short_int_]
mov ebx, dword [0x1014a500]
mov esi, dword [ebx + 8]
cmp esi, dword [ebx + 0xc]
je 0x10075863
mov edi, dword [ebp - 0x1c]
nop
mov ecx, dword [esi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [ebx + 0xc]
jne 0x10075850
mov edi, dword [ebp - 0x20]
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.10006040
mov ebx, dword [ebp - 0x14]
movzx eax, bx
xorps xmm0, xmm0
push eax
lea eax, [ebp + 0x1ad]
movlpd qword [ebp - 0x3c], xmm0
push eax
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 6
mov dword [ebp - 0x4c], 9
mov dword [ebp - 0x18], 0
call fcn.1001a330
mov ecx, eax
xor edx, edx
lea eax, [ebp + 0x1ad]
mov dword [ebp + 0x180], edx
add esp, 8
mov dword [ebp + 0x190], edx
mov esi, 0xf
mov dword [ebp + 0x194], esi
cmp ecx, eax
je 0x100758f8
sub eax, ecx
push eax
push ecx
lea ecx, [ebp + 0x180]
call fcn.100075f0
mov esi, dword [ebp + 0x194]
mov edx, dword [ebp + 0x180]
lea ecx, [ebp - 0x18]
cmp esi, 0x10
push ecx
lea ecx, [ebp - 0x4c]
lea eax, [ebp + 0x180]
push ecx
cmovae eax, edx
push eax
push 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, dword [ebp + 0x194]
mov esi, eax
cmp edx, 0x10
jb 0x10075953
mov ecx, dword [ebp + 0x180]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10075949
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10075949
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100f01b2
add esp, 8
test esi, esi
jne 0x10075b2c
mov eax, dword [ebp - 0x18]
mov esi, eax
mov dword [ebp - 4], 1
test esi, esi
je 0x10075981
nop dword [eax + eax]
cmp dword [esi + 4], 0x17
je 0x1007597d
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10075970
test esi, esi
jne 0x100759a5
mov esi, eax
test esi, esi
je 0x10075b47
nop dword [eax + eax]
cmp dword [esi + 4], 2
je 0x1007599d
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10075990
test esi, esi
je 0x10075b47
lea ebx, [edi + 8]
mov byte [ebp - 0x28], 0
push ebx
mov dword [ebp - 0x2c], ebx
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x10075b62
mov byte [ebp - 0x28], 1
mov eax, dword [0x1014a500]
mov byte [ebp - 4], 2
test eax, eax
je 0x10075a23
cmp dword [eax + 4], 6
jl 0x10075a23
push 0
push 0
push 0x101008a0
push 0x7e
push str.rtc::impl::TcpServer::listen
push 6
lea ecx, [ebp]
call fcn.10005670
mov ebx, eax
lea ecx, [ebx + 0x28]
mov byte [ebp - 4], 3
push str.Creating_TCP_server_socket
push ecx
call fcn.10006870
mov ecx, dword [0x1014a500]
add esp, 8
push ebx
call fcn.10006c30
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.10006040
lea ebx, [edi + 8]
push 6
push 1
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x10075b68
mov dword [ebp - 0x20], 0
cmp dword [esi + 4], 0x17
jne 0x10075a5d
push 4
lea ecx, [ebp - 0x20]
push ecx
push 0x1b
push 0x29
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x10075b83
push dword [esi + 0x10]
push dword [esi + 0x18]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x10075b9e
push 0xa
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x10075c53
mov eax, dword [ebp - 0x14]
test ax, ax
jne 0x10075af2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x80
push eax
lea eax, [ebp + 0x100]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
js 0x10075ced
movzx eax, word [ebp + 0x100]
sub eax, 2
je 0x10075ae6
sub eax, 0x15
jne 0x10075d0e
push dword [ebp + 0x102]
call dword [sym.imp.WS2_32.dll_ntohs]
push ebx
mov word [edi], ax
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1b0]
xor ecx, ebp
call fcn.100f06e3
lea esp, [ebp + 0x1b4]
pop ebp
ret 4
push str.Resolution_failed_for_local_address
lea ecx, [ebp - 0x58]
call fcn.10025c30
push 0x10124fbc
lea eax, [ebp - 0x58]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.No_suitable_address_family_found
lea ecx, [ebp - 0x64]
call fcn.10025c30
push 0x10124fbc
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
push str.TCP_server_socket_creation_failed
lea ecx, [ebp - 0x70]
call fcn.10025c30
push 0x10124fbc
lea eax, [ebp - 0x70]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Failed_to_set_socket_non_blocking_mode
lea ecx, [ebp - 0x7c]
call fcn.10025c30
push 0x10124fbc
lea eax, [ebp - 0x7c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.10004650
test eax, eax
je 0x10075c32
push 3
mov ecx, eax
call fcn.10007ab0
test al, al
je 0x10075c32
push 0
push 0
push 0x101008a0
push 0x92
push str.rtc::impl::TcpServer::listen
push 3
lea ecx, [ebp]
call fcn.10005670
mov ecx, eax
mov byte [ebp - 4], 4
call sym.datachannel.dll_private:_class_std::allocator_class_std::shared_ptr_struct_rtc::NalUnit______thiscall_std::vector_class_std::shared_ptr_struct_rtc::NalUnit___class_std::allocator_class_std::shared_ptr_struct_rtc::NalUnit___::_Getal_void_
push str.TCP_server_socket_binding_on_port
mov ecx, eax
call fcn.10028490
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.10003ba0
push str._failed__errno
mov ecx, eax
call fcn.10028490
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
mov ecx, esi
lea eax, [ebp - 0x14]
push eax
call fcn.10038820
push eax
call fcn.10004650
mov ecx, eax
call fcn.10006c30
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.10006040
push str.TCP_server_socket_binding_failed
lea ecx, [ebp - 0x88]
call fcn.10025c30
push 0x10124fbc
lea eax, [ebp - 0x88]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.10004650
test eax, eax
je 0x10075ccc
push 3
mov ecx, eax
call fcn.10007ab0
test al, al
je 0x10075ccc
push 0
push 0
push 0x101008a0
push 0x9a
push str.rtc::impl::TcpServer::listen
push 3
lea ecx, [ebp]
call fcn.10005670
mov ecx, eax
mov byte [ebp - 4], 5
call sym.datachannel.dll_private:_class_std::allocator_class_std::shared_ptr_struct_rtc::NalUnit______thiscall_std::vector_class_std::shared_ptr_struct_rtc::NalUnit___class_std::allocator_class_std::shared_ptr_struct_rtc::NalUnit___::_Getal_void_
push str.TCP_server_socket_listening_failed__errno
mov ecx, eax
call fcn.10028490
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
mov ecx, esi
lea eax, [ebp - 0x14]
push eax
call fcn.10038820
push eax
call fcn.10004650
mov ecx, eax
call fcn.10006c30
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.10006040
push str.TCP_server_socket_listening_failed
lea ecx, [ebp - 0x94]
call fcn.10025c30
push 0x10124fbc
lea eax, [ebp - 0x94]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.getsockname_failed
lea ecx, [ebp - 0xa0]
call fcn.10025c30
push 0x10124fbc
lea eax, [ebp - 0xa0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Unknown_address_family
lea ecx, [ebp - 0xac]
call fcn.10005970
push 0x1012086c
lea eax, [ebp - 0xac]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10075d51
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
push 0
push 0
call sub.VCRUNTIME140.dll__CxxThrowException
int3