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

Disassembly:
mov eax, 0x7d14
call fcn.00403ab0
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x7d28]
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], 0
mov byte [esp + 0x12], 0
mov ecx, 0x1f40
xor eax, eax
lea edi, [esp + 0x24]
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x7d2c]
lea eax, [esp + 0x28]
push 1
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x5ed18d
cmp eax, 0xffffffff
je 0x5ed2fc
mov byte [esp + 0x12], 1
mov al, byte [esp + 0x24]
cmp al, 0xa
je 0x5ed19f
cmp al, 0xd
je 0x5ed1b4
inc dword [esp + 0x18]
jmp 0x5ed1b4
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x5ed1ac
mov byte [esp + 0x12], 1
mov dword [esp + 0x18], 0
mov ecx, dword [esi + 8]
mov byte [esp + 0x13], al
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
lea edx, [eax + 1]
cmp edx, ecx
jne 0x5ed258
mov edx, dword [esi]
mov dword [esp + 0x1c], 1
sub eax, edx
lea ecx, [esp + 0x1c]
cmp eax, 1
mov dword [esp + 0x14], eax
jb 0x5ed1e9
lea ecx, [esp + 0x14]
mov ecx, dword [ecx]
add ecx, eax
cmp ecx, 0xfffffffe
mov dword [esp + 0x1c], ecx
ja 0x5ed2d4
mov dword [esp + 0x14], eax
cmp ecx, eax
lea eax, [esp + 0x14]
jb 0x5ed20a
lea eax, [esp + 0x1c]
mov eax, dword [eax]
inc eax
mov dword [esp + 0x14], eax
je 0x5ed220
push eax
call fcn.004064d0
add esp, 4
mov edi, eax
jmp 0x5ed222
xor edi, edi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edi
push eax
push ecx
call fcn.0041dc00
mov ebp, eax
add esp, 0xc
mov byte [ebp], 0
mov eax, dword [esi]
mov ecx, dword [ebx]
sub ecx, eax
push ecx
push eax
mov ecx, ebx
call fcn.0041d810
mov edx, dword [esp + 0x14]
mov dword [esi], edi
add edi, edx
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x20]
mov dword [ebx], edi
mov eax, dword [esi + 4]
mov dl, byte [esp + 0x13]
mov byte [eax + 1], 0
mov ecx, dword [esi + 4]
mov al, byte [esp + 0x12]
mov byte [ecx], dl
mov ecx, dword [esi + 4]
inc ecx
test al, al
mov dword [esi + 4], ecx
je 0x5ed158
xor ebx, ebx
mov eax, dword [ebp]
test eax, eax
je 0x5ed28b
mov cl, byte [eax + 4]
test cl, cl
jne 0x5ed2d9
mov ecx, 0x1f40
xor eax, eax
lea edi, [esp + 0x24]
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x7d2c]
lea eax, [esp + 0x28]
push 0x7d00
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jl 0x5ed2f7
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x24]
add ecx, edi
push edi
mov dword [ebp + 4], ecx
push edx
mov ecx, esi
add ebx, edi
call fcn.005ec810
test edi, edi
jle 0x5ed323
jmp 0x5ed27d
jmp fcn.005f0840
mov ebp, dword [ebp]
push 0
push 1
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax + 8]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x7d14
ret 0xc
cmp edi, 0xffffffff
jne 0x5ed323
mov eax, dword [ebp]
test eax, eax
je 0x5ed314
mov esi, dword [eax]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp]
push eax
push 3
call dword [esi + 8]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x7d14
ret 0xc
mov eax, dword [esp + 0x7d30]
test eax, eax
je 0x5ed354
cmp ebx, eax
je 0x5ed354
mov ebp, dword [ebp]
test ebp, ebp
je 0x5ed345
mov edx, dword [ebp]
push 3
push 4
mov ecx, ebp
call dword [edx + 8]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x7d14
ret 0xc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x7d14
ret 0xc