Function at 0x102f2bb0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x11c
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x128]
push esi
mov esi, dword [esp + 0x124]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
test esi, esi
jne 0x102f2bff
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.10311bec
add esp, 0x11c
ret
test eax, eax
je 0x102f2be6
test ecx, ecx
jg 0x102f2c1f
xor eax, eax
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.10311bec
add esp, 0x11c
ret
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x30]
cmp eax, ecx
jge 0x102f2e03
push ebx
push ebp
push edi
test byte [esi + 0x18], 2
je 0x102f2e00
lea ebx, [ebx]
cmp dword [esi + 0x24], 0
jne 0x102f2c6f
push 0xfde8
call dword [sym.php5.dll_xmlMallocAtomic]
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
je 0x102f2da7
mov dword [esi + 0x34], 0xfde8
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x30]
lea eax, [edx + 0x1000]
cmp ecx, eax
jbe 0x102f2c9d
mov eax, dword [esi + 0x2c]
sub eax, ecx
push eax
push ecx
mov edi, ecx
push edx
sub edi, edx
call dword [sym.imp.MSVCR110.dll_memmove]
sub dword [esi + 0x30], edi
sub dword [esi + 0x28], edi
add esp, 0xc
sub dword [esi + 0x2c], edi
mov edx, dword [esi + 0x34]
mov ebx, dword [esi + 0x24]
mov edi, dword [esi + 0x2c]
lea ecx, [edx + ebx]
lea eax, [edi + 0x1000]
cmp ecx, eax
jae 0x102f2cf2
mov eax, dword [esi + 0x30]
mov ebp, dword [esi + 0x28]
sub eax, ebx
mov dword [esp + 0x18], eax
lea eax, [edx + edx]
push eax
push ebx
sub edi, ebx
sub ebp, ebx
mov dword [esi + 0x34], eax
call dword [sym.php5.dll_xmlRealloc]
add esp, 8
mov dword [esi + 0x24], eax
test eax, eax
je 0x102f2dc5
lea ecx, [eax + edi]
mov dword [esi + 0x2c], ecx
lea ecx, [eax + ebp]
add eax, dword [esp + 0x18]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x30], eax
push 0
push 0x1000
push dword [esi + 0x2c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [esi + 0x38], eax
test eax, eax
jg 0x102f2d92
je 0x102f2e00
cmp eax, 0xffffffff
jne 0x102f2d40
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jg 0x102f2d35
je 0x102f2d40
cmp eax, 0xb
je 0x102f2d40
cmp eax, 0x6c
jmp 0x102f2ded
sub eax, 0x2733
jne 0x102f2dea
mov eax, dword [0x106491d8]
lea ecx, [esp + 0x1c]
push ecx
push 0
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x14]
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], eax
push ecx
inc eax
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jge 0x102f2d86
call dword [sym.imp.MSVCR110.dll__errno]
cmp dword [eax], 4
jne 0x102f2e00
test byte [esi + 0x18], 2
jne 0x102f2c40
jmp 0x102f2e00
add dword [esi + 0x2c], eax
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x30]
cmp eax, dword [esp + 0x10]
jl 0x102f2c30
jmp 0x102f2e00
push str.allocating_input
push 0
push 0
push 2
push 0xa
call fcn.10261340
add esp, 0x14
mov dword [esi + 0x38], 0xffffffff
jmp 0x102f2e00
push str.allocating_input_buffer
push 0
push 0
push 2
push 0xa
call fcn.10261340
push ebx
call dword [sym.php5.dll_xmlFree]
add esp, 0x18
mov dword [esi + 0x38], 0xffffffff
jmp 0x102f2e00
sub eax, 0x17
je 0x102f2e00
push str.recv_failed_n
push 0
push 0xa
call fcn.10269820
add esp, 0xc
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
mov eax, dword [esp + 4]
sub ecx, edx
cmp ecx, eax
cmovl eax, ecx
push eax
push edx
push dword [esp + 0x10]
mov dword [esp + 0x10], eax
call sub.MSVCR110.dll_memcpy
mov eax, dword [esp + 0x10]
add dword [esi + 0x30], eax
mov ecx, dword [esp + 0x128]
add esp, 0xc
pop esi
xor ecx, esp
call fcn.10311bec
add esp, 0x11c
ret