Function at 0x4bc2f6
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
push ebx
xor eax, eax
mov dword [esp + 4], ecx
inc eax
mov dword [esp + 8], 0x10
push esi
push edi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
push 2
pop esi
push 0x7f000001
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov word [esp + 0x20], si
call dword [sym.imp.WS2_32.dll_htonl]
xor ebx, ebx
mov dword [esp + 0x20], eax
push ebx
push 1
xor eax, eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
mov word [esp + 0x2a], ax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4bc3c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x2c]
push 0x147
lea eax, [esp + 0x4c]
mov dword [esp + 0x30], ebx
push str..._bnl_dl2_net_source_netSelectSocketPollSet.cpp
mov dword [esp + 0x38], str.failed_to_create_socket:__s
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x200
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 4
mov dword [esp + 0x4c], str.Network
call fcn.00496d52
lea edx, [esp + 0xc]
lea ecx, [esp + 0x2c]
call fcn.004b80fd
lea ecx, [esp + 0x2c]
call fcn.0042bc04
push 2
pop eax
jmp 0x4bc674
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4bc44d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x30], str.failed_to_configured_socket_via_setsockopt__:__s
push 0x14e
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x4c]
mov dword [esp + 0x30], ebx
push str..._bnl_dl2_net_source_netSelectSocketPollSet.cpp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x200
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 4
mov dword [esp + 0x4c], str.Network
call fcn.00496d52
lea edx, [esp + 0xc]
lea ecx, [esp + 0x2c]
call fcn.004b80fd
lea ecx, [esp + 0x2c]
call fcn.0042bc04
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4bc3bc
push 0x10
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4bc478
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x30], str.failed_to_bind_socket:__s
push 0x156
jmp 0x4bc3f1
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4bc49e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x30], str.failed_to_listen_on_socket:__s
push 0x15e
jmp 0x4bc3f1
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4bc4cf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x30], str.failed_to_obtain_socket_address:__s
push 0x166
jmp 0x4bc3f1
push ebx
push 1
push 2
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bc4f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x30], str.failed_to_create_socket:__s
push 0x16f
jmp 0x4bc3f1
push dword [esp + 0x10]
lea eax, [esp + 0x24c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4bc581
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], str.error_connecting_loopback_socket:__s
mov dword [esp + 0x3c], ebx
push 0x177
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], str.Network
push str..._bnl_dl2_net_source_netSelectSocketPollSet.cpp
mov dword [esp + 0x48], 4
mov dword [esp + 0x40], 0x200
mov dword [esp + 0x3c], eax
call fcn.00496d52
lea edx, [esp + 0xc]
lea ecx, [esp + 0x2c]
call fcn.004b80fd
lea ecx, [esp + 0x2c]
call fcn.0042bc04
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push edi
call esi
jmp 0x4bc3bc
push ebx
push ebx
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4bc5b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
and dword [esp + 0x2c], 0
and dword [esp + 0x3c], 0
mov dword [esp + 0x30], str.error_accepting_loopback_socket_connection:__s
push 0x181
jmp 0x4bc528
push edi
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
call edi
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4bc642
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x18b
and dword [esp + 0x30], 0
lea ecx, [esp + 0x30]
and dword [esp + 0x40], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x4c]
push str..._bnl_dl2_net_source_netSelectSocketPollSet.cpp
mov dword [esp + 0x4c], str.Network
mov dword [esp + 0x48], 4
mov dword [esp + 0x40], 0x200
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], str.error_setting_loopback_to_non_blocking:__s
call fcn.00496d52
lea edx, [esp + 0xc]
lea ecx, [esp + 0x2c]
call fcn.004b80fd
lea ecx, [esp + 0x2c]
call fcn.0042bc04
push esi
call edi
push ebx
call edi
jmp 0x4bc3bc
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4bc668
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x194
jmp 0x4bc5dd
mov eax, dword [esp + 0xc]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret