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

Disassembly:
mov eax, 0x1038
call fcn.0056a050
mov eax, dword [0x6ab0d4]
xor eax, esp
mov dword [esp + 0x1034], eax
mov eax, dword [esp + 0x1048]
mov edx, dword [esp + 0x1044]
push ebp
mov ebp, dword [esp + 0x1040]
push edi
mov edi, dword [esp + 0x1048]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
test edi, edi
jne 0x5b5dcb
cmp edx, 0xffffffff
je 0x5b5faf
push esi
xor esi, esi
mov dword [esp + 0xc], esi
cmp dword [ebp + 0x78], esi
jle 0x5b5fae
xor ecx, ecx
mov dword [esp + 0x10], ecx
push ebx
mov ebx, dword [ebp + 0x74]
add ebx, ecx
mov eax, dword [ebx + 0x1c]
cmp eax, 0xffffffff
je 0x5b5f98
cmp dword [ebx + 0x54], 0
jne 0x5b5f98
test edi, edi
je 0x5b5e59
push edi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5b5f8d
mov edx, dword [edi]
xor ecx, ecx
test edx, edx
je 0x5b5e61
mov esi, dword [ebx + 0x1c]
lea eax, [edi + 4]
nop
cmp dword [eax], esi
je 0x5b5e32
inc ecx
add eax, 4
cmp ecx, edx
jb 0x5b5e20
mov esi, dword [esp + 0x10]
jmp 0x5b5e61
lea eax, [edx - 1]
cmp ecx, eax
jae 0x5b5e51
lea edx, [ecx + 1]
lea edx, [edi + edx*4]
nop
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc ecx
mov eax, dword [edi]
dec eax
cmp ecx, eax
jb 0x5b5e40
dec dword [edi]
mov esi, dword [esp + 0x10]
jmp 0x5b5e61
cmp eax, edx
jne 0x5b5f98
cmp dword [ebx + 0x1c], 0xffffffff
jne 0x5b5e7c
push dword [esp + 0x1c]
xor edi, edi
push esi
push ebp
call fcn.005b4fb0
add esp, 0xc
jmp 0x5b5f7d
cmp dword [ebx], 2
mov ecx, 0x10
mov eax, 0x1c
cmove eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x91b8]
mov ecx, dword [ebx + 0x1c]
test eax, eax
je 0x5b5ec4
push dword [ebp + 0x91bc]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x2c]
push edx
push 0
push 0x1001
lea edx, [esp + 0x54]
push edx
push ecx
call eax
add esp, 0x1c
jmp 0x5b5ee1
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0x1001
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b5f12
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x5b5f85
cmp eax, 0x2733
je 0x5b5f85
push dword [esp + 0x1c]
push esi
push ebp
call fcn.005b4fb0
add esp, 0xc
jmp 0x5b5f7d
test edi, edi
jg 0x5b5f26
push dword [esp + 0x1c]
push esi
push ebp
call fcn.005b4fb0
add esp, 0xc
jmp 0x5b5f7d
movzx eax, word [esp + 0x24]
mov ecx, dword [ebx]
cmp eax, ecx
jne 0x5b5f85
sub ecx, 2
je 0x5b5f5c
sub ecx, 0x15
jne 0x5b5f85
lea edx, [ebx + 4]
lea eax, [esp + 0x2c]
lea esi, [ecx + 0xc]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x5b5f85
add edx, 4
add eax, 4
sub esi, 4
jae 0x5b5f45
mov esi, dword [esp + 0x10]
jmp 0x5b5f67
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x28]
cmp eax, dword [ecx]
jne 0x5b5f85
push dword [esp + 0x1c]
lea eax, [esp + 0x44]
push 0
push esi
push edi
push eax
push ebp
call fcn.005b5750
add esp, 0x18
test edi, edi
jg 0x5b5e61
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1054]
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 0x58
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
cmp esi, dword [ebp + 0x78]
jl 0x5b5de2
pop ebx
pop esi
mov ecx, dword [esp + 0x103c]
pop edi
pop ebp
xor ecx, esp
call fcn.005697c8
add esp, 0x1038
ret