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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x6d781098]
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 [0x6d7815b4]
mov edi, eax
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x17c]
push dword [0x6d7815a8]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x17c]
push dword [0x6d781640]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x30]
mov eax, dword [esi]
push esi
call dword [eax + 0x190]
cmp eax, 2
jne 0x6d77575f
test edi, edi
jne 0x6d77575f
push str.Protocol_family_not_supported
jmp 0x6d77592e
cmp dword [ebp - 0x34], 0
je 0x6d775929
test edi, edi
je 0x6d775777
cmp dword [ebp - 0x28], 0
je 0x6d775929
push dword [0x6d78117c]
mov eax, dword [esi]
push dword [ebp - 0x34]
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x24], eax
test edi, edi
je 0x6d7757a5
push dword [0x6d78117c]
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 0x6d7757bb
push str.inet_address_argument
push esi
call sub.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d775939
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 fcn.6d77b24a
test eax, eax
jne 0x6d775939
lea eax, [ebp - 0x20]
test edi, edi
je 0x6d775877
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 fcn.6d77b24a
mov edi, eax
cmp edi, 0xffffffff
je 0x6d77588a
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x24]
je 0x6d77583e
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x6d77582b
mov eax, dword [esi]
push 0
push dword [0x6d7815b4]
push ebx
push esi
call dword [eax + 0x1a0]
jmp 0x6d77583e
mov ecx, dword [esi]
push eax
push dword [0x6d78117c]
push dword [ebp - 0x34]
push esi
call dword [ecx + 0x1b4]
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x2c]
je 0x6d775885
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x6d775862
mov eax, dword [esi]
push 0
push dword [0x6d7815a8]
push ebx
push esi
call dword [eax + 0x1a0]
jmp 0x6d775885
mov ecx, dword [esi]
push eax
push dword [0x6d78117c]
push dword [ebp - 0x28]
push esi
call dword [ecx + 0x1b4]
jmp 0x6d775885
push dword [ebp - 0x44]
push eax
push dword [ebp - 0x24]
call sym.net.dll__NET_Bind_12
mov edi, eax
cmp edi, 0xffffffff
jne 0x6d77589c
push str.JVM_Bind
push esi
call fcn.6d773a00
pop ecx
pop ecx
jmp 0x6d775939
push dword [ebp - 0x30]
mov eax, dword [esi]
push dword [0x6d7815a0]
push ebx
push esi
call dword [eax + 0x1a0]
cmp dword [ebp + 0x14], 0
jne 0x6d775914
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 0x6d7758d6
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 0x6d7758f3
push str.getsockname_in_plain_socketBind
jmp 0x6d77588f
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 [0x6d7815b8]
push ebx
push esi
call dword [ecx + 0x1b4]
jmp 0x6d775939
push dword [ebp + 0x14]
mov eax, dword [esi]
push dword [0x6d7815b8]
push ebx
push esi
call dword [eax + 0x1b4]
jmp 0x6d775939
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.6d77b1da
leave
ret 0x10