Function at 0x6d6656ee
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x30], eax
call sym.net.dll__ipv6_available_0
push dword [0x6d6715b4]
mov edi, eax
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x17c]
push dword [0x6d6715a8]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x17c]
push dword [0x6d671640]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x30]
mov eax, dword [esi]
push esi
call dword [eax + 0x190]
cmp eax, 2
jne 0x6d66575f
test edi, edi
jne 0x6d66575f
push str.Protocol_family_not_supported
jmp 0x6d66592e
cmp dword [ebp - 0x34], 0
je 0x6d665929
test edi, edi
je 0x6d665777
cmp dword [ebp - 0x28], 0
je 0x6d665929
push dword [0x6d67117c]
mov eax, dword [esi]
push dword [ebp - 0x34]
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x24], eax
test edi, edi
je 0x6d6657a5
push dword [0x6d67117c]
mov eax, dword [esi]
push dword [ebp - 0x28]
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x30], 0
jne 0x6d6657bb
push str.inet_address_argument
push esi
call sub.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d665939
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push esi
call sym.net.dll__NET_SockaddrToInetAddress_12
test eax, eax
jne 0x6d665939
lea eax, [ebp - 0x20]
test edi, edi
je 0x6d665877
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
call sym.net.dll__NET_SockaddrToInetAddress_12
mov edi, eax
cmp edi, 0xffffffff
je 0x6d66588a
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x24]
je 0x6d66583e
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x6d66582b
mov eax, dword [esi]
push 0
push dword [0x6d6715b4]
push ebx
push esi
call dword [eax + 0x1a0]
jmp 0x6d66583e
mov ecx, dword [esi]
push eax
push dword [0x6d67117c]
push dword [ebp - 0x34]
push esi
call dword [ecx + 0x1b4]
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x2c]
je 0x6d665885
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x6d665862
mov eax, dword [esi]
push 0
push dword [0x6d6715a8]
push ebx
push esi
call dword [eax + 0x1a0]
jmp 0x6d665885
mov ecx, dword [esi]
push eax
push dword [0x6d67117c]
push dword [ebp - 0x28]
push esi
call dword [ecx + 0x1b4]
jmp 0x6d665885
push dword [ebp - 0x44]
push eax
push dword [ebp - 0x24]
call sym.net.dll__NET_Bind_12
mov edi, eax
cmp edi, 0xffffffff
jne 0x6d66589c
push str.JVM_Bind
push esi
call fcn.6d663a00
pop ecx
pop ecx
jmp 0x6d665939
push dword [ebp - 0x30]
mov eax, dword [esi]
push dword [0x6d6715a0]
push ebx
push esi
call dword [eax + 0x1a0]
cmp dword [ebp + 0x14], 0
jne 0x6d665914
xor eax, eax
cmp word [ebp - 0x20], 0x17
setne al
dec eax
and eax, 0xc
add eax, 0x10
cmp word [ebp - 0x20], 2
mov dword [ebp - 0x28], eax
je 0x6d6658d6
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x6d6658f3
push str.getsockname_in_plain_socketBind
jmp 0x6d66588f
movzx eax, word [ebp - 0x1e]
push eax
call dword [sym.imp.ws2_32.dll_ntohs]
mov ecx, dword [esi]
movzx eax, ax
push eax
push dword [0x6d6715b8]
push ebx
push esi
call dword [ecx + 0x1b4]
jmp 0x6d665939
push dword [ebp + 0x14]
mov eax, dword [esi]
push dword [0x6d6715b8]
push ebx
push esi
call dword [eax + 0x1b4]
jmp 0x6d665939
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d66b1da
leave
ret 0x10