Function at 0x10009d25
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0xc4]
sub esp, 0x144
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp + 0xc0], eax
mov eax, dword [ebp + 0xd4]
push ebx
mov ebx, dword [ebp + 0xd0]
push esi
mov esi, dword [ebp + 0xcc]
push edi
push dword [0x10012580]
mov dword [ebp - 0x64], eax
mov eax, dword [esi]
push ebx
push esi
mov dword [ebp - 0x74], ebx
call dword [eax + 0x190]
push dword [0x10012588]
mov dword [ebp - 0x78], eax
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x17c]
push dword [0x1001257c]
mov edi, eax
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x17c]
or dword [ebp - 0x68], 0xffffffff
or dword [ebp - 0x70], 0xffffffff
mov ebx, eax
test edi, edi
jne 0x10009db7
test ebx, ebx
jne 0x10009dce
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x1000a175
push dword [0x10012218]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x68], eax
test ebx, ebx
je 0x10009de5
push dword [0x10012218]
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x190]
mov edi, eax
mov dword [ebp - 0x70], edi
jmp 0x10009de8
mov edi, dword [ebp - 0x70]
cmp dword [ebp - 0x64], 0
jne 0x10009df8
push str.socket_is_null
jmp 0x1000a16f
push dword [0x10012588]
mov eax, dword [esi]
push dword [ebp - 0x64]
push esi
call dword [eax + 0x17c]
push dword [0x10012574]
mov dword [ebp - 0x80], eax
push dword [ebp - 0x64]
mov eax, dword [esi]
push esi
call dword [eax + 0x17c]
test eax, eax
je 0x1000a16a
cmp dword [ebp - 0x80], 0
je 0x1000a16a
mov ebx, dword [ebp - 0x68]
cmp ebx, 0xffffffff
je 0x10009f42
cmp edi, 0xffffffff
je 0x10009f55
xor edx, edx
inc edx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], edx
xor eax, eax
cmp dword [ebp + eax*4 - 0x5c], edi
je 0x10009e5f
inc eax
cmp eax, edx
jb 0x10009e54
cmp eax, edx
jne 0x10009e6d
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x60], 2
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x10009e8d
cdq
mov edi, 0x3e8
idiv edi
mov edi, dword [ebp - 0x70]
imul edx, edx, 0x3e8
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], edx
jmp 0x10009e8f
xor ecx, ecx
push ecx
push 0
push 0
lea eax, [ebp - 0x60]
push eax
push ebx
call dword [sym.imp.ws2_32.dll_select]
test eax, eax
jne 0x10009eb2
push str.Accept_timed_out
push str.java_net_SocketTimeoutException
jmp 0x10009dac
cmp eax, 1
jne 0x10009ec9
lea eax, [ebp - 0x60]
push eax
push ebx
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
je 0x10009efe
mov edi, ebx
jmp 0x10009f02
cmp eax, 2
jne 0x10009f38
push dword [0x10012594]
mov eax, dword [esi]
push dword [ebp - 0x74]
push esi
call dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x10009ee9
cmp eax, ebx
je 0x10009eeb
mov edi, ebx
mov eax, dword [esi]
push edi
push dword [0x10012594]
push dword [ebp - 0x74]
push esi
call dword [eax + 0x1b4]
cmp edi, ebx
jne 0x10009f0b
mov dword [ebp - 0x6c], 0x10
jmp 0x10009f12
mov dword [ebp - 0x6c], 0x1c
mov dword [ebp - 0x68], edi
mov ebx, edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xa4]
push eax
push ebx
call dword [sym.imp.ws2_32.dll_accept]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jge 0x10009f96
cmp ebx, 0xfffffffe
jne 0x10009f78
jmp 0x10009f87
push str.select_failed
jmp 0x10009da7
cmp edi, 0xffffffff
je 0x10009f55
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], 0x1c
mov ebx, edi
jmp 0x10009f5c
mov dword [ebp - 0x6c], 0x10
cmp dword [ebp - 0x78], 0
je 0x10009f17
push dword [ebp - 0x78]
push ebx
call sym.net.dll__NET_Timeout_8
test eax, eax
je 0x10009ea3
cmp eax, 0xffffffff
jne 0x10009f82
push str.socket_closed
jmp 0x10009da7
cmp eax, 0xfffffffe
jne 0x10009f17
push str.operation_interrupted
push str.java_io_InterruptedIOException
jmp 0x10009dac
push edi
push 1
push ebx
call dword [sym.imp.kernel32.dll_SetHandleInformation]
mov eax, dword [esi]
push ebx
push dword [0x10012218]
push dword [ebp - 0x80]
push esi
call dword [eax + 0x1b4]
cmp word [ebp + 0xa4], 2
jne 0x1000a07d
cmp dword [0x1001221c], edi
jne 0x10009ff6
mov eax, dword [esi]
push str.java_net_Inet4Address
push esi
call dword [eax + 0x18]
mov edi, eax
test edi, edi
je 0x10009fed
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x54]
push edi
mov dword [0x1001221c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x5c]
cmp dword [0x1001221c], 0
je 0x1000a00f
push dword [0x1001262c]
mov eax, dword [esi]
push dword [0x1001221c]
push esi
call dword [eax + 0x70]
add esp, 0xc
mov edi, eax
jmp 0x1000a011
xor edi, edi
test edi, edi
jne 0x1000a020
push ebx
call fcn.10002b96
jmp 0x1000a175
push dword [ebp + 0xa8]
call dword [sym.imp.ws2_32.dll_ntohl]
push eax
push edi
push esi
call fcn.1000aa91
mov eax, dword [esi]
add esp, 0xc
push esi
call dword [eax + 0x390]
test al, al
jne 0x1000a175
push 1
push edi
push esi
call fcn.1000aad0
mov eax, dword [esi]
add esp, 0xc
push esi
call dword [eax + 0x390]
test al, al
jne 0x1000a175
mov eax, dword [esi]
push edi
push dword [0x10012574]
push dword [ebp - 0x64]
push esi
call dword [eax + 0x1a0]
jmp 0x1000a10c
cmp dword [0x10012214], edi
jne 0x1000a0b2
mov eax, dword [esi]
push str.java_net_Inet6Address
push esi
call dword [eax + 0x18]
mov edi, eax
test edi, edi
je 0x1000a0a9
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x54]
push edi
mov dword [0x10012214], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x5c]
cmp dword [0x10012214], 0
je 0x1000a0cb
push dword [0x10012610]
mov eax, dword [esi]
push dword [0x10012214]
push esi
call dword [eax + 0x70]
add esp, 0xc
mov edi, eax
jmp 0x1000a0cd
xor edi, edi
test edi, edi
je 0x1000a015
lea eax, [ebp + 0xac]
push eax
push edi
push esi
call fcn.1000aa20
push 2
push edi
push esi
call fcn.1000aad0
mov eax, dword [esi]
add esp, 0x18
push esi
call dword [eax + 0x390]
test al, al
jne 0x1000a175
push dword [ebp + 0xbc]
push edi
push esi
call fcn.1000a983
add esp, 0xc
movzx eax, word [ebp + 0xa6]
push eax
call dword [sym.imp.ws2_32.dll_ntohs]
mov ecx, dword [esi]
movzx eax, ax
push eax
push dword [0x10012584]
push dword [ebp - 0x64]
push esi
call dword [ecx + 0x1b4]
push dword [0x1001258c]
mov eax, dword [esi]
push dword [ebp - 0x74]
push esi
call dword [eax + 0x190]
mov ecx, dword [esi]
push eax
push dword [0x1001258c]
push dword [ebp - 0x64]
push esi
call dword [ecx + 0x1b4]
mov eax, dword [esi]
push edi
push dword [0x10012574]
push dword [ebp - 0x64]
push esi
call dword [eax + 0x1a0]
jmp 0x1000a175
push str.socket_address_or_fd_obj
push esi
call sub.java.dll__JNU_ThrowNullPointerException_8
mov ecx, dword [ebp + 0xc0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
add ebp, 0xc4
leave
ret 0xc