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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, eax
test eax, eax
jne 0x4e1bd0
or ecx, 0xffffffff
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [eax + 0x2c], 0xffffffff
je 0x4e1bbf
lea eax, [eax + 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x440]
cmp eax, 0x400
ja 0x4e1bbf
mov edx, dword [ebx + 0x444]
mov dword [ebp - 0x38], edx
cmp edx, 0x400
ja 0x4e1bbf
cmp eax, edx
jg 0x4e1bbf
test eax, eax
jle 0x4e1c3f
mov edi, dword [ebp - 0x30]
sub edx, eax
mov esi, dword [ebp - 0x30]
add eax, edi
push ecx
push edx
push eax
push esi
call sub.msvcrt.dll_memmove
mov eax, dword [ebx + 0x440]
mov ecx, dword [ebx + 0x444]
mov dword [ebx + 0x440], 0
sub ecx, eax
add esp, 0x10
mov dword [ebx + 0x444], ecx
mov esi, dword [ebx + 0x444]
mov dword [ebp - 0x38], esi
mov eax, 0x400
sub eax, dword [ebp - 0x38]
je 0x4e1d51
push 0
mov edx, dword [ebx + 0x440]
push eax
mov eax, dword [ebp - 0x30]
add eax, edx
push eax
mov eax, dword [ebx + 0x2c]
push eax
call sub.WSOCK32.DLL_recv
mov edx, eax
test eax, eax
js 0x4e1d5f
mov ecx, dword [ebx + 0x444]
add eax, ecx
mov dword [ebx + 0x444], eax
mov byte [eax + ebx + 0x3c], 0
mov dword [ebp - 0x38], eax
or edx, dword [ebp - 0x38]
je 0x4e1bbf
mov eax, dword [ebp - 0x30]
mov edx, dword [ebx + 0x440]
mov ecx, eax
mov edi, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
add ecx, edx
add edi, eax
cmp ecx, edi
jae 0x4e1d37
mov eax, edi
sub eax, ecx
cmp eax, 2
jle 0x4e1d2a
mov dl, byte [ecx]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x4e1d20
mov al, byte [ecx + 1]
mov byte [ebp - 0x12], al
sub eax, 0x30
cmp al, 9
ja 0x4e1d20
lea esi, [ecx + 2]
mov dword [ebp - 0x10], esi
mov al, byte [ecx + 2]
mov byte [ebp - 0x11], al
sub eax, 0x30
cmp al, 9
ja 0x4e1d20
movsx esi, byte [ebp - 0x12]
movsx eax, dl
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], eax
lea esi, [eax + eax*4 - 0xf0]
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*2 - 0x30]
movsx esi, byte [ebp - 0x11]
mov dword [ebp - 0x18], eax
lea eax, [eax + eax*4]
lea esi, [esi + eax*2 - 0x30]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
cmp byte [eax + 1], 0x2d
je 0x4e1d58
mov eax, dword [ebp - 0x1c]
test eax, eax
jg 0x4e1d8a
nop
lea esi, [esi]
cmp dl, 0xa
je 0x4e1d46
inc ecx
cmp edi, ecx
jbe 0x4e1d2e
mov dl, byte [ecx]
jmp 0x4e1d20
mov edx, dword [ebp - 0x38]
mov dword [ebx + 0x440], edx
cmp dword [ebx + 0x2c], 0xffffffff
jne 0x4e1bdc
jmp 0x4e1bbf
inc ecx
cmp edi, ecx
ja 0x4e1cad
jmp 0x4e1d37
xor edx, edx
jmp 0x4e1c85
neg esi
mov dword [ebp - 0x1c], esi
jmp 0x4e1d14
push eax
push str.recv_failed
push 0
push 9
call fcn.0048db10
pop edi
mov esi, dword [ebx + 0x2c]
push esi
call sub.WSOCK32.DLL_closesocket
or ecx, 0xffffffff
add esp, 0xc
mov dword [ebx + 0x2c], 0xffffffff
jmp 0x4e1bc2
lea edx, [ecx + 3]
mov esi, dword [ebp - 0x2c]
mov eax, edx
sub eax, esi
cmp edx, edi
mov dword [ebx + 0x448], eax
jae 0x4e1db0
cmp byte [ecx + 3], 0xa
jne 0x4e1dab
jmp 0x4e1de8
cmp byte [edx], 0xa
je 0x4e1de8
inc edx
cmp edx, edi
jb 0x4e1da6
mov al, byte [edx]
cmp al, 0xa
je 0x4e1de8
cmp al, 0xd
jne 0x4e1dbb
inc edx
mov eax, dword [ebp - 0x2c]
mov ecx, 0x51eb851f
sub edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x440], edx
imul ecx
mov eax, dword [ebp - 0x1c]
mov ecx, edx
sar eax, 0x1f
sar ecx, 5
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
sub ecx, eax
jmp 0x4e1bc2
inc edx
mov al, byte [edx]
jmp 0x4e1db6