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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [esp + 0xd8], eax
xor eax, eax
dec eax
mov dword [esp + 0xd0], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0xc0], xmm0
mov dword [esp + 0x2c], eax
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
xor edi, edi
inc edi
test ecx, ecx
je 0x4eb7f7
cmp dword [ecx], 0xbab1e
jne 0x4eb7f7
mov edi, 8
cmp byte [ecx + 0xe6], 0
je 0x4eb80f
mov ecx, dword [esp + 0xd8]
xor ecx, ebp
call fcn.006c9121
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp + 0xc], 0
js 0x4eb8ee
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
mov esi, dword [ecx + 4]
xor edi, edi
test esi, esi
je 0x4eb874
mov ecx, esi
lea edx, [esp + 0xc0]
call fcn.004eb64f
mov ebx, eax
xor ecx, ecx
bt ebx, ecx
jae 0x4eb84b
inc edi
mov edx, dword [esp + ecx*4 + 0xc0]
jmp 0x4eb84e
xor edx, edx
dec edx
mov eax, ebx
shr eax, cl
bt eax, 0x10
jae 0x4eb860
inc edi
mov edx, dword [esp + ecx*4 + 0xc0]
cmp edx, 0xffffffff
je 0x4eb86f
lea eax, [ecx + 1]
cmp ecx, 4
mov ecx, eax
jb 0x4eb83c
mov esi, dword [esi + 4]
jmp 0x4eb826
lea esi, [esp + 0x2c]
mov ebx, dword [esp + 0x14]
mov ecx, ebx
mov edx, esi
call fcn.004ed764
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
cmp eax, edx
mov ecx, edx
cmovl ecx, eax
test eax, eax
cmovs ecx, edx
mov dword [esp + 0x20], ecx
mov eax, dword [ebp + 8]
lea ecx, [edi + eax]
mov eax, ecx
cmp byte [ebp + 0x18], 0
je 0x4eb8b6
xor eax, eax
cmp dword [ebx + 0xdc], 0xffffffff
setne al
add eax, ecx
mov dword [esp + 0x24], ecx
cmp eax, 0xb
mov dword [esp + 0x28], eax
jb 0x4eb8f8
mov ecx, dword [fcn.00474d30]
lea esi, [eax*8]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4eb900
mov edi, 3
jmp 0x4eb7f7
mov edi, 0xa
jmp 0x4eb7f7
lea ecx, [esp + 0x70]
mov dword [esp + 0xc], ecx
xor esi, esi
test edi, edi
je 0x4eb98f
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4eb98f
xor esi, esi
mov dword [esp + 0x18], ecx
lea edx, [esp + 0xc0]
call fcn.004eb64f
mov ebx, eax
xor ecx, ecx
bt ebx, ecx
jae 0x4eb94b
mov edx, dword [esp + ecx*4 + 0xc0]
mov eax, dword [esp + 0xc]
mov dword [eax + esi*8], edx
mov word [eax + esi*8 + 4], 0x300
inc esi
mov edx, dword [esp + ecx*4 + 0xc0]
jmp 0x4eb94e
xor edx, edx
dec edx
mov eax, ebx
shr eax, cl
bt eax, 0x10
jae 0x4eb975
mov eax, dword [esp + ecx*4 + 0xc0]
mov edx, dword [esp + 0xc]
mov dword [edx + esi*8], eax
mov word [edx + esi*8 + 4], 0x10
inc esi
mov edx, dword [esp + ecx*4 + 0xc0]
cmp edx, 0xffffffff
je 0x4eb984
lea eax, [ecx + 1]
cmp ecx, 4
mov ecx, eax
jb 0x4eb927
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x4eb913
cmp dword [ebp + 8], 0
je 0x4eba2c
mov eax, dword [esp + 0xc]
lea ebx, [eax + esi*8]
add ebx, 4
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
lea edx, [eax*4]
mov dword [esp + 0x18], edx
mov edx, ecx
mov ecx, dword [ecx + eax*8]
mov dword [ebx + eax*8 - 4], ecx
mov word [ebx + eax*8], 0
mov ecx, edx
movzx edx, word [edx + eax*8 + 4]
and edx, 1
neg edx
and edx, 0x300
mov word [ebx + eax*8], dx
movzx ecx, word [ecx + eax*8 + 4]
test cl, 2
jne 0x4eb9ed
mov ebx, dword [esp + 0x18]
jmp 0x4eba09
movzx edx, dx
or edx, 0x400
mov ecx, ebx
mov ebx, dword [esp + 0x18]
mov word [ecx + ebx*2], dx
mov ecx, dword [esp + 0x1c]
movzx ecx, word [ecx + ebx*2 + 4]
test cl, 4
je 0x4eba1c
movzx ecx, dx
or ecx, 0x10
mov edx, dword [esp + 0x10]
mov word [edx + ebx*2], cx
inc eax
cmp dword [ebp + 8], eax
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
jne 0x4eb9ad
add esi, eax
mov edx, dword [esp + 0x14]
cmp byte [ebp + 0x18], 0
je 0x4eba50
mov eax, dword [edx + 0xdc]
cmp eax, 0xffffffff
je 0x4eba50
mov ecx, dword [esp + 0xc]
mov dword [ecx + esi*8], eax
mov word [ecx + esi*8 + 4], 0x300
inc esi
xor ebx, ebx
test esi, esi
je 0x4ebb49
mov ecx, dword [esp + 0x20]
mov eax, ecx
sar eax, 0x1f
push eax
push ecx
push esi
push dword [esp + 0x18]
call fcn.005be1b7
add esp, 0x10
test eax, eax
jle 0x4ebb49
mov dword [esp + 0x10], eax
cmp dword [ebp + 8], 0
mov edx, dword [esp + 0x1c]
je 0x4ebacc
mov eax, dword [esp + 0xc]
lea eax, [eax + edi*8]
add eax, 6
mov dword [esp + 0x18], eax
xor ecx, ecx
mov edi, edx
mov eax, dword [esp + 0x18]
movzx edx, word [eax + ecx*8]
xor eax, eax
test edx, 0x300
setne al
mov ebx, edx
shr ebx, 2
and ebx, 4
shr edx, 9
and edx, 2
or edx, ebx
or edx, eax
mov word [edi + ecx*8 + 6], dx
mov edx, edi
inc ecx
cmp dword [ebp + 8], ecx
jne 0x4eba98
cmp byte [ebp + 0x18], 0
je 0x4ebb45
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xdc]
cmp eax, 0xffffffff
je 0x4ebb45
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
test byte [ecx + edx*8 + 7], 3
mov ebx, dword [esp + 0x10]
je 0x4ebb49
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x30]
movdqa xmmword [ecx + 0x30], xmm0
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
push 0
push 0x40
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov ebx, dword [esp + 0x14]
jle 0x4ebb3e
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x40
lea eax, [esp + 0x38]
push eax
push dword [ebx + 0xdc]
call edi
test eax, eax
jg 0x4ebb29
mov ebx, dword [esp + 0x10]
dec ebx
jmp 0x4ebb49
mov ebx, dword [esp + 0x10]
mov edi, dword [ebp + 0x10]
cmp dword [esp + 0x28], 0xb
jb 0x4ebb68
mov ecx, dword [fcn.00474d80]
call dword [section..00cfg]
push dword [esp + 0xc]
call ecx
add esp, 4
mov al, byte [ebp + 0x14]
test edi, edi
je 0x4ebb71
mov dword [edi], ebx
xor edi, edi
test al, al
je 0x4eb7f7
test esi, esi
jne 0x4eb7f7
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x14]
cmp dword [ecx], 0xbab1e
jne 0x4eb7f7
cmp byte [ecx + 0xe6], 0
jne 0x4eb7f7
lea esi, [esp + 0x30]
mov edx, esi
call fcn.004ed764
mov eax, dword [esi]
test eax, eax
je 0x4eb7f7
mov ecx, eax
mov edx, dword [esp + 0x20]
cmovs ecx, edx
cmp eax, edx
cmovg ecx, edx
mov eax, ecx
sar eax, 0x1f
push eax
push ecx
call fcn.005be044
add esp, 8
jmp 0x4eb7f7