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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xb4
cmp dword [ebp + 0x10], 4
jne 0x631eab1a
mov eax, dword [0x633ae3b4]
cmp eax, 0xffffffff
je 0x631eab1a
mov dword [ebp - 0x94], pe_nt_image_headers32
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [0x633ae3b4]
lea ebx, [ebp - 0x94]
mov dword [esp + 0x14], ebx
lea ebx, [ebp - 0x90]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_recvfrom]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x631ea9a6
mov eax, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x631ead4b
cmp dword [ebp - 0x10], 0x2746
je 0x631ead4b
call fcn.631e9415
mov dword [esp + 8], eax
mov dword [esp + 4], str.NET_GetPacket:__s_n
mov dword [esp], 0x1e
call fcn.631a9970
jmp 0x631ead4b
lea eax, [ebp - 0x90]
add eax, 8
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcr100.dll_memset
mov eax, dword [0x6757a354]
test eax, eax
je 0x631eaab0
mov eax, dword [ebp - 0x94]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6757a37c
lea eax, [ebp - 0x90]
mov dword [esp], eax
call sub.msvcr100.dll_memcmp
test eax, eax
jne 0x631eaab0
cmp dword [ebp - 0xc], 9
jle 0x631eaa3f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
movzx eax, byte [eax]
test al, al
jne 0x631eaa3f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
add eax, 1
movzx eax, byte [eax]
test al, al
jne 0x631eaa3f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
add eax, 2
movzx eax, byte [eax]
test al, al
jne 0x631eaa3f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
add eax, 3
movzx eax, byte [eax]
cmp al, 1
je 0x631eaa49
mov eax, 0
jmp 0x631ead54
mov eax, dword [ebp + 8]
mov byte [eax], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
movzx edx, byte [eax + 4]
mov eax, dword [ebp + 8]
mov byte [eax + 4], dl
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
movzx edx, byte [eax + 5]
mov eax, dword [ebp + 8]
mov byte [eax + 5], dl
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
movzx edx, byte [eax + 6]
mov eax, dword [ebp + 8]
mov byte [eax + 6], dl
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
movzx edx, byte [eax + 7]
mov eax, dword [ebp + 8]
mov byte [eax + 7], dl
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
add eax, 8
movzx eax, word [eax]
mov edx, eax
mov eax, dword [ebp + 8]
mov word [eax + 2], dx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 0xa
jmp 0x631eaacf
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x90]
mov dword [esp], eax
call fcn.631e9a6b
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
cmp dword [ebp - 0xc], eax
jl 0x631eab07
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.631ea410
mov dword [esp + 8], eax
mov dword [esp + 4], str.Oversize_packet_from__s_n
mov dword [esp], 0x1e
call fcn.631a9970
mov eax, 0
jmp 0x631ead54
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x14], edx
mov eax, 1
jmp 0x631ead54
cmp dword [ebp + 0x10], 5
jne 0x631eac37
mov eax, dword [0x633ae3b8]
cmp eax, 0xffffffff
je 0x631eac37
mov dword [ebp - 0x94], pe_nt_image_headers32
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [0x633ae3b8]
lea ebx, [ebp - 0x94]
mov dword [esp + 0x14], ebx
lea ebx, [ebp - 0x90]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_recvfrom]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x631eabcd
mov eax, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x631ead4e
cmp dword [ebp - 0x10], 0x2746
je 0x631ead4e
call fcn.631e9415
mov dword [esp + 8], eax
mov dword [esp + 4], str.NET_GetPacket:__s_n
mov dword [esp], 0x1e
call fcn.631a9970
jmp 0x631ead4e
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x90]
mov dword [esp], eax
call fcn.631e9a6b
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
cmp dword [ebp - 0xc], eax
jl 0x631eac24
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.631ea410
mov dword [esp + 8], eax
mov dword [esp + 4], str.Oversize_packet_from__s_n
mov dword [esp], 0x1e
call fcn.631a9970
mov eax, 0
jmp 0x631ead54
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x14], edx
mov eax, 1
jmp 0x631ead54
cmp dword [ebp + 0x10], 6
jne 0x631ead4f
mov eax, dword [0x633ae3c0]
cmp eax, 0xffffffff
je 0x631ead4f
mov dword [ebp - 0x94], pe_nt_image_headers32
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [0x633ae3c0]
lea ebx, [ebp - 0x94]
mov dword [esp + 0x14], ebx
lea ebx, [ebp - 0x90]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_recvfrom]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x631eace7
mov eax, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x631ead4f
cmp dword [ebp - 0x10], 0x2746
je 0x631ead4f
call fcn.631e9415
mov dword [esp + 8], eax
mov dword [esp + 4], str.NET_GetPacket:__s_n
mov dword [esp], 1
call fcn.631a9970
jmp 0x631ead4f
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x90]
mov dword [esp], eax
call fcn.631e9a6b
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
cmp dword [ebp - 0xc], eax
jl 0x631ead3b
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.631ea410
mov dword [esp + 8], eax
mov dword [esp + 4], str.Oversize_packet_from__s_n
mov dword [esp], 0x1e
call fcn.631a9970
mov eax, 0
jmp 0x631ead54
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x14], edx
mov eax, 1
jmp 0x631ead54
nop
jmp 0x631ead4f
nop
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret