Function at 0x10007997
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x7d4]
sub esp, 0x854
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp + 0x7d0], eax
mov eax, dword [ebp + 0x7e4]
push ebx
mov ebx, dword [ebp + 0x7e0]
push esi
mov esi, dword [ebp + 0x7dc]
push edi
push dword [0x100125a0]
mov dword [ebp - 0x64], eax
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x17c]
push dword [0x100125ac]
mov dword [ebp - 0x50], eax
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x17c]
push dword [0x100125a8]
mov edi, eax
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x60], eax
call sym.net.dll__ipv6_available_0
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x80], 0x1c
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x50], eax
jne 0x10007a3a
cmp edi, eax
jne 0x10007a5e
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x10007dbd
push dword [0x100121e0]
mov eax, dword [esi]
push dword [ebp - 0x50]
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x68], 1
test edi, edi
je 0x10007af2
push dword [0x100121e0]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x190]
inc dword [ebp - 0x68]
cmp dword [ebp - 0x68], 2
mov edi, eax
jne 0x10007af7
push dword [0x100125a4]
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x5c], eax
cmp eax, 0xffffffff
jne 0x10007b0c
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x10007a9b
or eax, 0xffffffff
lea ecx, [ebp - 0x5c]
push ecx
push eax
push edi
push dword [ebp - 0x58]
call sym.net.dll__NET_Timeout2_16
cmp eax, 2
jne 0x10007abc
mov eax, dword [ebp - 0x58]
push edi
push ebx
call fcn.100072b4
pop ecx
pop ecx
jmp 0x10007b09
test eax, eax
jg 0x10007b0c
jne 0x10007ad1
push str.Receive_timed_out
push str.java_net_SocketTimeoutException
jmp 0x10007a2f
cmp eax, 0xffffffff
je 0x10007a25
cmp eax, 0xfffffffe
jne 0x10007dbd
push str.operation_interrupted
push str.java_io_InterruptedIOException
jmp 0x10007a2f
mov edi, dword [ebp - 0x74]
jmp 0x10007afa
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x78], 0
je 0x10007b09
cmp dword [ebp - 0x50], 0
mov dword [ebp - 0x5c], edi
je 0x10007b0c
mov dword [ebp - 0x5c], eax
mov edi, dword [ebp - 0x64]
test edi, edi
jne 0x10007b23
push str.packet
push esi
call sub.java.dll__JNU_ThrowNullPointerException_8
jmp 0x10007dbd
push dword [0x10012638]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x17c]
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x10007b41
push str.packet_buffer
jmp 0x10007b18
push dword [0x1001263c]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x190]
push dword [0x10012634]
mov dword [ebp - 0x7c], eax
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x50], eax
cmp eax, 0x800
jle 0x10007b8d
push eax
call dword [sym.imp.msvcr100.dll_malloc]
pop ecx
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x10007b93
push str.Receive_buf_native_heap_allocation_failed
push esi
call sub.java.dll__JNU_ThrowOutOfMemoryError_8
jmp 0x10007dbd
lea eax, [ebp - 0x30]
mov dword [ebp - 0x58], eax
push dword [0x10012598]
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x180]
mov byte [ebp - 0x51], al
call fcn.10008744
test al, al
je 0x10007bd2
cmp byte [ebp - 0x51], 0
jne 0x10007bd2
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x10007c1a
cmp dword [ebp - 0x78], 0
jne 0x10007bd5
push 0
push esi
call sub.jvm.dll__JVM_CurrentTimeMillis_8
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
jmp 0x10007bd5
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x10007c1a
cmp dword [ebp - 0x68], 1
jne 0x10007c1a
push edi
push dword [ebp - 0x5c]
call sym.net.dll__NET_Timeout_8
test eax, eax
jg 0x10007c1a
jne 0x10007bfd
push str.Receive_timed_out
push str.java_net_SocketTimeoutException
jmp 0x10007cee
cmp eax, 0xffffffff
jne 0x10007c0c
push str.Socket_closed
jmp 0x10007cd8
cmp eax, 0xfffffffe
jne 0x10007daa
jmp 0x10007ce4
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push dword [ebp - 0x50]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
call dword [sym.imp.ws2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10007c9c
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x10007c9c
mov ebx, dword [ebp - 0x5c]
call fcn.1000687b
cmp byte [ebp - 0x51], 0
jne 0x10007c90
test edi, edi
je 0x10007c1a
push 0
push esi
call sub.jvm.dll__JVM_CurrentTimeMillis_8
mov ecx, dword [ebp - 0x70]
sub ecx, eax
add edi, ecx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
test edi, edi
jle 0x10007bee
push edi
push dword [ebp - 0x5c]
call sym.net.dll__NET_Timeout_8
test eax, eax
jg 0x10007c1a
test eax, eax
je 0x10007bee
jmp 0x10007bfd
push str.ICMP_Port_Unreachable
push str.java_net_PortUnreachableException
jmp 0x10007cee
cmp ebx, dword [ebp - 0x50]
jle 0x10007ca4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
jns 0x10007cce
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2738
jne 0x10007cba
mov ebx, dword [ebp - 0x50]
jmp 0x10007cce
mov eax, dword [esi]
push 0
push dword [0x10012644]
push dword [ebp - 0x64]
push esi
call dword [eax + 0x1b4]
cmp ebx, 0xffffffff
jne 0x10007cdf
push str.socket_closed
push str.java_net_SocketException
jmp 0x10007cee
cmp ebx, 0xfffffffe
jne 0x10007cf9
push str.operation_interrupted
push str.java_io_InterruptedIOException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x10007daa
test ebx, ebx
jns 0x10007d0f
push str.Datagram_receive_failed
push esi
call fcn.1000afaa
pop ecx
pop ecx
jmp 0x10007daa
push dword [0x10012640]
mov eax, dword [esi]
push dword [ebp - 0x64]
and dword [ebp - 0x60], 0
push esi
call dword [eax + 0x17c]
mov edi, eax
test edi, edi
je 0x10007d40
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.10008744
test eax, eax
jne 0x10007d3c
xor edi, edi
test edi, edi
jne 0x10007d63
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.10008744
mov ecx, dword [esi]
push eax
push dword [0x10012640]
push dword [ebp - 0x64]
push esi
call dword [ecx + 0x1a0]
jmp 0x10007d6f
lea eax, [ebp - 0x4c]
push eax
call sym.net.dll__NET_GetPortFromSockaddr_4
mov dword [ebp - 0x60], eax
push dword [ebp - 0x58]
mov eax, dword [esi]
push ebx
push dword [ebp - 0x7c]
push dword [ebp - 0x74]
push esi
call dword [eax + 0x340]
push dword [ebp - 0x60]
mov eax, dword [esi]
push dword [0x10012630]
push dword [ebp - 0x64]
push esi
call dword [eax + 0x1b4]
mov eax, dword [esi]
push ebx
push dword [0x10012644]
push dword [ebp - 0x64]
push esi
call dword [eax + 0x1b4]
cmp dword [ebp - 0x50], 0x800
jle 0x10007dbd
push dword [ebp - 0x58]
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov ecx, dword [ebp + 0x7d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
add ebp, 0x7d4
leave
ret 0xc