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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004c
call fcn.10011380
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.1000a57d
xor eax, eax
pop ecx
inc eax
test eax, eax
je 0x10008f91
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 0x10009093
add esi, eax
mov eax, dword [ebp - 4]
cmp esi, 0x20
jne 0x10008f5b
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x10008f5b
cmp esi, 0x20
jne 0x1000911c
cmp byte [ebp - 0x29], 0
jne 0x10008ffe
mov esi, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
add esi, 0xffffffe4
test esi, esi
jle 0x10008ff1
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 0x10008ffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x10008fac
push 0x490
call ebx
test esi, esi
jg 0x1000911c
push 0
call ebx
jmp 0x100090fe
sub esi, eax
jmp 0x10008fac
push 0x20
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10010150
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100054a7
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.100100b0
mov edi, eax
pop ecx
test edi, edi
jne 0x1000904a
push 8
jmp 0x10009116
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 0x20
push edi
call fcn.10013478
mov ecx, dword [ebp - 4]
lea eax, [edi + 0x20]
add esp, 0x10
test ecx, ecx
je 0x100090ab
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 0x1000909a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x1000909c
test ebx, ebx
jns 0x1000911c
push 0x490
jmp 0x10009116
sub esi, ebx
test esi, esi
je 0x100090a8
mov ecx, dword [ebp - 4]
lea eax, [edi + 0x20]
jmp 0x10009065
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x1000911c
lea eax, [ebp - 0x28]
push eax
call fcn.100054cc
pop ecx
test eax, eax
jne 0x10009105
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x10]
add eax, 0x20
push eax
call fcn.10011a28
add esp, 0xc
test eax, eax
je 0x10009105
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x50]
call fcn.100063dc
pop ecx
pop ecx
test eax, eax
je 0x1000911c
push dword [ebp - 0xc]
push edi
push eax
call fcn.100062d0
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 0x1000911c
push dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push ebx
call fcn.10005c13
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 0x1000912f
push edi
call fcn.10010078
pop ecx
mov ecx, dword [ebp + 8]
push dword [ecx + 0x14]
call fcn.1000a593
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret