Function at 0x6c133710
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x15c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], sym._winsock_startup_12
mov dword [esp], 0x6c147314
call dword [sym.imp.kernel32.dll_InitOnceExecuteOnce]
mov ecx, dword [ebx + 0x90]
sub esp, 0x10
test ecx, ecx
je 0x6c133880
mov dword [esp + 8], 0
mov dword [esp + 4], 1
movsx eax, word [ebx + 0x10]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_socket]
mov edx, 0x2efd
mov dword [esi], eax
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x6c133790
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi + 8]
test edx, edx
je 0x6c1337c1
lea edx, [ebp - 0x11c]
mov dword [esp + 4], 0x8004667e
mov dword [ebp - 0x11c], 1
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
mov eax, dword [esi]
sub esp, 0xc
mov dword [esi + 8], 0
mov edx, dword [ebx + 0x90]
add ebx, 0x10
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_connect]
lea edx, [ebp - 0x11c]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x6c1338a8
mov eax, dword [esi]
mov dword [esp + 0xc], edx
mov dword [ebp - 0x11c], 1
mov dword [esp + 0x10], 4
mov dword [esp + 8], 1
mov dword [esp + 4], 6
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_setsockopt]
xor edx, edx
sub esp, 0x14
test eax, eax
jns 0x6c133784
test byte [0x6c1471b4], 4
je 0x6c133784
mov dword [esp + 0xc], str.setsockopt_TCP_NODELAY__failed_n
mov dword [esp + 8], str.create_netconn_socket
mov dword [esp + 4], 0x6c1471b4
mov dword [esp], 2
mov dword [ebp - 0x13c], edx
call sym._wine_dbg_log.constprop.0_6
mov edx, dword [ebp - 0x13c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret
mov dword [esp + 8], 0x12b
mov dword [esp + 4], str..._src_wine_dlls_wininet_netconnection.c
mov dword [esp], str.server__addr_len
call dword [sym.imp.ucrtbase.dll__assert]
jmp 0x6c133758
mov dword [ebp - 0x13c], edx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, dword [ebp - 0x13c]
sub eax, 0x2733
cmp eax, 1
jbe 0x6c1338f0
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov edx, 0x2efd
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi]
imul edi, edi, 0x3e8
mov dword [esp + 8], edx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x128], 4
mov dword [ebp - 0x118], eax
inc eax
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x11c], 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_select]
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x12c], eax
inc eax
sub esp, 0x14
cmp eax, 1
jbe 0x6c1338c4
lea eax, [ebp - 0x128]
mov dword [ebp - 0x13c], edx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x12c]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov dword [esp + 8], 0x1007
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_getsockopt]
mov edx, dword [ebp - 0x13c]
sub esp, 0x14
or eax, dword [ebp - 0x12c]
jne 0x6c1338c4
jmp 0x6c1337f4