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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004c
call fcn.10010ee0
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 8
pop ecx
push dword [ebx + 0x14]
lea edi, [ebp - 0x2c]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
xor esi, esi
xor edi, edi
mov eax, dword [eax + 0x30]
mov dword [ebp + 8], eax
call fcn.1000b70b
xor eax, eax
pop ecx
inc eax
test eax, eax
je 0x10008def
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 0x10008ef6
add esi, eax
mov eax, dword [ebp - 4]
cmp esi, 0x20
jne 0x10008db9
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x10008db9
cmp esi, 0x20
jne 0x10008f7c
cmp byte [ebp - 0x29], 0
jne 0x10008e5e
mov esi, dword [ebp - 0x2c]
add esi, 0xffffffe4
test esi, esi
jle 0x10008e4d
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 0x10008e5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x10008e04
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jg 0x10008f7c
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10008f5e
sub esi, eax
jmp 0x10008e04
push 0x20
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10011ee0
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10005099
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 - 8], ecx
call fcn.1001535e
mov edi, eax
pop ecx
test edi, edi
jne 0x10008eaa
push 8
jmp 0x10008f76
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 0x20
push edi
call fcn.10005e67
mov ecx, dword [ebp - 4]
lea eax, [edi + 0x20]
add esp, 0x10
test ecx, ecx
je 0x10008f0b
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 dword [ebp - 0xc], eax
test eax, eax
jg 0x10008efd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x10008eff
cmp dword [ebp - 0xc], 0
jge 0x10008f7c
push 0x490
jmp 0x10008f76
sub esi, eax
test esi, esi
je 0x10008f0f
mov ecx, dword [ebp - 4]
lea eax, [edi + 0x20]
jmp 0x10008ec5
test esi, esi
jne 0x10008f7c
lea eax, [ebp - 0x28]
push eax
call fcn.100050be
pop ecx
test eax, eax
jne 0x10008f65
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x10]
add eax, 0x20
push eax
call fcn.10012837
add esp, 0xc
test eax, eax
je 0x10008f65
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x50]
call fcn.10005fee
pop ecx
pop ecx
test eax, eax
je 0x10008f7c
push dword [ebp - 8]
push edi
push eax
call fcn.10005ee6
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 0x10008f7c
push dword [ebp - 8]
push edi
push dword [ebp + 0xc]
push ebx
call fcn.1000579a
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 0x10008f8f
push edi
call fcn.10015359
pop ecx
push dword [ebx + 0x14]
call fcn.1000b721
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret