Function at 0x481510
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x513158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
call fcn.004ab180
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea ebp, [esi + 0x78]
mov eax, ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], ecx
xor edi, edi
lea ecx, [esi + 0x88]
mov dword [esp + 0x34], edi
mov dword [esi], 0x533060
mov dword [esi + 0x20], 0x533050
mov dword [eax + 0xc], edx
call fcn.004ab180
push edi
push edi
lea ecx, [esi + 0x100]
mov byte [esp + 0x3c], 1
call fcn.00486c20
push 0x10000
lea ecx, [esi + 0x208]
mov byte [esp + 0x38], 2
mov dword [esi + 0x1f8], edi
mov dword [esi + 0x1fc], 0x40240000
mov dword [esi + 0x200], edi
call fcn.00488890
lea ecx, [esi + 0x2c8]
mov byte [esp + 0x34], 3
call fcn.004ab180
push edi
push 2
mov ebx, 4
push 2
mov byte [esp + 0x40], bl
mov dword [esi + 0x340], edi
mov dword [esi + 0x344], edi
mov dword [esi + 0x348], edi
mov dword [esi + 0x34c], edi
mov dword [esi + 0x350], edi
mov dword [esi + 0x354], edi
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x200], eax
jne 0x48167c
push 0x22
push str.gameNetConnection.cpp
push str.NetConnection::NetConnection
push str.SOCKET_ERROR
call edi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00480380
add esp, 8
mov ecx, dword [eax]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x51fa70
mov byte [esp + 0x50], 5
call fcn.00402110
mov edx, dword [0x55cd0c]
mov eax, dword [edx + 0x860]
push eax
call fcn.0044ce20
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48167c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esi + 0x200]
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x481711
push 0x27
push str.gameNetConnection.cpp
push str.NetConnection::NetConnection
push str.ioctlsocket_wsaSocket__FIONBIO__nonBlocking_
call edi
push eax
lea edx, [esp + 0x50]
push edx
call fcn.00480380
add esp, 8
mov eax, dword [eax]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x51fa70
mov byte [esp + 0x50], 6
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x860]
push edx
call fcn.0044ce20
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481711
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esi + 0x200]
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x1002
push 0xffff
push ecx
mov dword [esp + 0x2c], 0x40000
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4817ac
push 0x29
push str.gameNetConnection.cpp
push str.NetConnection::NetConnection
push str.setsockopt_wsaSocket__SOL_SOCKET__SO_RCVBUF___char__receiveBufferSize__sizeof_int__
call edi
push eax
lea edx, [esp + 0x50]
push edx
call fcn.00480380
add esp, 8
mov eax, dword [eax]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x51fa70
mov byte [esp + 0x50], 7
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x860]
push edx
call fcn.0044ce20
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4817ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esi + 0x200]
push ebx
lea eax, [esp + 0x20]
push eax
push 0x20
push 0xffff
push ecx
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x481844
push 0x2b
push str.gameNetConnection.cpp
push str.NetConnection::NetConnection
push str.setsockopt_wsaSocket__SOL_SOCKET__SO_BROADCAST___char__allowBroadcasting__sizeof_int__
call edi
push eax
lea edx, [esp + 0x50]
push edx
call fcn.00480380
add esp, 8
mov eax, dword [eax]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x51fa70
mov byte [esp + 0x50], 8
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x860]
push edx
call fcn.0044ce20
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481844
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
mov dword [esp + 0x14], 0x10
call fcn.0047fef0
mov ecx, dword [eax]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Binding_to_address:__s.
mov byte [esp + 0x40], 9
call fcn.00402110
mov eax, dword [0x55cd0c]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.004a7680
add esp, 0x10
mov ecx, dword [eax]
push ecx
push str.NetConnection::NetConnection
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str._s__:__s
mov byte [esp + 0x44], 0xa
call fcn.00402110
mov edx, dword [0x55cd0c]
mov eax, dword [edx + 0x85c]
push eax
call fcn.00475320
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x34], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4818da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4818fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x200]
push eax
push ebp
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x481985
push 0x36
push str.gameNetConnection.cpp
push str.NetConnection::NetConnection
push str.bind_wsaSocket_address.getSockAddr___sizeofSockAddr_
call edi
push eax
lea edx, [esp + 0x50]
push edx
call fcn.00480380
add esp, 8
mov eax, dword [eax]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x51fa70
mov byte [esp + 0x50], 0xb
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x860]
push edx
call fcn.0044ce20
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481985
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esi + 0x200]
lea eax, [esp + 0x10]
push eax
push ebp
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.0047fef0
mov eax, dword [eax]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Bound_to_address:__s.
mov byte [esp + 0x40], 0xc
call fcn.00402110
mov edx, dword [0x55cd0c]
lea ecx, [esp + 0x44]
push ecx
push edx
call fcn.004a7680
add esp, 0x10
mov eax, dword [eax]
push eax
push str.NetConnection::NetConnection
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str._s__:__s
mov byte [esp + 0x44], 0xd
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x85c]
push edx
call fcn.00475320
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x34], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481a27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481a49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.Done.
push str.NetConnection::NetConnection
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str._s__:__s
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x85c]
push ecx
call fcn.00475320
mov ecx, dword [esp + 0x3c]
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 0x10