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

Disassembly:
sub esp, 0x120
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
test eax, eax
push ebx
lea ebx, [esp + 0xc]
cmovne ebx, eax
test ecx, ecx
push esi
mov esi, dword [esp + 0x12c]
lea eax, [esp + 0xc]
cmovne eax, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
test esi, esi
je 0x102f23c7
mov eax, dword [esi + 0x28]
test eax, eax
je 0x102f23c3
mov ebx, dword [esi + 0x2c]
sub ebx, eax
push ebp
mov dword [esp + 0xc], ebx
push edi
test byte [esi + 0x18], 2
je 0x102f2365
lea ecx, [ecx]
cmp dword [esi + 0x24], 0
jne 0x102f21bf
push 0xfde8
call dword [sym.php5.dll_xmlMallocAtomic]
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
je 0x102f2308
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 0x102f21ed
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 0x102f2242
mov eax, dword [esi + 0x30]
mov ebp, dword [esi + 0x28]
sub eax, ebx
mov dword [esp + 0x14], 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 0x102f2326
lea ecx, [eax + edi]
mov dword [esi + 0x2c], ecx
lea ecx, [eax + ebp]
add eax, dword [esp + 0x14]
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 0x102f22e6
je 0x102f2361
cmp eax, 0xffffffff
jne 0x102f2290
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jg 0x102f2285
je 0x102f2290
cmp eax, 0xb
je 0x102f2290
cmp eax, 0x6c
jmp 0x102f234e
sub eax, 0x2733
jne 0x102f234b
mov eax, dword [0x106491d8]
lea ecx, [esp + 0x20]
push ecx
push 0
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], eax
push ecx
inc eax
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jge 0x102f22da
call dword [sym.imp.MSVCR110.dll__errno]
cmp dword [eax], 4
jne 0x102f2361
test byte [esi + 0x18], 2
jne 0x102f2190
jmp 0x102f2361
mov ebx, dword [esp + 0x10]
add dword [esi + 0x2c], eax
add ebx, eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x10], ebx
test eax, eax
jle 0x102f2183
cmp ebx, eax
jl 0x102f2183
jmp 0x102f2365
push str.allocating_input
push 0
push 0
push 2
push 0xa
call fcn.10261340
add esp, 0x14
mov dword [esi + 0x38], 0xffffffff
jmp 0x102f2361
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 0x102f2361
sub eax, 0x17
je 0x102f2361
push str.recv_failed_n
push 0
push 0xa
call fcn.10269820
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
pop ebp
mov dword [eax], ebx
mov eax, dword [esi + 0x44]
test eax, eax
jle 0x102f239d
cmp ebx, eax
jge 0x102f239d
or edx, 0xffffffff
pop esi
mov eax, edx
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.10311bec
add esp, 0x120
ret
or eax, 0xffffffff
test ebx, ebx
mov edx, 0
cmove edx, eax
pop esi
mov eax, edx
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.10311bec
add esp, 0x120
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x124]
mov dword [ebx], 0
pop esi
pop ebx
mov dword [eax], 0
xor ecx, esp
or eax, 0xffffffff
call fcn.10311bec
add esp, 0x120
ret