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

Disassembly:
push ecx
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x100578a7
cmp edx, 0xffffffff
je 0x10057a0a
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x14], 0
cmp dword [ebp + 0x78], 0
jle 0x10057a09
xor ecx, ecx
push esi
mov dword [esp + 0xc], ecx
push edi
mov esi, dword [ebp + 0x74]
add esi, ecx
mov ecx, dword [esi + 0x20]
cmp ecx, 0xffffffff
je 0x10057ab9
cmp dword [esi + 0x54], 0
jne 0x10057ab9
test ebx, ebx
je 0x1005793d
push ebx
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10057ab5
mov edi, dword [ebx]
xor eax, eax
mov edx, dword [esi + 0x20]
test edi, edi
je 0x10057938
lea ecx, [ebx + 4]
cmp dword [ecx], edx
je 0x10057913
inc eax
add ecx, 4
cmp eax, edi
jb 0x10057902
mov ecx, dword [esi + 0x20]
jmp 0x10057945
lea ecx, [edi - 1]
cmp eax, ecx
jae 0x10057933
lea edx, [ebx + 4]
lea edx, [edx + eax*4]
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], ecx
inc eax
mov edi, dword [ebx]
lea ecx, [edi - 1]
cmp eax, ecx
jb 0x10057920
lea eax, [edi - 1]
mov dword [ebx], eax
mov ecx, dword [esi + 0x20]
jmp 0x10057945
cmp ecx, edx
jne 0x10057ab9
mov edx, dword [esi + 0x28]
cmp edx, 2
je 0x10057a0d
mov edi, dword [ebp + 0x91b8]
mov eax, 2
sub eax, edx
add edx, 0x24
add edx, esi
test edi, edi
je 0x10057980
push dword [ebp + 0x91bc]
push 0
push 0
push 0
push eax
mov eax, dword [edi + 0xc]
push edx
push ecx
call eax
add esp, 0x1c
jmp 0x1005798b
push 0
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x100579c4
cmp eax, 0xffffffff
jne 0x100579ae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x10057ab5
cmp eax, 0x2733
je 0x10057ab5
push dword [esp + 0x24]
push dword [esp + 0x20]
push ebp
call fcn.10056b40
add esp, 0xc
jmp 0x10057ab5
add dword [esi + 0x28], eax
cmp dword [esi + 0x28], 2
jne 0x10057ab5
movzx ecx, byte [esi + 0x24]
movzx eax, byte [esi + 0x25]
shl ecx, 8
or ecx, eax
push ecx
mov dword [esi + 0x2c], ecx
call dword [0x100d1434]
add esp, 4
mov dword [esi + 0x30], eax
test eax, eax
jne 0x10057aae
push dword [esp + 0x24]
push dword [esp + 0x20]
push ebp
call fcn.10056b40
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x2c]
mov edi, dword [esi + 0x30]
sub edx, dword [esi + 0x34]
add edi, dword [esi + 0x34]
mov eax, dword [ebp + 0x91b8]
test eax, eax
je 0x10057a3c
push dword [ebp + 0x91bc]
mov eax, dword [eax + 0xc]
push 0
push 0
push 0
push edx
push edi
push ecx
call eax
add esp, 0x1c
jmp 0x10057a47
push 0
push edx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x10057a75
cmp eax, 0xffffffff
jne 0x10057a62
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x10057ab5
cmp eax, 0x2733
je 0x10057ab5
push dword [esp + 0x24]
push dword [esp + 0x20]
push ebp
call fcn.10056b40
add esp, 0xc
jmp 0x10057ab5
add dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
cmp dword [esi + 0x34], eax
jne 0x10057ab5
push dword [esp + 0x24]
push 1
push dword [esp + 0x24]
push eax
push dword [esi + 0x30]
push ebp
call fcn.10057320
push dword [esi + 0x30]
call dword [0x100d143c]
add esp, 0x1c
mov dword [esi + 0x30], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc eax
add ecx, 0x58
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
cmp eax, dword [ebp + 0x78]
jl 0x100578c6
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret