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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004c
call fcn.10010a90
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.1000a109
xor eax, eax
pop ecx
inc eax
test eax, eax
je 0x10008b1d
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 0x10008c1f
add esi, eax
mov eax, dword [ebp - 4]
cmp esi, 0x20
jne 0x10008ae7
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x10008ae7
cmp esi, 0x20
jne 0x10008ca8
cmp byte [ebp - 0x29], 0
jne 0x10008b8a
mov esi, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
add esi, 0xffffffe4
test esi, esi
jle 0x10008b7d
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 0x10008b86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x10008b38
push 0x490
call ebx
test esi, esi
jg 0x10008ca8
push 0
call ebx
jmp 0x10008c8a
sub esi, eax
jmp 0x10008b38
push 0x20
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.1000f860
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100050b9
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.1000f7c0
mov edi, eax
pop ecx
test edi, edi
jne 0x10008bd6
push 8
jmp 0x10008ca2
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 0x20
push edi
call fcn.10012b88
mov ecx, dword [ebp - 4]
lea eax, [edi + 0x20]
add esp, 0x10
test ecx, ecx
je 0x10008c37
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 0x10008c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x10008c28
test ebx, ebx
jns 0x10008ca8
push 0x490
jmp 0x10008ca2
sub esi, ebx
test esi, esi
je 0x10008c34
mov ecx, dword [ebp - 4]
lea eax, [edi + 0x20]
jmp 0x10008bf1
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x10008ca8
lea eax, [ebp - 0x28]
push eax
call fcn.100050de
pop ecx
test eax, eax
jne 0x10008c91
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x10]
add eax, 0x20
push eax
call fcn.10011138
add esp, 0xc
test eax, eax
je 0x10008c91
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x50]
call fcn.10005f67
pop ecx
pop ecx
test eax, eax
je 0x10008ca8
push dword [ebp - 0xc]
push edi
push eax
call fcn.10005e5b
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 0x10008ca8
push dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push ebx
call fcn.1000579e
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 0x10008cbb
push edi
call fcn.1000f788
pop ecx
mov ecx, dword [ebp + 8]
push dword [ecx + 0x14]
call fcn.1000a11f
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret