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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x2c]
and ecx, 0xfffeffff
mov dword [esi + 0x2c], ecx
cmp dword [ebx + 0x20], 0
jge 0x4872e3
test ecx, 0x1000
jne 0x487228
test ecx, 0x40000
jne 0x4872b5
and ecx, 0xffffefff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], ecx
mov edx, ecx
jne 0x487257
mov eax, ecx
and al, 5
cmp al, 4
jne 0x487257
and ecx, 0xfffffffb
mov dword [esi + 0x2c], ecx
mov edx, ecx
test cl, 8
je 0x487257
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov edx, dword [esi + 0x2c]
test edx, 0x40000
je 0x48726d
push 0
push 0
call fcn.00482a80
add esp, 8
jmp 0x487279
mov eax, dword [esi + 0x98]
mov edx, dword [esi + 0x9c]
push dword [ebx + 0x20]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
call fcn.0048e550
add esp, 4
mov ecx, 0x2746
cmp eax, 0x2745
cmove eax, ecx
and dword [esi + 0x2c], 0xffff3fff
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.0048dc50
add esp, 4
push eax
mov eax, dword [esi + 0x38]
push esi
call eax
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x2c]
dec ecx
mov dword [esi + 0x3c], ecx
test al, 1
je 0x4872dd
test ecx, ecx
jne 0x4872dd
test al, 0x20
jne 0x4872dd
or eax, 0x20
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ebx + 0x2c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
test ecx, 0x40000
jne 0x487316
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x4873d1
lea edi, [esi + 0x98]
push edi
push eax
mov eax, dword [esi + 0x38]
push esi
call eax
mov eax, dword [ebx + 0x24]
add esp, 0xc
cmp eax, dword [edi]
jb 0x4874e5
mov ecx, dword [esi + 0x2c]
mov edi, 0x20
test ecx, 0x1000
je 0x4874e5
mov ebx, dword [sym.imp.WS2_32.dll_WSARecv]
nop dword [eax]
mov eax, edi
dec edi
test eax, eax
jle 0x4874e5
push 0
push 0
call fcn.00482a80
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x34]
push 0x10000
push esi
mov dword [ebp - 4], edx
call eax
add esp, 0x14
cmp dword [ebp - 4], 0
je 0x4874d3
cmp dword [ebp - 8], 0
je 0x4874d3
push 0
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
lea eax, [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [esi + 0x90]
call ebx
cmp eax, 0xffffffff
je 0x487465
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x48742f
lea ecx, [ebp - 8]
push ecx
push eax
mov eax, dword [esi + 0x38]
push esi
call eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, dword [ebp - 8]
jb 0x4874e5
test dword [esi + 0x2c], 0x1000
jne 0x487330
jmp 0x4874e5
test ecx, 0x1000
je 0x487407
and ecx, 0xffffefff
add dword [esi + 0x40], 0xffffffff
mov edx, ecx
jne 0x487405
mov eax, ecx
and al, 5
cmp al, 4
jne 0x487405
and ecx, 0xfffffffb
mov dword [esi + 0x2c], ecx
mov edx, ecx
test cl, 8
je 0x487405
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov edx, dword [esi + 0x2c]
mov ecx, edx
lea eax, [esi + 0x98]
mov dword [ebp - 4], 0
and ecx, 0xffffbfff
mov dword [ebp - 8], 0
push eax
mov dword [esi + 0x2c], ecx
push 0xfffff001
jmp 0x4874dc
mov ecx, dword [esi + 0x2c]
and ecx, 0xffffafff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], ecx
jne 0x48745a
mov eax, ecx
and al, 5
cmp al, 4
jne 0x48745a
and ecx, 0xfffffffb
mov dword [esi + 0x2c], ecx
test cl, 8
je 0x48745a
mov eax, dword [esi + 4]
dec dword [eax + 4]
lea eax, [ebp - 8]
push eax
push 0xfffff001
jmp 0x4874dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x48747d
lea eax, [ebp - 8]
push eax
push 0
jmp 0x4874dc
mov ecx, dword [esi + 0x2c]
and ecx, 0xffffefff
add dword [esi + 0x40], 0xffffffff
mov edx, ecx
jne 0x4874ac
mov eax, ecx
and al, 5
cmp al, 4
jne 0x4874ac
and ecx, 0xfffffffb
mov dword [esi + 0x2c], ecx
mov edx, ecx
test cl, 8
je 0x4874ac
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov edx, dword [esi + 0x2c]
mov eax, 0x2746
cmp edi, 0x2745
cmove edi, eax
lea eax, [ebp - 8]
push eax
and edx, 0xffff3fff
push edi
mov dword [esi + 0x2c], edx
call fcn.0048dc50
add esp, 4
push eax
jmp 0x4874dc
lea eax, [ebp - 8]
push eax
push 0xfffff024
mov eax, dword [esi + 0x38]
push esi
call eax
add esp, 0xc
mov eax, dword [esi + 0x2c]
and eax, 0x11000
pop edi
cmp eax, 0x1000
jne 0x4872b5
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00487f90
add esp, 8
jmp 0x4872b8