Function at 0x4bb1cd
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
push esi
push edi
push 2
pop esi
xor edi, edi
mov dword [esp + 0xc], ecx
inc edi
mov dword [esp + 0x10], 0x10
xorps xmm0, xmm0
mov dword [esp + 0x18], edi
push 0x7f000001
mov dword [esp + 0x18], edi
movlpd qword [esp + 0x28], xmm0
mov word [esp + 0x20], si
call dword [sym.imp.WS2_32.dll_htonl]
xor ebx, ebx
mov dword [esp + 0x20], eax
push ebx
push edi
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 0x4bb29a
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 0x797140
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.00492518
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x10]
call fcn.004ba84a
lea ecx, [esp + 0x2c]
call fcn.0042e42b
push 2
pop eax
jmp 0x4bb54d
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 0x4bb324
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 0x797140
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.00492518
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
call fcn.004ba84a
lea ecx, [esp + 0x2c]
call fcn.0042e42b
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4bb292
push 0x10
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4bb34f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x30], str.failed_to_bind_socket:__s
push 0x156
jmp 0x4bb2c7
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4bb375
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x30], str.failed_to_listen_on_socket:__s
push 0x15e
jmp 0x4bb2c7
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 0x4bb3a6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x30], str.failed_to_obtain_socket_address:__s
push 0x166
jmp 0x4bb2c7
push ebx
push 1
push 2
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bb3cc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x30], str.failed_to_create_socket:__s
push 0x16f
jmp 0x4bb2c7
push dword [esp + 0x10]
lea eax, [esp + 0x24c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4bb459
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 0x797140
mov dword [esp + 0x48], 4
mov dword [esp + 0x40], 0x200
mov dword [esp + 0x3c], eax
call fcn.00492518
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
call fcn.004ba84a
lea ecx, [esp + 0x2c]
call fcn.0042e42b
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push edi
call esi
jmp 0x4bb292
push ebx
push ebx
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4bb48b
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 0x4bb3ff
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 0x4bb51b
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 0x797140
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.00492518
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
call fcn.004ba84a
lea ecx, [esp + 0x2c]
call fcn.0042e42b
push esi
call edi
push ebx
call edi
jmp 0x4bb292
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4bb541
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x194
jmp 0x4bb4b5
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