Function at 0x100553e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
mov dword [esp + 0x18], ebx
dec eax
je 0x103b1579
push 3
pop ecx
sub eax, ecx
jne 0x103b1242
mov eax, dword [esi]
mov dword [ebx + 8], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x10], 0
xor eax, eax
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10311bec
mov esp, ebp
pop ebp
ret
sub eax, ecx
je 0x103b1326
sub eax, 4
je 0x103b12ea
dec eax
jne 0x103b1368
mov ecx, dword [ebp + 0x10]
or esi, 0xffffffff
xor edi, edi
cmp ecx, esi
jne 0x103b1271
cmp dword [ebx + 8], esi
jne 0x103b12e2
mov ecx, dword [0x10660b6c]
mov eax, edi
mov edx, dword [ebx]
cmp edx, esi
je 0x103b12d9
mov dword [esp + 0x1c], edx
imul ecx, ecx, 0x3e8
cdq
mov dword [esp + 0x10], 0x3e8
idiv dword [esp + 0x10]
mov dword [esp + 0x20], 0x703
add eax, ecx
push eax
lea eax, [esp + 0x20]
push 1
push eax
call sym.php5.dll_php_poll2
add esp, 0xc
test eax, eax
jle 0x103b12db
movsx eax, word [esp + 0x22]
test eax, eax
jle 0x103b12db
push 2
push 1
lea eax, [esp + 0x2f]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x103b12db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x103b12db
mov edi, esi
mov eax, edi
jmp 0x10055430
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
jmp 0x103b1273
movsx eax, byte [ebx + 0x10]
push eax
push 0xa
push str.timed_out
push esi
call sym.php5.dll_add_assoc_bool_ex
movsx eax, byte [ebx + 4]
push eax
push 8
push str.blocked
push esi
call sym.php5.dll_add_assoc_bool_ex
push dword [edi + 0x78]
push 4
push 0x10624020
push esi
call sym.php5.dll_add_assoc_bool_ex
add esp, 0x30
jmp 0x1005542e
mov eax, dword [esi]
dec eax
dec eax
je 0x103b1562
sub eax, ecx
je 0x103b1514
dec eax
je 0x103b14c9
dec eax
je 0x103b13ed
dec eax
je 0x103b1370
dec eax
jne 0x103b1368
mov eax, dword [esi + 4]
shr eax, 3
and eax, ecx
push dword [eax*4 + 0x1054e10c]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_shutdown]
jmp 0x103b1571
push 0xfffffffffffffffe
pop eax
jmp 0x10055430
xor edi, edi
test byte [esi + 0x28], 1
push 1
mov eax, edi
pop ecx
cmovne eax, ecx
cmp dword [esi + 0x18], edi
je 0x103b139a
push dword [esi + 0x1c]
push dword [esi + 0x18]
push eax
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x103b13a9
push eax
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
or eax, 0xffffffff
cmp ecx, eax
cmove ecx, eax
mov dword [esi + 0x30], ecx
cmp ecx, eax
jne 0x1005542e
push edi
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call sym.php5.dll_php_socket_strerror
add esp, 0xc
mov esi, eax
push esi
push 0x1061a878
push 2
push edi
call sym.php5.dll_php_error_docref0
push esi
call sym.php5.dll__efree
add esp, 0x14
jmp 0x1005542e
xor edi, edi
test byte [esi + 0x28], 1
push 1
mov edx, edi
pop eax
cmovne edx, eax
test byte [esi + 0x28], 2
je 0x103b1404
or edx, 2
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], ecx
and dword [esp + 0x14], eax
je 0x103b141e
lea ebx, [esi + 0x38]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x18]
jmp 0x103b1422
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x14], edi
je 0x103b1435
lea ebx, [esi + 0x34]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x18]
jmp 0x103b1439
mov dword [esp + 0x14], edi
shr ecx, 1
and ecx, eax
je 0x103b1448
lea eax, [esi + 0x40]
mov dword [esp + 0x18], eax
jmp 0x103b144c
mov dword [esp + 0x18], edi
test ecx, ecx
je 0x103b1453
lea edi, [esi + 0x3c]
mov dword [esp + 0x10], 0x80
test edi, edi
jne 0x103b1480
cmp dword [esp + 0x14], edi
jne 0x103b1480
push edx
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
or ecx, 0xffffffff
cmp ebx, ecx
cmove ebx, ecx
jmp 0x103b14c1
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push edx
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recvfrom]
push dword [esp + 0x1c]
mov ebx, eax
push dword [esp + 0x18]
or ecx, 0xffffffff
push dword [esp + 0x20]
lea eax, [esp + 0x34]
push edi
push dword [esp + 0x20]
cmp ebx, ecx
push eax
cmove ebx, ecx
call sym.php5.dll_php_network_populate_name_from_sockaddr
add esp, 0x18
mov dword [esi + 0x30], ebx
jmp 0x1005542e
mov ecx, dword [esi + 4]
xor eax, eax
mov edx, ecx
inc eax
push 0
pop edi
and edx, eax
je 0x103b14e5
lea ebx, [esi + 0x38]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x18]
jmp 0x103b14e9
mov dword [esp + 0x10], edi
test edx, edx
lea edx, [esi + 0x34]
jne 0x103b14f2
mov edx, edi
shr ecx, 1
and ecx, eax
lea eax, [esi + 0x40]
jne 0x103b14fd
mov eax, edi
test ecx, ecx
je 0x103b1504
lea edi, [esi + 0x3c]
push dword [esp + 0x10]
push edx
push eax
push edi
push dword [ebx]
call sym.php5.dll_php_network_get_peer_name
jmp 0x103b155d
mov ecx, dword [esi + 4]
xor eax, eax
mov edx, ecx
inc eax
push 0
pop edi
and edx, eax
je 0x103b1530
lea ebx, [esi + 0x38]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x18]
jmp 0x103b1534
mov dword [esp + 0x10], edi
test edx, edx
lea edx, [esi + 0x34]
jne 0x103b153d
mov edx, edi
shr ecx, 1
and ecx, eax
lea eax, [esi + 0x40]
jne 0x103b1548
mov eax, edi
test ecx, ecx
je 0x103b154f
lea edi, [esi + 0x3c]
push dword [esp + 0x10]
push edx
push eax
push edi
push dword [ebx]
call sym.php5.dll_php_network_get_sock_name
add esp, 0x14
jmp 0x103b1571
push dword [esi + 0x10]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_listen]
neg eax
sbb eax, eax
mov dword [esi + 0x30], eax
jmp 0x1005542e
push dword [ebp + 0x10]
movsx esi, byte [ebx + 4]
push dword [ebx]
call sym.php5.dll_php_set_sock_blocking
pop ecx
pop ecx
test eax, eax
jne 0x103b159a
mov eax, dword [ebp + 0x10]
mov byte [ebx + 4], al
mov eax, esi
jmp 0x10055430
or eax, 0xffffffff
jmp 0x10055430