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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x1010cbc
mov eax, 0x80070057
jmp 0x1010f57
call fcn.0101027d
test eax, eax
jl 0x1010f57
push ebx
push edi
push 0
push 3
lea ecx, [esi + 0x120]
call fcn.0101323d
mov ecx, dword [esi + 0x118]
mov eax, dword [esi + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [esi + 0x118]
or dword [esi + 0xc], 0xffffffff
shr edi, 3
mov dword [ebp - 4], eax
shl edi, 4
mov eax, ecx
xor edi, ecx
shl eax, 0x1e
sar eax, 0x1f
and edi, 0x10
xor edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
shl ebx, 0x1b
mov dword [esi + 0x118], edi
movzx ecx, word [eax]
sar ebx, 0x1f
dec ecx
dec ecx
je 0x1010d66
sub ecx, 0x15
je 0x1010d30
mov edi, 0x80070057
jmp 0x1010f09
xor ecx, ecx
cmp dword [ebp + 8], 6
mov dword [ebp - 0xc], 0x1c
setne cl
add eax, 8
push eax
inc ecx
mov dword [ebp - 8], ecx
call fcn.01010196
neg al
sbb eax, eax
inc eax
add eax, eax
xor eax, edi
and eax, 2
xor eax, edi
mov dword [esi + 0x118], eax
mov eax, dword [ebp + 0xc]
jmp 0x1010d91
xor ecx, ecx
cmp dword [ebp + 8], 6
mov dword [ebp - 0xc], 0x10
setne cl
inc ecx
mov dword [ebp - 8], ecx
xor ecx, ecx
cmp dword [eax + 4], ecx
setne cl
add ecx, ecx
xor ecx, edi
and ecx, 2
xor ecx, edi
mov dword [esi + 0x118], ecx
xor edx, edx
inc edx
cmp dword [ebp + 8], 0x11
jne 0x1010d9d
push 0x15
pop edx
mov ecx, dword [0x1017b28]
test ecx, ecx
movzx eax, word [eax]
je 0x1010dba
push edx
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 8]
push eax
call ecx
jmp 0x1010dc7
push dword [ebp + 8]
push dword [ebp - 8]
push eax
call dword [0x1001258]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x1010de0
call dword [0x1001284]
test eax, eax
jle 0x1010e21
and eax, 0xffff
jmp 0x1010e1c
mov ecx, dword [ebp + 0x10]
shr ecx, 1
not ecx
and ecx, 1
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0x16
mov edi, 0xffff
je 0x1010e28
push 4
lea ecx, [ebp - 0x10]
push ecx
push 4
push edi
push eax
call dword [0x1001288]
cmp eax, 0xffffffff
jne 0x1010e28
call dword [0x1001284]
test eax, eax
jle 0x1010e21
and eax, edi
or eax, 0x80070000
mov edi, eax
jmp 0x1010f09
cmp dword [ebp + 8], 0x11
jne 0x1010e4d
test byte [ebp + 0x10], 4
je 0x1010e4d
push 4
lea eax, [ebp + 0x10]
push eax
push 0xfffffffffffffffb
push edi
push dword [esi + 0xc]
mov dword [ebp + 0x10], 1
call dword [0x1001288]
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push dword [esi + 0xc]
call dword [0x100125c]
cmp eax, 0xffffffff
jne 0x1010eb9
call dword [0x1001284]
cmp eax, 0x271d
je 0x1010e75
cmp eax, 0x2740
jne 0x1010e10
cmp dword [ebp - 4], 0xffffffff
je 0x1010e10
cmp dword [ebp - 0x10], 0
je 0x1010e10
push dword [esi + 0xc]
call dword [0x1001264]
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
and ebx, 1
and eax, 1
shl ebx, 3
or ebx, eax
mov eax, dword [esi + 0x118]
and eax, 0xffffffed
add ebx, ebx
or ebx, eax
xor eax, eax
mov dword [esi + 0x118], ebx
inc eax
jmp 0x1010f55
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 0x18]
push eax
push dword [esi + 0xc]
mov dword [ebp - 0x18], 0x80
call dword [0x1001270]
cmp eax, 0xffffffff
je 0x1010e10
and dword [esi + 0x118], 0xfffffff7
cmp dword [ebp + 8], 5
jne 0x1010ef6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x44]
mov dword [esi + 0x5c], ecx
mov eax, dword [eax + 0x48]
mov dword [esi + 0x60], eax
push dword [ebp - 8]
mov ecx, esi
push dword [ebp + 8]
call fcn.010105c5
mov edi, eax
test edi, edi
jge 0x1010f31
cmp dword [ebp - 4], 0xffffffff
je 0x1010f1a
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.01010b4f
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x1010f2d
push eax
call dword [0x1001264]
or dword [esi + 0xc], 0xffffffff
mov eax, edi
jmp 0x1010f55
cmp dword [0x1017b48], 0
jne 0x1010f42
push dword [esi + 0xc]
call fcn.010103ba
cmp dword [ebp - 4], 0xffffffff
je 0x1010f53
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.01010b4f
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 0xc