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

Disassembly:
mov eax, 0x111c
call fcn.10312230
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x1118], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x112c]
lea edx, [esp + 0x124]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x2c]
jne 0x102f301a
test byte [esi + 0x18], 2
je 0x102f2ff0
lea ebx, [ebx]
cmp dword [esi + 0x24], 0
jne 0x102f2ecf
push 0xfde8
call dword [sym.php5.dll_xmlMallocAtomic]
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
je 0x102f3056
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 0x102f2efd
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 0x102f2f52
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 0x102f3076
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 0x102f3006
je 0x102f2fec
cmp eax, 0xffffffff
jne 0x102f2f9c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jg 0x102f2f91
je 0x102f2f9c
cmp eax, 0xb
je 0x102f2f9c
cmp eax, 0x6c
jmp 0x102f30a0
sub eax, 0x2733
jne 0x102f309d
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 0x102f2fe2
call dword [sym.imp.MSVCR110.dll__errno]
cmp dword [eax], 4
jne 0x102f2fec
test byte [esi + 0x18], 2
jne 0x102f2ea0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x128]
cmp edx, eax
jne 0x102f30bb
xor eax, eax
jmp 0x102f30cf
add dword [esi + 0x2c], eax
cmp eax, 0xffffffff
je 0x102f30b7
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x30]
movzx eax, byte [ecx]
mov byte [edx], al
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov al, byte [edx]
cmp al, 0xa
je 0x102f30bb
cmp al, 0xd
je 0x102f3040
inc edx
inc ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp ebx, 0xfff
jl 0x102f2e84
mov byte [esp + 0x1127], 0
jmp 0x102f30be
push str.allocating_input
push 0
push 0
push 2
push 0xa
call fcn.10261340
add esp, 0x14
mov dword [esi + 0x38], 0xffffffff
xor eax, eax
jmp 0x102f30cf
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
xor eax, eax
jmp 0x102f30cf
sub eax, 0x17
je 0x102f2fec
push str.recv_failed_n
push 0
push 0xa
call fcn.10269820
add esp, 0xc
xor eax, eax
jmp 0x102f30cf
mov byte [edx], 0
lea eax, [esp + 0x128]
push eax
call dword [sym.php5.dll_xmlMemStrdup]
add esp, 4
mov ecx, dword [esp + 0x1128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10311bec
add esp, 0x111c
ret