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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x38], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x30], eax
call sym.net.dll__ipv6_available_0
push dword [0x10012588]
mov ebx, eax
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x17c]
push dword [0x1001257c]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x17c]
push dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
push esi
call fcn.1000aba4
pop ecx
pop ecx
mov edi, eax
mov eax, dword [esi]
push esi
call dword [eax + 0x390]
test al, al
jne 0x10009ba5
cmp edi, 2
jne 0x100099bb
test ebx, ebx
jne 0x100099bb
push str.Protocol_family_not_supported
jmp 0x10009b9a
cmp dword [ebp - 0x34], 0
je 0x10009b95
test ebx, ebx
je 0x100099d3
cmp dword [ebp - 0x28], 0
je 0x10009b95
push dword [0x10012218]
mov eax, dword [esi]
push dword [ebp - 0x34]
push esi
call dword [eax + 0x190]
mov edi, eax
test ebx, ebx
je 0x10009a00
push dword [0x10012218]
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 0x10009a16
push str.inet_address_argument
push esi
call sub.java.dll__JNU_ThrowNullPointerException_8
jmp 0x10009ba5
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push esi
call sym.net.dll__NET_BindV6_8
test eax, eax
jne 0x10009ba5
push dword [ebp + 0x18]
lea eax, [ebp - 0x20]
test ebx, ebx
je 0x10009ae4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x40], edi
call sym.net.dll__NET_BindV6_8
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10009aba
mov eax, dword [ebp - 0x40]
cmp eax, edi
je 0x10009a95
mov edi, eax
cmp eax, 0xffffffff
jne 0x10009a82
mov eax, dword [esi]
push 0
push dword [0x10012588]
push dword [ebp - 0x24]
push esi
call dword [eax + 0x1a0]
jmp 0x10009a95
mov ecx, dword [esi]
push eax
push dword [0x10012218]
push dword [ebp - 0x34]
push esi
call dword [ecx + 0x1b4]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x2c]
je 0x10009af0
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x10009ace
mov ecx, dword [esi]
push eax
push dword [0x10012218]
push dword [ebp - 0x28]
push esi
call dword [ecx + 0x1b4]
jmp 0x10009af0
mov eax, dword [esi]
push 0
push dword [0x10012588]
push dword [ebp - 0x24]
push esi
call dword [eax + 0x1a0]
mov eax, dword [esi]
push 0
push dword [0x1001257c]
push dword [ebp - 0x24]
push esi
call dword [eax + 0x1a0]
jmp 0x10009af0
push dword [ebp - 0x38]
push eax
push edi
call sym.net.dll__NET_BindV6_8
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10009b07
push str.JVM_Bind
push esi
call fcn.1000afaa
pop ecx
pop ecx
jmp 0x10009ba5
push dword [ebp - 0x30]
mov eax, dword [esi]
push dword [0x10012574]
push dword [ebp - 0x24]
push esi
call dword [eax + 0x1a0]
cmp dword [ebp + 0x14], 0
jne 0x10009b7e
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 0x10009b40
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x10009b5b
push str.getsockname_in_plain_socketBind
jmp 0x10009afa
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 [0x1001258c]
push dword [ebp - 0x24]
push esi
call dword [ecx + 0x1b4]
jmp 0x10009ba5
push dword [ebp + 0x14]
mov eax, dword [esi]
push dword [0x1001258c]
push dword [ebp - 0x24]
push esi
call dword [eax + 0x1b4]
jmp 0x10009ba5
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.1000c212
leave
ret 0x14