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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004c
call fcn.10010d30
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0x2c], 0
push 7
pop ecx
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x2b]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 4], 1
push dword [ebx + 0x14]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 4]
xor edi, edi
mov eax, dword [eax + 0x30]
mov dword [ebp - 8], eax
call fcn.1000a364
xor eax, eax
pop ecx
inc eax
test eax, eax
je 0x10008d78
push 0
push 0x20
pop eax
sub eax, esi
push eax
lea eax, [ebp - 0x2c]
add eax, esi
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10008e7a
add esi, eax
mov eax, dword [ebp - 4]
cmp esi, 0x20
jne 0x10008d42
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x10008d42
cmp esi, 0x20
jne 0x10008f03
cmp byte [ebp - 0x29], 0
jne 0x10008de5
mov esi, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
add esi, 0xffffffe4
test esi, esi
jle 0x10008dd8
mov ecx, 0xffff
mov eax, esi
cmp esi, ecx
push 0
cmova eax, ecx
push eax
lea eax, [ebp - 0x1004c]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x10008de1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x10008d93
push 0x490
call ebx
test esi, esi
jg 0x10008f03
push 0
call ebx
jmp 0x10008ee5
sub esi, eax
jmp 0x10008d93
push 0x20
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.1000fb00
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1000528d
add esp, 0x18
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
sub eax, 8
mov dword [ebp - 4], eax
mov esi, eax
lea ecx, [eax + 0x20]
push ecx
mov dword [ebp - 0xc], ecx
call fcn.1000fa60
mov edi, eax
pop ecx
test edi, edi
jne 0x10008e31
push 8
jmp 0x10008efd
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 0x20
push edi
call fcn.10012e28
mov ecx, dword [ebp - 4]
lea eax, [edi + 0x20]
add esp, 0x10
test ecx, ecx
je 0x10008e92
push 0
sub eax, esi
push esi
add eax, ecx
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jg 0x10008e81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x10008e83
test ebx, ebx
jns 0x10008f03
push 0x490
jmp 0x10008efd
sub esi, ebx
test esi, esi
je 0x10008e8f
mov ecx, dword [ebp - 4]
lea eax, [edi + 0x20]
jmp 0x10008e4c
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x10008f03
lea eax, [ebp - 0x28]
push eax
call fcn.100052b2
pop ecx
test eax, eax
jne 0x10008eec
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x10]
add eax, 0x20
push eax
call fcn.100113d8
add esp, 0xc
test eax, eax
je 0x10008eec
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x50]
call fcn.100061c2
pop ecx
pop ecx
test eax, eax
je 0x10008f03
push dword [ebp - 0xc]
push edi
push eax
call fcn.100060b6
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov eax, dword [ebp + 0xc]
and dword [eax], edi
jmp 0x10008f03
push dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push ebx
call fcn.100059f9
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x10008f16
push edi
call fcn.1000fa28
pop ecx
mov ecx, dword [ebp + 8]
push dword [ecx + 0x14]
call fcn.1000a37a
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret