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

Disassembly:
sub esp, 0xcc
mov eax, dword [0x10263fdc]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xd4]
push ebp
push esi
mov esi, dword [esp + 0xd8]
push edi
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], edi
lea ebp, [esp + 0x44]
mov dword [esp + 0x14], edi
cmp esi, edi
je 0x1017d1da
cmp dword [esi], 0xbab1e
jne 0x1017d1da
cmp dword [esi + 0xec], edi
je 0x1017ce9a
lea eax, [edi + 8]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.101ce9e2
add esp, 0xcc
ret
cmp dword [esp + 0xe4], edi
jge 0x1017cec0
pop edi
pop esi
mov eax, 0xa
pop ebp
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.101ce9e2
add esp, 0xcc
ret
mov eax, dword [esi + 4]
push ebx
mov dword [esp + 0x10], eax
cmp eax, edi
je 0x1017cf1a
lea esp, [esp]
lea ecx, [esp + 0x34]
call fcn.1017bd20
xor ecx, ecx
mov esi, 1
or edx, 0xffffffff
test eax, esi
je 0x1017ceec
mov edx, dword [esp + ecx*4 + 0x34]
inc edi
mov ebx, esi
rol ebx, 0x10
test eax, ebx
je 0x1017cefa
mov edx, dword [esp + ecx*4 + 0x34]
inc edi
cmp edx, 0xffffffff
je 0x1017cf07
inc ecx
rol esi, 1
cmp ecx, 5
jb 0x1017cee0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1017ced0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov ebx, esi
call fcn.1017c5c0
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
js 0x1017cf41
cmp eax, dword [esp + 0xe8]
jge 0x1017cf41
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x1c]
add eax, edi
cmp dword [esp + 0xf0], 0
mov ebx, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
je 0x1017cf65
cmp dword [esi + 0xdc], 0xffffffff
je 0x1017cf65
inc eax
cmp eax, 0xa
jbe 0x1017cfa4
add eax, eax
add eax, eax
add eax, eax
push eax
call dword [0x10263bac]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1017cf9c
lea eax, [ebp + 3]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.101ce9e2
add esp, 0xcc
ret
mov dword [esp + 0x18], 1
xor esi, esi
test ebx, ebx
je 0x1017d02a
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1017d02a
lea ecx, [ecx]
lea ecx, [esp + 0x34]
call fcn.1017bd20
xor ecx, ecx
mov edi, 1
or edx, 0xffffffff
test eax, edi
je 0x1017cfee
mov edx, dword [esp + ecx*4 + 0x34]
mov dword [ebp + esi*8], edx
mov edx, 1
mov word [ebp + esi*8 + 4], dx
mov edx, dword [esp + ecx*4 + 0x34]
inc esi
mov ebx, edi
rol ebx, 0x10
test eax, ebx
je 0x1017d00e
mov edx, dword [esp + ecx*4 + 0x34]
mov dword [ebp + esi*8], edx
mov edx, 4
mov word [ebp + esi*8 + 4], dx
mov edx, dword [esp + ecx*4 + 0x34]
inc esi
cmp edx, 0xffffffff
je 0x1017d01b
inc ecx
rol edi, 1
cmp ecx, 5
jb 0x1017cfd0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1017cfc0
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x1017d074
mov ecx, dword [esp + 0x24]
lea eax, [ebp + esi*8 + 4]
add ecx, 4
mov edx, ebx
add esi, ebx
mov edi, dword [ecx - 4]
mov dword [eax - 4], edi
xor edi, edi
mov word [eax], di
test byte [ecx], 1
je 0x1017d059
mov edi, 1
mov word [eax], di
test byte [ecx], 2
je 0x1017d062
or word [eax], 2
test byte [ecx], 4
je 0x1017d06b
or word [eax], 4
add eax, 8
add ecx, 8
dec edx
jne 0x1017d041
cmp dword [esp + 0xf0], 0
je 0x1017d09c
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xdc]
cmp eax, 0xffffffff
je 0x1017d09c
mov edx, 1
mov dword [ebp + esi*8], eax
mov word [ebp + esi*8 + 4], dx
inc esi
test esi, esi
je 0x1017d159
mov eax, dword [esp + 0xe8]
cdq
push edx
push eax
push esi
push ebp
call fcn.101a83d0
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x1017d159
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x1017d10b
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
add edi, 6
lea edx, [ebp + eax*8 + 6]
jmp 0x1017d0e0
movsx ecx, word [edx]
xor eax, eax
test cl, 1
je 0x1017d0ef
mov eax, 1
test cl, 4
je 0x1017d0f7
or eax, 4
test cl, 2
je 0x1017d0ff
or eax, 2
mov word [edi], ax
add edx, 8
add edi, 8
dec ebx
jne 0x1017d0e0
cmp dword [esp + 0xf0], 0
je 0x1017d159
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0xdc], 0xffffffff
je 0x1017d159
mov edx, dword [esp + 0x28]
test byte [ebp + edx*8 + 6], 1
je 0x1017d159
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xdc]
push 0
push 0x40
lea eax, [esp + 0xa0]
push eax
push edx
call edi
test eax, eax
jg 0x1017d133
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x20], eax
cmp dword [esp + 0x18], 0
je 0x1017d16a
push ebp
call dword [0x10263bb0]
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1017d178
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
cmp dword [esp + 0xec], 0
je 0x1017d1d3
test esi, esi
jne 0x1017d1d3
mov ebx, dword [esp + 0x14]
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x18], esi
jne 0x1017d1d3
cmp dword [ebx + 0xec], esi
jne 0x1017d1d3
lea edx, [esp + 0x18]
push edx
call fcn.1017c5c0
add esp, 4
test eax, eax
jne 0x1017d1d3
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1017d1d3
mov ecx, dword [esp + 0xe8]
cmp eax, ecx
jg 0x1017d1c6
test eax, eax
jns 0x1017d1c8
mov eax, ecx
cdq
push edx
push eax
call fcn.101a8260
add esp, 8
xor eax, eax
jmp 0x1017cf83
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.101ce9e2
add esp, 0xcc
ret