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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, dword [esp + 0x44]
mov ebp, ecx
mov dword [esp + 0x18], edx
mov ebx, dword [esi]
mov edi, dword [esi + 8]
mov eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp], edi
sub eax, edi
cmp eax, 0x20
jae 0x4baefb
lea ecx, [esp + 8]
push esi
call fcn.004bb100
add esp, 4
movzx eax, byte [esp + 8]
cmp al, 4
jne 0x4bb052
cmp dword [esp + 0xc], 0
je 0x4bb09a
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 8]
mov ebx, dword [esi]
mov dword [esp], eax
mov eax, dword [edx]
mov dword [esp + 0x14], edi
mov dword [esp + 4], ebp
mov ebp, 0x2000
xor edi, edi
mov edx, esi
mov dword [esp + 0x20], eax
jmp 0x4baf2c
sub edi, eax
cmp esi, ebp
cmovb ecx, ebp
cmp eax, esi
cmove ebp, ecx
cmp dword [esp], ebx
jne 0x4baf6e
cmp ebx, dword [esp + 0x1c]
jne 0x4baf6e
mov eax, edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push eax
call fcn.004bb100
add esp, 4
movzx eax, byte [esp + 8]
cmp al, 4
jne 0x4bb0a7
cmp dword [esp + 0xc], 0
je 0x4bb0c7
mov edx, dword [esp + 0x44]
mov ebx, dword [edx]
mov eax, dword [edx + 8]
mov dword [esp], eax
cmp dword [esp], ebx
jne 0x4bafb0
cmp ebx, 0xffffffdf
ja 0x4bb06f
lea esi, [ebx + 0x20]
lea eax, [ebx + ebx]
cmp eax, esi
cmova esi, eax
test esi, esi
js 0x4bb06f
test ebx, ebx
je 0x4bafb5
mov eax, dword [edx + 4]
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0x10], ebx
jmp 0x4bafb7
mov eax, dword [edx + 4]
jmp 0x4bafec
xor eax, eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x24]
mov edx, 1
push eax
push esi
call fcn.00418f00
add esp, 8
cmp dword [esp + 0x24], 1
je 0x4bb06f
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov ebx, esi
mov dword [ecx + 4], eax
mov dword [ecx], esi
mov esi, ebx
sub esi, dword [esp]
cmp esi, ebp
cmovae esi, ebp
cmp esi, 0x7fffffff
mov ecx, esi
jb 0x4bb005
mov ecx, 0x7fffffff
add eax, dword [esp]
push 0
push ecx
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4bb07a
cmp edi, eax
cmovbe edi, eax
test eax, eax
je 0x4bb087
mov ecx, dword [esp]
mov edx, dword [esp + 0x44]
add ecx, eax
cmp edi, esi
mov dword [esp], ecx
mov dword [edx + 8], ecx
mov ecx, 0xffffffff
je 0x4bb041
mov ebp, 0xffffffff
test ebp, ebp
js 0x4baf20
lea ecx, [ebp + ebp]
jmp 0x4baf20
movzx ecx, byte [esp + 0xb]
movzx esi, word [esp + 9]
mov edx, dword [esp + 0xc]
mov byte [ebp + 3], cl
mov word [ebp + 1], si
mov byte [ebp], al
mov dword [ebp + 4], edx
jmp 0x4bb0eb
mov eax, dword [esp + 4]
mov word [eax], 0x2601
jmp 0x4bb0eb
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x4bb0de
mov ecx, dword [esp]
mov eax, dword [esp + 4]
sub ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov byte [eax], 4
jmp 0x4bb0eb
mov dword [ebp + 4], 0
mov byte [ebp], 4
jmp 0x4bb0eb
movzx ecx, byte [esp + 0xb]
mov edx, dword [esp + 4]
movzx edi, word [esp + 9]
mov esi, dword [esp + 0xc]
mov byte [edx + 3], cl
mov word [edx + 1], di
mov byte [edx], al
mov dword [edx + 4], esi
jmp 0x4bb0eb
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 4]
mov eax, dword [eax + 8]
sub eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov byte [ecx], 4
jmp 0x4bb0eb
mov ecx, dword [esp + 4]
mov dword [ecx + 4], eax
mov dword [ecx], 0
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret