Function at 0x10016e20
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005275b
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x1006b5d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov byte [ebp - 0x24], 0
push 0x10059914
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], 0
call fcn.1001c9d0
mov eax, dword [esi + 0x1c]
cmp eax, 5
ja case.default.0x10016e76
jmp dword [eax*4 + 0x10017084]
mov eax, dword [0x10081210]
add eax, 6
push 0x10
lea ecx, [esi + 0x34]
mov dword [esi + 0xb4], eax
mov edx, dword [esi + 0x30]
push ecx
push edx
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10016ed9
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jl 0x10016ebb
cmp eax, 0x2735
jle 0x10016ed9
cmp eax, 0x2748
je 0x10016ed9
mov ecx, dword [0x10081210]
add ecx, dword [esi + 0xb0]
mov dword [esi + 0xb8], ecx
mov dword [esi + 0x1c], 5
jmp case.0x10016e76.0
mov dword [esi + 0x1c], 2
jmp case.0x10016e76.0
mov ebx, 1
test byte [esi + 0x5c], bl
je 0x10016f9f
mov ecx, dword [esi + 0x30]
xor eax, eax
lea edx, [ebp - 0x128]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push edx
lea eax, [ebp - 0x20]
push eax
push ecx
mov dword [ebp - 0x128], 0x10
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x10016f42
lea eax, [esi + 0x34]
lea edx, [ebp - 0x20]
lea ecx, [ebx + 0xf]
sub edx, eax
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0x10016f7e
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x10016f30
mov eax, dword [esi + 0x30]
and dword [esi + 0x5c], 0xfffffff8
push 2
push eax
call dword [sym.imp.ws2_32.dll_shutdown]
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.ws2_32.dll_closesocket]
mov ecx, esi
mov dword [esi + 0x30], 0xffffffff
call fcn.10016150
test al, al
jne 0x10016fbd
push 0
push 0
mov ecx, esi
call fcn.10016080
jmp case.0x10016e76.0
mov eax, dword [esi + 0x68]
mov dword [esi + 0x1c], 3
test eax, eax
je case.0x10016e76.0
mov edx, dword [esi + 0x7c]
push edx
push esi
call eax
add esp, 8
jmp case.0x10016e76.0
mov ecx, esi
call fcn.10016110
test eax, eax
je 0x10016fd8
mov eax, dword [esi + 0xac]
lea ecx, [eax - 1]
mov dword [esi + 0xac], ecx
test eax, eax
js case.0x10016e76.4
mov edx, dword [0x10081210]
add edx, dword [esi + 0xb0]
mov dword [esi + 0xb8], edx
mov dword [esi + 0x1c], 5
jmp case.0x10016e76.0
mov eax, dword [0x10081210]
cmp eax, dword [esi + 0xb4]
jl case.0x10016e76.0
mov eax, dword [esi + 0xac]
lea ecx, [eax - 1]
mov dword [esi + 0xac], ecx
test eax, eax
jg 0x10017003
push 0
push 0
mov ecx, esi
call fcn.10016080
mov edx, dword [esi + 0x30]
and dword [esi + 0x5c], 0xfffffff8
push 2
push edx
call dword [sym.imp.ws2_32.dll_shutdown]
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.ws2_32.dll_closesocket]
mov ecx, esi
mov dword [esi + 0x30], 0xffffffff
call fcn.10016150
test al, al
je case.0x10016e76.4
mov dword [esi + 0x1c], ebx
jmp case.0x10016e76.0
mov ecx, dword [0x10081210]
cmp ecx, dword [esi + 0xb8]
jl case.0x10016e76.0
mov dword [esi + 0x1c], 1
jmp case.0x10016e76.0
mov dword [esi + 0x1c], 4
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], 0xffffffff
call fcn.1001c5a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003b1fb
mov esp, ebp
pop ebp
ret