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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
push 0
mov ecx, dword [edi + 0x88]
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
sub edx, eax
mov ecx, dword [ecx + 4]
push edx
add ecx, eax
push ecx
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00516ae0
push 0
push 0x2710
push edx
push eax
call fcn.0053aaa0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
test ebx, ebx
jle 0x4e0c8a
mov eax, dword [edi + 0x88]
add dword [eax + 0xc], ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov byte [ecx + eax], 0
jmp 0x4e0cca
test esi, esi
je 0x4e0e7e
cmp esi, 0x2733
je 0x4e0cca
cmp esi, 0x8c
je 0x4e0cca
cmp esi, 0xb
je 0x4e0cca
cmp esi, 0x2734
je 0x4e0cca
cmp esi, 0x70
je 0x4e0cca
cmp esi, 0x2735
je 0x4e0cca
cmp esi, 0x67
je 0x4e0cca
cmp esi, 4
jne 0x4e0e7e
cmp dword [edi + 0x84], 1
mov eax, dword [edi + 0x88]
jle 0x4e0d05
cmp dword [eax + 0xc], 0
je 0x4e0e94
mov ecx, edi
call fcn.004e1990
test al, al
je 0x4e0e94
mov eax, dword [edi + 0x88]
cmp dword [eax + 0xc], 0
jne 0x4e0ce3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 4]
mov eax, dword [eax + 0xc]
add eax, ebx
push 0xc801
mov dword [esp + 0x14], eax
call fcn.0051ebb5
add esp, 4
mov dword [esp + 0xc], eax
xor esi, esi
cmp ebx, dword [esp + 0x10]
jae 0x4e0e42
movsx ecx, byte [ebx]
inc ebx
cmp ecx, 0xffffffff
je 0x4e0e42
movzx ecx, cl
cmp ecx, 0xa
je 0x4e0d55
cmp esi, 0xc7f6
jae 0x4e0ddf
mov byte [esi + eax], cl
inc esi
jmp 0x4e0d24
test esi, esi
je 0x4e0d24
cmp byte [esi + eax - 1], 0xd
jne 0x4e0d24
sub esi, 1
mov byte [esi + eax], 0
jne 0x4e0d99
mov ecx, edi
call fcn.004e0eb0
test al, al
je 0x4e0e02
push 2
mov ecx, edi
call fcn.004e17d0
test al, al
jne 0x4e0dd6
mov esi, dword [esp + 0xc]
push esi
call fcn.0051e914
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x84], 0
jne 0x4e0daf
push 1
mov ecx, edi
call fcn.004e17d0
mov eax, dword [esp + 0xc]
sub esp, 0x18
mov ecx, esp
push esi
push eax
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
mov ecx, edi
call fcn.004e1400
mov eax, dword [esp + 0xc]
jmp 0x4e0d22
push eax
call fcn.0051e914
sub esp, 0x14
mov ecx, esp
push str.Client_Sent_a_Bad_Request__Buffer_Exploit_Detected__
call fcn.00409680
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esp, 0x18
mov ecx, esp
push 0x11
push str.HandShake_Failed.
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00408270
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
mov esi, dword [esp + 0xc]
push esi
call fcn.0051e914
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x88]
mov dword [eax + 0xc], 0
mov eax, dword [eax + 4]
mov byte [eax], 0
test esi, esi
je 0x4e0d85
mov ecx, dword [edi + 0x88]
push esi
mov esi, dword [esp + 0x10]
push esi
call fcn.004bc910
push esi
call fcn.0051e914
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esp, 0x18
mov ecx, esp
push 0x564380
call fcn.00409680
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret