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

Disassembly:
sub esp, 0xc4
push ebx
mov ebx, dword [esp + 0xcc]
push ebp
push esi
xor ebp, ebp
lea esi, [esp + 0x80]
cmp ebx, ebp
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], esi
je 0x85c6cd
cmp dword [ebx], 0xbab1e
jne 0x85c6cd
cmp dword [ebx + 0xd4], ebp
je 0x85c352
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0xc4
ret
cmp dword [esp + 0xe4], ebp
jge 0x85c36b
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0xc4
ret
mov eax, dword [ebx + 4]
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x85c3d5
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.0085c0e0
add esp, 8
xor edx, edx
lea edi, [esp + 0x30]
mov ebx, 1
mov ecx, edx
shl ebx, cl
or esi, 0xffffffff
test eax, ebx
je 0x85c39d
mov esi, dword [edi]
inc ebp
lea ecx, [edx + 0x10]
mov ebx, 1
shl ebx, cl
test eax, ebx
je 0x85c3ae
mov esi, dword [edi]
inc ebp
cmp esi, 0xffffffff
je 0x85c3bc
inc edx
add edi, 4
cmp edx, 5
jb 0x85c38a
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x85c376
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0xd8]
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0085e050
mov eax, dword [esp + 0x34]
add esp, 8
test eax, eax
jl 0x85c3fb
cmp eax, dword [esp + 0xe4]
jge 0x85c3fb
mov dword [esp + 0xe4], eax
mov edi, dword [esp + 0xe0]
mov ecx, dword [esp + 0xf0]
test ecx, ecx
lea eax, [edi + ebp]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
je 0x85c422
cmp dword [ebx + 0xc4], 0xffffffff
je 0x85c422
inc eax
cmp eax, 0xa
jbe 0x85c45c
lea ecx, [eax*8]
push ecx
call dword [0x8d0930]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x85c450
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xc4
ret
mov esi, dword [esp + 0x14]
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x24]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x18], ebx
je 0x85c51e
mov edx, dword [esp + 0xd8]
mov eax, dword [edx + 4]
test eax, eax
mov dword [esp + 0x10], eax
je 0x85c51e
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.0085c0e0
mov edx, dword [esp + 0x1c]
add esp, 8
xor ebp, ebp
lea esi, [esp + 0x30]
lea edx, [edx + ebx*8]
mov ebx, 1
mov ecx, ebp
shl ebx, cl
or edi, 0xffffffff
test eax, ebx
je 0x85c4c7
mov edi, dword [esp + 0x18]
mov ecx, dword [esi]
inc edi
mov dword [edx], ecx
mov word [edx + 4], 1
mov dword [esp + 0x18], edi
mov edi, dword [esi]
add edx, 8
lea ecx, [ebp + 0x10]
mov ebx, 1
shl ebx, cl
test eax, ebx
je 0x85c4ef
mov ecx, dword [esi]
mov ebx, dword [esp + 0x18]
mov dword [edx], ecx
inc ebx
mov word [edx + 4], 4
mov edi, dword [esi]
mov dword [esp + 0x18], ebx
add edx, 8
jmp 0x85c4f3
mov ebx, dword [esp + 0x18]
cmp edi, 0xffffffff
je 0x85c501
inc ebp
add esi, 4
cmp ebp, 5
jb 0x85c49f
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x85c484
mov edi, dword [esp + 0xe0]
mov esi, dword [esp + 0x14]
test edi, edi
jbe 0x85c562
mov ecx, dword [esp + 0xdc]
lea eax, [esi + ebx*8 + 4]
add ecx, 4
mov edx, edi
add ebx, edi
mov ebp, dword [ecx - 4]
mov dword [eax - 4], ebp
mov word [eax], 0
test byte [ecx], 1
je 0x85c549
mov word [eax], 1
test byte [ecx], 2
je 0x85c551
or byte [eax], 2
test byte [ecx], 4
je 0x85c559
or byte [eax], 4
add eax, 8
add ecx, 8
dec edx
jne 0x85c534
mov eax, dword [esp + 0xf0]
test eax, eax
je 0x85c58a
mov edx, dword [esp + 0xd8]
mov eax, dword [edx + 0xc4]
cmp eax, 0xffffffff
je 0x85c58a
mov dword [esi + ebx*8], eax
mov word [esi + ebx*8 + 4], 1
inc ebx
test ebx, ebx
je 0x85c64b
mov eax, dword [esp + 0xe4]
push eax
push ebx
push esi
call fcn.00887720
mov ebp, eax
add esp, 0xc
test ebp, ebp
jle 0x85c64b
test edi, edi
mov dword [esp + 0x1c], ebp
jbe 0x85c5f9
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
lea esi, [ecx + 6]
lea edx, [edx + eax*8 + 6]
movsx ecx, word [edx]
xor eax, eax
test cl, 1
je 0x85c5db
mov eax, 1
test cl, 4
je 0x85c5e2
or al, 4
test cl, 2
je 0x85c5e9
or al, 2
mov word [esi], ax
add edx, 8
add esi, 8
dec edi
jne 0x85c5cc
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xf0]
test eax, eax
je 0x85c64b
mov ecx, dword [esp + 0xd8]
cmp dword [ecx + 0xc4], 0xffffffff
je 0x85c64b
mov edx, dword [esp + 0x28]
test byte [esi + edx*8 + 6], 1
je 0x85c64b
mov esi, dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [esp + 0xd8]
push 0
lea eax, [esp + 0x48]
push 0x40
mov edx, dword [ecx + 0xc4]
push eax
push edx
call esi
test eax, eax
jg 0x85c625
mov esi, dword [esp + 0x14]
dec ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x20]
test eax, eax
je 0x85c65d
push esi
call dword [0x8d0934]
add esp, 4
mov eax, dword [esp + 0xe8]
test eax, eax
je 0x85c66e
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0xec]
test eax, eax
je 0x85c6c0
test ebx, ebx
jne 0x85c6c0
mov eax, dword [esp + 0xd8]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], ebx
call fcn.0085e100
add esp, 8
test eax, eax
jne 0x85c6c0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x85c6c0
mov ecx, dword [esp + 0xe4]
cmp eax, ecx
jg 0x85c6b1
test eax, eax
jge 0x85c6b7
mov eax, ecx
mov dword [esp + 0x10], eax
push eax
call fcn.008873e0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc4
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc4
ret