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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xf0]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x20]
cmp ecx, 0xb
jne 0x416cc6
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x28]
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
call sub.WS2_32.dll_recv
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x416bf0
call sub.WS2_32.dll_WSAGetLastError
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2733
je 0x416be4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov eax, 0xffffff7f
jmp 0x416d91
mov eax, 0xffffff80
jmp 0x416d91
cmp dword [ebp - 0x14], 0
jne 0x416c07
mov eax, dword [ebp - 8]
mov byte [eax + 0xc], 3
mov eax, 0xffffff81
jmp 0x416d91
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x28]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x24], 0
jne 0x416cb7
mov eax, dword [ebp - 8]
mov byte [eax + 0x20], 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax]
sub ecx, 3
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x24], 0
jne 0x416c84
mov eax, dword [ebp - 8]
mov byte [eax + 0x20], 0xb
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], 3
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], 0
mov eax, 0xffffff83
jmp 0x416d91
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x24]
cmp edx, dword [ecx + 0x18]
jle 0x416cb7
mov eax, dword [ebp - 8]
mov byte [eax + 0x20], 0xb
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], 3
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], 0
mov eax, 0xffffff7c
jmp 0x416d91
mov eax, 0xffffff84
jmp 0x416d91
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x20]
cmp ecx, 0xc
jne 0x416d8c
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x28]
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
call sub.WS2_32.dll_recv
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x416d2d
call sub.WS2_32.dll_WSAGetLastError
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2733
je 0x416d24
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov eax, 0xffffff7f
jmp 0x416d91
mov eax, 0xffffff80
jmp 0x416d91
cmp dword [ebp - 0x14], 0
jne 0x416d41
mov eax, dword [ebp - 8]
mov byte [eax + 0xc], 3
mov eax, 0xffffff81
jmp 0x416d91
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x28]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x24], 0
jne 0x416d85
mov eax, dword [ebp - 8]
mov byte [eax + 0x20], 0xb
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], 3
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], 0
jmp 0x416d8c
mov eax, 0xffffff84
jmp 0x416d91
mov eax, 0xffffff83
pop edi
pop esi
pop ebx
add esp, 0xf0
cmp ebp, esp
call fcn.00418a80
mov esp, ebp
pop ebp
ret