Function at 0x4b53a0
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 0x4b53fb
lea ecx, [esp + 8]
push esi
call fcn.004b5600
add esp, 4
movzx eax, byte [esp + 8]
cmp al, 4
jne 0x4b5552
cmp dword [esp + 0xc], 0
je 0x4b559a
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 0x4b542c
sub edi, eax
cmp esi, ebp
cmovb ecx, ebp
cmp eax, esi
cmove ebp, ecx
cmp dword [esp], ebx
jne 0x4b546e
cmp ebx, dword [esp + 0x1c]
jne 0x4b546e
mov eax, edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push eax
call fcn.004b5600
add esp, 4
movzx eax, byte [esp + 8]
cmp al, 4
jne 0x4b55a7
cmp dword [esp + 0xc], 0
je 0x4b55c7
mov edx, dword [esp + 0x44]
mov ebx, dword [edx]
mov eax, dword [edx + 8]
mov dword [esp], eax
cmp dword [esp], ebx
jne 0x4b54b0
cmp ebx, 0xffffffdf
ja 0x4b556f
lea esi, [ebx + 0x20]
lea eax, [ebx + ebx]
cmp eax, esi
cmova esi, eax
test esi, esi
js 0x4b556f
test ebx, ebx
je 0x4b54b5
mov eax, dword [edx + 4]
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0x10], ebx
jmp 0x4b54b7
mov eax, dword [edx + 4]
jmp 0x4b54ec
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.00413aa0
add esp, 8
cmp dword [esp + 0x24], 1
je 0x4b556f
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 0x4b5505
mov ecx, accept
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 0x4b557a
cmp edi, eax
cmovbe edi, eax
test eax, eax
je 0x4b5587
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 0x4b5541
mov ebp, 0xffffffff
test ebp, ebp
js 0x4b5420
lea ecx, [ebp + ebp]
jmp 0x4b5420
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 0x4b55eb
mov eax, dword [esp + 4]
mov word [eax], 0x2601
jmp 0x4b55eb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x4b55de
mov ecx, dword [esp]
mov eax, dword [esp + 4]
sub ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov byte [eax], 4
jmp 0x4b55eb
mov dword [ebp + 4], 0
mov byte [ebp], 4
jmp 0x4b55eb
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 0x4b55eb
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 0x4b55eb
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